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.0008631/0.0008631, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 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.0009666/0.0009666, allocations: 145.4 kB / 25.59 MB, free: 8.918 MB / 18.57 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 0.9775/0.9775, allocations: 173.4 MB / 202.3 MB, free: 8.277 MB / 186.7 MB " [Timeout remaining time 179] 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 1.322e-06/1.322e-06, allocations: 0 / 269.2 MB, free: 9.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.023e-05/2.155e-05, allocations: 5.266 kB / 269.2 MB, free: 9.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003834/0.003856, allocations: 3.028 MB / 272.2 MB, free: 6.773 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.005429, allocations: 0.9482 MB / 273.2 MB, free: 5.828 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002449/0.005673, allocations: 19.88 kB / 273.2 MB, free: 5.809 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000329/0.006002, allocations: 89.2 kB / 273.3 MB, free: 5.723 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002411/0.006244, allocations: 111.8 kB / 273.4 MB, free: 5.613 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004706/0.006714, allocations: 241.5 kB / 273.6 MB, free: 5.379 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006344/0.007349, allocations: 0.53 MB / 274.1 MB, free: 4.844 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002687/0.007617, allocations: 109.7 kB / 274.2 MB, free: 4.738 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002858/0.007903, allocations: 280.6 kB / 274.5 MB, free: 4.465 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.008091, allocations: 163.5 kB / 274.7 MB, free: 4.305 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.639e-05/0.008138, allocations: 40 kB / 274.7 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.086e-05/0.008179, allocations: 44.53 kB / 274.8 MB, free: 4.223 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.1e-05/0.00826, allocations: 107.6 kB / 274.9 MB, free: 4.117 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.794e-05/0.008358, allocations: 140.3 kB / 275 MB, free: 3.98 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000317/0.008675, allocations: 342.6 kB / 275.3 MB, free: 3.645 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.008677, allocations: 1.656 kB / 275.3 MB, free: 3.645 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.00868, allocations: 4 kB / 275.3 MB, free: 3.641 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.008684, allocations: 0 / 275.3 MB, free: 3.641 MB / 250.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.0007441/0.009428, allocations: 0.7852 MB / 276.1 MB, free: 2.816 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.009462, allocations: 8.031 kB / 276.1 MB, free: 2.809 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.999e-05/0.009542, allocations: 80.61 kB / 276.2 MB, free: 2.73 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003022/0.009844, allocations: 324.2 kB / 276.5 MB, free: 2.387 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.465e-05/0.009868, allocations: 25.38 kB / 276.6 MB, free: 2.363 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.302e-05/0.009911, allocations: 40.38 kB / 276.6 MB, free: 2.324 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003616/0.01027, allocations: 372.7 kB / 277 MB, free: 1.914 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.01029, allocations: 3.984 kB / 277 MB, free: 1.91 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.156e-05/0.01031, allocations: 16 kB / 277 MB, free: 1.895 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.01032, allocations: 12 kB / 277 MB, free: 1.883 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001654/0.01048, allocations: 134.8 kB / 277.1 MB, free: 1.75 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001408/0.01189, allocations: 1.534 MB / 278.7 MB, free: 152 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002666/0.01216, allocations: 171.3 kB / 278.8 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.957e-05/0.01223, allocations: 60.16 kB / 278.9 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.01225, allocations: 4 kB / 278.9 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.01227, allocations: 37.39 kB / 278.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.263e-06/0.01227, allocations: 0 / 278.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.0007971/0.01307, allocations: 0.6826 MB / 279.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.217e-05/0.0131, allocations: 81.11 kB / 279.7 MB, free: 15.01 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001955/0.01329, allocations: 370.5 kB / 280 MB, free: 14.63 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.01331, allocations: 33.7 kB / 280.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.01343, allocations: 291.2 kB / 280.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.277e-05/0.0135, allocations: 126.9 kB / 280.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.912e-05/0.01358, allocations: 79.81 kB / 280.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.0137, allocations: 0.5195 MB / 281.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.821e-05/0.01377, allocations: 57.59 kB / 281.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.0139, allocations: 191.4 kB / 281.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001815/0.01409, allocations: 214 kB / 281.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.01409, allocations: 4 kB / 281.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002917/0.01438, allocations: 281.1 kB / 281.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.01439, allocations: 8 kB / 281.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.0144, allocations: 4 kB / 281.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.388e-06/0.01441, allocations: 4.219 kB / 281.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003623/0.01477, allocations: 163.8 kB / 282 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007936/0.01556, allocations: 1.829 MB / 283.8 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001287/0.01569, allocations: 27.92 kB / 283.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.01571, allocations: 12 kB / 283.9 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001186/0.01583, allocations: 183.8 kB / 284 MB, free: 10.39 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001194/0.01595, allocations: 183.5 kB / 284.2 MB, free: 10.17 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002972/0.01624, allocations: 225.3 kB / 284.4 MB, free: 9.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.203e-06/0.01624, allocations: 0 / 284.4 MB, free: 9.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0002628/0.01651, allocations: 269.2 kB / 284.7 MB, free: 9.641 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.516e-06/0.01652, allocations: 8 kB / 284.7 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-06/0.01652, allocations: 224 / 284.7 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.458e-06/0.01652, allocations: 11.98 kB / 284.7 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.01678, allocations: 115.8 kB / 284.8 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.01679, allocations: 4 kB / 284.8 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.01691, allocations: 23.98 kB / 284.9 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.01693, allocations: 12 kB / 284.9 MB, free: 9.469 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 (PI.I.local_reset,integrator.local_reset,kinematicPTP.noWphase) * 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.0001112/0.01704, allocations: 295.9 kB / 285.2 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.245e-05/0.01709, allocations: 51.72 kB / 285.2 MB, free: 9.121 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.888e-05/0.01714, allocations: 52.08 kB / 285.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.01714, allocations: 4 kB / 285.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.01715, allocations: 0 / 285.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.01715, allocations: 0 / 285.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000587/0.01774, allocations: 0.6067 MB / 285.9 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.01774, allocations: 0 / 285.9 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001875/0.01793, allocations: 67.91 kB / 285.9 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.01793, allocations: 4 kB / 285.9 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.01794, allocations: 16.12 kB / 286 MB, free: 8.324 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.01795, allocations: 7.984 kB / 286 MB, free: 8.316 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.01795, allocations: 3.938 kB / 286 MB, free: 8.312 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003208/0.01827, allocations: 440.4 kB / 286.4 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.002e-05/0.01834, allocations: 55.73 kB / 286.5 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.681e-05/0.01837, allocations: 8 kB / 286.5 MB, free: 7.785 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.01848, allocations: 19.98 kB / 286.5 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.349e-05/0.01853, allocations: 27.89 kB / 286.5 MB, free: 7.738 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.01854, allocations: 16 kB / 286.5 MB, free: 7.723 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001158/0.01866, allocations: 235 kB / 286.8 MB, free: 7.496 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01866, allocations: 0 / 286.8 MB, free: 7.496 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003393/0.019, allocations: 136 kB / 286.9 MB, free: 7.363 MB / 266.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 0.0001014/0.0191, allocations: 107.1 kB / 287 MB, free: 7.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005048/0.0196, allocations: 361.7 kB / 287.3 MB, free: 6.887 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.01961, allocations: 0 / 287.3 MB, free: 6.887 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.184e-05/0.0197, allocations: 95.38 kB / 287.4 MB, free: 6.789 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003908/0.02009, allocations: 107.1 kB / 287.5 MB, free: 6.691 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.02134, allocations: 0.8882 MB / 288.4 MB, free: 5.754 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.784e-05/0.02141, allocations: 109.7 kB / 288.5 MB, free: 5.629 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001569/0.02157, allocations: 51.27 kB / 288.6 MB, free: 5.582 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.02177, allocations: 166.1 kB / 288.8 MB, free: 5.418 MB / 266.7 MB Notification: Performance of SimCode: time 1.272e-06/0.02177, allocations: 0 / 288.8 MB, free: 5.418 MB / 266.7 MB Notification: Performance of Templates: time 0.007657/0.02942, allocations: 5.419 MB / 294.2 MB, free: 92 kB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] 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","",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.7920942869968712]