Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001382/0.001382, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002006/0.002006, allocations: 213.6 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.606/1.606, allocations: 230.5 MB / 257.4 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 63.89 kB / 378.2 MB, free: 2.348 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2641, allocations: 53.41 MB / 431.6 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003492/0.2676, allocations: 1.977 MB / 433.6 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009952/0.2685, allocations: 0.5064 MB / 434.1 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.69e-05/0.2686, allocations: 0 / 434.1 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.2688, allocations: 19.8 kB / 434.1 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.173e-05/0.2688, allocations: 23.72 kB / 434.1 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003206/0.2692, allocations: 59.88 kB / 434.2 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001805/0.2693, allocations: 131.4 kB / 434.3 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.2695, allocations: 33.61 kB / 434.4 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.247e-05/0.2696, allocations: 43.86 kB / 434.4 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.837e-05/0.2696, allocations: 55.69 kB / 434.5 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.358e-05/0.2697, allocations: 8 kB / 434.5 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.174e-05/0.2697, allocations: 16 kB / 434.5 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.286e-05/0.2697, allocations: 23.92 kB / 434.5 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.974e-05/0.2698, allocations: 43.8 kB / 434.6 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002012/0.27, allocations: 137.6 kB / 434.7 MB, free: 3.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.27, allocations: 0 / 434.7 MB, free: 3.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.27, allocations: 3.938 kB / 434.7 MB, free: 3.457 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.889e-06/0.27, allocations: 0 / 434.7 MB, free: 3.457 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005931/0.2706, allocations: 345.8 kB / 435 MB, free: 3.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.2706, allocations: 11.98 kB / 435 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.344e-05/0.2707, allocations: 24.83 kB / 435.1 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002307/0.2709, allocations: 146.3 kB / 435.2 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.2709, allocations: 8.375 kB / 435.2 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.106e-05/0.271, allocations: 16.33 kB / 435.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004864/0.2714, allocations: 239.7 kB / 435.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.2715, allocations: 4 kB / 435.5 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/0.2715, allocations: 8 kB / 435.5 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.2715, allocations: 0 / 435.5 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002461/0.2717, allocations: 87.88 kB / 435.6 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006/0.2723, allocations: 496.4 kB / 436 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000282/0.2726, allocations: 143.9 kB / 436.2 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.2728, allocations: 66.64 kB / 436.3 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.2728, allocations: 7.984 kB / 436.3 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.2728, allocations: 42.5 kB / 436.3 MB, free: 1.676 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.2728, allocations: 0 / 436.3 MB, free: 1.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005057/0.2733, allocations: 165.8 kB / 436.5 MB, free: 1.508 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.645e-05/0.2734, allocations: 122.7 kB / 436.6 MB, free: 1.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.2735, allocations: 132.9 kB / 436.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.2735, allocations: 29.7 kB / 436.7 MB, free: 1.188 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.479e-05/0.2736, allocations: 115.8 kB / 436.9 MB, free: 1.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.705e-05/0.2737, allocations: 27.78 kB / 436.9 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.019e-05/0.2737, allocations: 33.72 kB / 436.9 MB, free: 1.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.2738, allocations: 322.8 kB / 437.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.2739, allocations: 35.97 kB / 437.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.2741, allocations: 139.5 kB / 437.4 MB, free: 476 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003035/0.2744, allocations: 184.8 kB / 437.6 MB, free: 244 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2744, allocations: 0 / 437.6 MB, free: 244 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003628/0.2748, allocations: 193.6 kB / 437.8 MB, free: 44 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.2748, allocations: 8 kB / 437.8 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2748, allocations: 0 / 437.8 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.2748, allocations: 8 kB / 437.8 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001948/0.275, allocations: 51.95 kB / 437.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.275, allocations: 4 kB / 437.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.2751, allocations: 19.88 kB / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.2752, allocations: 12 kB / 437.9 MB, free: 15.94 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.2753, allocations: 125.8 kB / 438 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001434/0.2754, allocations: 85.61 kB / 438.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.227e-05/0.2755, allocations: 12.72 kB / 438.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2755, allocations: 7.938 kB / 438.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.2755, allocations: 3.984 kB / 438.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2755, allocations: 4 kB / 438.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002308/0.2757, allocations: 141.2 kB / 438.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2757, allocations: 0 / 438.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.2759, allocations: 27.98 kB / 438.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.2759, allocations: 4 kB / 438.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.2759, allocations: 4 kB / 438.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.2759, allocations: 7.984 kB / 438.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.2759, allocations: 11.88 kB / 438.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000526/0.2764, allocations: 366.7 kB / 438.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.146e-05/0.2764, allocations: 15.88 kB / 438.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.158e-05/0.2765, allocations: 4.094 kB / 438.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.2766, allocations: 15.92 kB / 438.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.723e-05/0.2766, allocations: 7.922 kB / 438.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.869e-06/0.2767, allocations: 8 kB / 438.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.537e-05/0.2767, allocations: 102.1 kB / 438.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2767, allocations: 0 / 438.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003228/0.277, allocations: 24 kB / 438.8 MB, free: 14.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001102/0.2771, allocations: 107.2 kB / 438.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003246/0.2775, allocations: 116.6 kB / 439.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2775, allocations: 0 / 439.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.2776, allocations: 27.97 kB / 439.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004993/0.2781, allocations: 54.97 kB / 439.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007224/0.2788, allocations: 394.5 kB / 439.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001018/0.2789, allocations: 109.3 kB / 439.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.627e-05/0.2789, allocations: 12.59 kB / 439.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.854e-05/0.279, allocations: 15.44 kB / 439.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.279, allocations: 0 / 439.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of Templates: time 0.004356/0.2833, allocations: 1.346 MB / 441 MB, free: 12.75 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.553491240367293]