Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009884/0.0009884, allocations: 79.75 kB / 21.18 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9605/0.9605, allocations: 177.1 MB / 205 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.437e-05/2.589e-05, allocations: 2.312 kB / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003579/0.003605, allocations: 3.078 MB / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.005384, allocations: 0.9814 MB / 277 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003362/0.00572, allocations: 19.81 kB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003658/0.006086, allocations: 83.17 kB / 277.1 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002578/0.006343, allocations: 111 kB / 277.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005391/0.006882, allocations: 235.5 kB / 277.5 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005426/0.007425, allocations: 0.5261 MB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000234/0.007659, allocations: 117.7 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003275/0.007987, allocations: 291.2 kB / 278.4 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.008172, allocations: 155.5 kB / 278.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.702e-05/0.008219, allocations: 40 kB / 278.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.176e-05/0.008261, allocations: 40 kB / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.142e-05/0.008343, allocations: 107.6 kB / 278.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.008446, allocations: 139.6 kB / 278.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003844/0.008831, allocations: 342.5 kB / 279.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.008834, allocations: 4 kB / 279.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.008835, allocations: 0 / 279.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.008842, allocations: 4 kB / 279.2 MB, free: 11.28 MB / 266.7 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.0008278/0.00967, allocations: 0.7803 MB / 280 MB, free: 10.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.009704, allocations: 8.031 kB / 280 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.009806, allocations: 80.61 kB / 280.1 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000368/0.01017, allocations: 320.3 kB / 280.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/0.01021, allocations: 25.38 kB / 280.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.034e-05/0.01026, allocations: 40.38 kB / 280.4 MB, free: 9.973 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004738/0.01073, allocations: 434.5 kB / 280.9 MB, free: 9.496 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.01075, allocations: 16.08 kB / 280.9 MB, free: 9.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.01077, allocations: 16.38 kB / 280.9 MB, free: 9.465 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.01078, allocations: 11.94 kB / 280.9 MB, free: 9.453 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002444/0.01103, allocations: 157.8 kB / 281.1 MB, free: 9.297 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001452/0.01248, allocations: 1.584 MB / 282.6 MB, free: 7.637 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003734/0.01285, allocations: 187.2 kB / 282.8 MB, free: 7.438 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.998e-05/0.01295, allocations: 67.66 kB / 282.9 MB, free: 7.367 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.01298, allocations: 7.938 kB / 282.9 MB, free: 7.359 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.013, allocations: 37.39 kB / 282.9 MB, free: 7.312 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.382e-06/0.013, allocations: 3.938 kB / 282.9 MB, free: 7.309 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.001083/0.01409, allocations: 0.7936 MB / 283.7 MB, free: 6.449 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.01413, allocations: 106.8 kB / 283.8 MB, free: 6.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.01437, allocations: 370.7 kB / 284.2 MB, free: 5.941 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.01439, allocations: 37.64 kB / 284.2 MB, free: 5.898 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.01453, allocations: 287.3 kB / 284.5 MB, free: 5.613 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.953e-05/0.0146, allocations: 131.1 kB / 284.6 MB, free: 5.484 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.722e-05/0.01468, allocations: 79.84 kB / 284.7 MB, free: 5.398 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.01486, allocations: 0.5157 MB / 285.2 MB, free: 4.871 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.01498, allocations: 73.64 kB / 285.3 MB, free: 4.797 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.01517, allocations: 236.9 kB / 285.5 MB, free: 4.504 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002647/0.01543, allocations: 225.5 kB / 285.8 MB, free: 4.246 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.01543, allocations: 4 kB / 285.8 MB, free: 4.242 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0003805/0.01581, allocations: 321.1 kB / 286.1 MB, free: 3.922 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.01583, allocations: 11.94 kB / 286.1 MB, free: 3.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.01584, allocations: 0 / 286.1 MB, free: 3.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.01585, allocations: 7.984 kB / 286.1 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003818/0.01624, allocations: 163.8 kB / 286.3 MB, free: 3.742 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009043/0.01714, allocations: 1.841 MB / 288.1 MB, free: 1.781 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001515/0.01729, allocations: 27.97 kB / 288.1 MB, free: 1.754 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.01731, allocations: 16 kB / 288.1 MB, free: 1.738 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001616/0.01747, allocations: 203.9 kB / 288.3 MB, free: 1.535 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001671/0.01764, allocations: 228.9 kB / 288.6 MB, free: 1.254 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002268/0.01786, allocations: 229.3 kB / 288.8 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.563e-06/0.01787, allocations: 0 / 288.8 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0003361/0.0182, allocations: 317.1 kB / 289.1 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.01821, allocations: 10.33 kB / 289.1 MB, free: 0.668 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.01822, allocations: 4 kB / 289.1 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.108e-06/0.01822, allocations: 4 kB / 289.1 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002276/0.01845, allocations: 103.9 kB / 289.2 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.147e-06/0.01845, allocations: 4 kB / 289.2 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.01857, allocations: 32.2 kB / 289.3 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.01858, allocations: 12 kB / 289.3 MB, free: 0.5117 MB / 266.7 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.0001286/0.01871, allocations: 295.9 kB / 289.6 MB, free: 220 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.903e-05/0.01876, allocations: 47.77 kB / 289.6 MB, free: 172 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.485e-05/0.01881, allocations: 48.08 kB / 289.6 MB, free: 124 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.01881, allocations: 4 kB / 289.7 MB, free: 120 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.01881, allocations: 0 / 289.7 MB, free: 120 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.01882, allocations: 0 / 289.7 MB, free: 120 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006882/0.0195, allocations: 0.6836 MB / 290.3 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.01951, allocations: 0 / 290.3 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001981/0.0197, allocations: 71.89 kB / 290.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.01971, allocations: 4 kB / 290.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.01973, allocations: 12 kB / 290.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.01973, allocations: 3.938 kB / 290.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.01973, allocations: 4 kB / 290.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004059/0.02014, allocations: 467.2 kB / 290.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.438e-05/0.02021, allocations: 59.77 kB / 290.9 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.057e-05/0.02024, allocations: 12 kB / 291 MB, free: 14.72 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.02036, allocations: 31.91 kB / 291 MB, free: 14.69 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.147e-05/0.02042, allocations: 23.95 kB / 291 MB, free: 14.67 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.02043, allocations: 8 kB / 291 MB, free: 14.66 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001461/0.02058, allocations: 243.1 kB / 291.3 MB, free: 14.42 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02058, allocations: 0 / 291.3 MB, free: 14.42 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003618/0.02094, allocations: 140 kB / 291.4 MB, free: 14.29 MB / 282.7 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 9.286e-05/0.02103, allocations: 111.1 kB / 291.5 MB, free: 14.16 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006158/0.02165, allocations: 405.3 kB / 291.9 MB, free: 13.76 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.02165, allocations: 0.875 kB / 291.9 MB, free: 13.76 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.02177, allocations: 95.98 kB / 292 MB, free: 13.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004008/0.02217, allocations: 120 kB / 292.1 MB, free: 13.56 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.02346, allocations: 0.891 MB / 293 MB, free: 12.62 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.716e-05/0.02353, allocations: 109.7 kB / 293.1 MB, free: 12.49 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001673/0.02369, allocations: 55.23 kB / 293.2 MB, free: 12.44 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.582e-05/0.02377, allocations: 32.5 kB / 293.2 MB, free: 12.41 MB / 282.7 MB Notification: Performance of SimCode: time 9.72e-07/0.02377, allocations: 0 / 293.2 MB, free: 12.41 MB / 282.7 MB Notification: Performance of Templates: time 0.007432/0.0312, allocations: 5.11 MB / 298.3 MB, free: 7.375 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9298565657809377]