Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 193.7 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 47.92 kB / 370.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.243, allocations: 52.18 MB / 423.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004632/0.2476, allocations: 2.914 MB / 426 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002189/0.2498, allocations: 0.9311 MB / 426.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002406/0.2501, allocations: 15.88 kB / 426.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003942/0.2505, allocations: 87.17 kB / 427 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000273/0.2507, allocations: 115.1 kB / 427.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005839/0.2513, allocations: 223.7 kB / 427.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006142/0.2519, allocations: 0.5222 MB / 427.9 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002553/0.2522, allocations: 121.5 kB / 428 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00024/0.2524, allocations: 195.2 kB / 428.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003292/0.2528, allocations: 187 kB / 428.3 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.198e-05/0.2528, allocations: 44 kB / 428.4 MB, free: 9.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.478e-05/0.2529, allocations: 44 kB / 428.4 MB, free: 9.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.253, allocations: 107.6 kB / 428.5 MB, free: 8.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001769/0.2532, allocations: 179 kB / 428.7 MB, free: 8.809 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005828/0.2538, allocations: 0.4924 MB / 429.2 MB, free: 8.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2538, allocations: 0 / 429.2 MB, free: 8.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2538, allocations: 0 / 429.2 MB, free: 8.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.2538, allocations: 0 / 429.2 MB, free: 8.32 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001399/0.2552, allocations: 0.7116 MB / 429.9 MB, free: 7.574 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.2552, allocations: 15.97 kB / 429.9 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.754e-05/0.2553, allocations: 52.61 kB / 430 MB, free: 7.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005837/0.2559, allocations: 310.2 kB / 430.3 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.605e-05/0.2559, allocations: 29.38 kB / 430.3 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.637e-05/0.256, allocations: 43.89 kB / 430.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009489/0.257, allocations: 476 kB / 430.8 MB, free: 6.613 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.257, allocations: 4 kB / 430.8 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.82e-05/0.257, allocations: 16 kB / 430.8 MB, free: 6.594 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.257, allocations: 8 kB / 430.8 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001036/0.2581, allocations: 379.6 kB / 431.2 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00219/0.2603, allocations: 1.352 MB / 432.6 MB, free: 4.797 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000872/0.2611, allocations: 310.1 kB / 432.9 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004579/0.2616, allocations: 156.7 kB / 433 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.2616, allocations: 4.5 kB / 433 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.2617, allocations: 42.5 kB / 433.1 MB, free: 4.273 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.783e-06/0.2617, allocations: 0 / 433.1 MB, free: 4.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003401/0.2651, allocations: 1.229 MB / 434.3 MB, free: 2.988 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.974e-05/0.2651, allocations: 85.09 kB / 434.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004147/0.2656, allocations: 337.7 kB / 434.7 MB, free: 2.543 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.434e-05/0.2656, allocations: 33.69 kB / 434.7 MB, free: 2.504 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002076/0.2658, allocations: 240.5 kB / 435 MB, free: 2.262 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.2659, allocations: 130.9 kB / 435.1 MB, free: 2.133 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.266, allocations: 82.08 kB / 435.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.2662, allocations: 354.7 kB / 435.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004951/0.2667, allocations: 170.4 kB / 435.7 MB, free: 1.523 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005928/0.2673, allocations: 278.5 kB / 436 MB, free: 1.211 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009806/0.2683, allocations: 400.4 kB / 436.4 MB, free: 0.793 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2683, allocations: 0 / 436.4 MB, free: 0.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001176/0.2695, allocations: 493 kB / 436.8 MB, free: 312 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.2695, allocations: 8 kB / 436.9 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2695, allocations: 0 / 436.9 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.2695, allocations: 4 kB / 436.9 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000917/0.2704, allocations: 207.9 kB / 437.1 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/0.2723, allocations: 1.442 MB / 438.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003418/0.2726, allocations: 43.89 kB / 438.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.924e-05/0.2726, allocations: 15.94 kB / 438.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005635/0.2732, allocations: 272.9 kB / 438.8 MB, free: 14.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005081/0.2737, allocations: 266.6 kB / 439.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000894/0.2746, allocations: 363.7 kB / 439.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.244e-06/0.2746, allocations: 0 / 439.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001106/0.2757, allocations: 480.9 kB / 439.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.2757, allocations: 4 kB / 439.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2757, allocations: 4 kB / 439.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.851e-06/0.2757, allocations: 4 kB / 439.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005128/0.2762, allocations: 120 kB / 440 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.2762, allocations: 11.94 kB / 440.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003084/0.2766, allocations: 35.95 kB / 440.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.2766, allocations: 16 kB / 440.1 MB, free: 12.88 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000174/0.2768, allocations: 192.2 kB / 440.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.542e-05/0.2768, allocations: 39.77 kB / 440.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.645e-05/0.2769, allocations: 44.09 kB / 440.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.2769, allocations: 7.938 kB / 440.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.2769, allocations: 4 kB / 440.4 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.2769, allocations: 3.984 kB / 440.4 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001818/0.2788, allocations: 0.7948 MB / 441.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.2788, allocations: 3.938 kB / 441.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004563/0.2792, allocations: 87.94 kB / 441.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.2792, allocations: 4 kB / 441.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.494e-05/0.2792, allocations: 4 kB / 441.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.2793, allocations: 7.938 kB / 441.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.2793, allocations: 0 / 441.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001544/0.2808, allocations: 0.6639 MB / 442 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001565/0.281, allocations: 75.72 kB / 442 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.489e-05/0.281, allocations: 7.938 kB / 442 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/0.2813, allocations: 39.89 kB / 442.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.579e-05/0.2814, allocations: 23.95 kB / 442.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.969e-05/0.2814, allocations: 8 kB / 442.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002782/0.2817, allocations: 239.2 kB / 442.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2817, allocations: 0 / 442.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005606/0.2822, allocations: 132 kB / 442.5 MB, free: 10.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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.000156/0.2824, allocations: 119.1 kB / 442.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002023/0.2844, allocations: 0.6565 MB / 443.2 MB, free: 9.648 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2844, allocations: 0 / 443.2 MB, free: 9.648 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004794/0.2849, allocations: 171.8 kB / 443.4 MB, free: 9.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006738/0.2856, allocations: 108.3 kB / 443.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/0.2875, allocations: 1.011 MB / 444.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.2877, allocations: 216.2 kB / 444.7 MB, free: 8.094 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002546/0.288, allocations: 59.25 kB / 444.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.2881, allocations: 31.42 kB / 444.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2881, allocations: 0 / 444.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of Templates: time 0.01095/0.299, allocations: 5.291 MB / 450.1 MB, free: 2.797 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.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.788443824276328]