Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001012/0.001012, allocations: 71.77 kB / 22.45 MB, free: 2.098 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.0008945/0.0008945, allocations: 166.9 kB / 25.75 MB, free: 8.594 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8358/0.8358, allocations: 158.6 MB / 187.5 MB, free: 2.949 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 251.1 MB, free: 7.836 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.655e-05/1.804e-05, allocations: 2.312 kB / 251.1 MB, free: 7.832 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003132/0.00315, allocations: 3.068 MB / 254.2 MB, free: 4.738 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.0045, allocations: 0.998 MB / 255.2 MB, free: 3.73 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.004681, allocations: 23.81 kB / 255.2 MB, free: 3.707 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002789/0.00496, allocations: 91.11 kB / 255.3 MB, free: 3.617 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001896/0.005149, allocations: 115 kB / 255.4 MB, free: 3.504 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/0.005508, allocations: 227.6 kB / 255.6 MB, free: 3.281 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003841/0.005892, allocations: 0.5338 MB / 256.1 MB, free: 2.746 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001732/0.006065, allocations: 117.7 kB / 256.3 MB, free: 2.625 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002015/0.006266, allocations: 287.2 kB / 256.5 MB, free: 2.344 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.006413, allocations: 159.5 kB / 256.7 MB, free: 2.188 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.423e-05/0.006457, allocations: 40 kB / 256.7 MB, free: 2.148 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.549e-05/0.006492, allocations: 40 kB / 256.8 MB, free: 2.109 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.893e-05/0.006561, allocations: 111.6 kB / 256.9 MB, free: 2 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.439e-05/0.006656, allocations: 139.6 kB / 257 MB, free: 1.863 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002923/0.006948, allocations: 342.6 kB / 257.3 MB, free: 1.523 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.523e-06/0.00695, allocations: 0 / 257.3 MB, free: 1.523 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.00695, allocations: 3.938 kB / 257.4 MB, free: 1.52 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.006955, allocations: 4 kB / 257.4 MB, free: 1.516 MB / 234.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.000711/0.007666, allocations: 0.7842 MB / 258.1 MB, free: 0.6953 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.717e-05/0.007693, allocations: 11.98 kB / 258.1 MB, free: 0.6836 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.284e-05/0.007776, allocations: 80.61 kB / 258.2 MB, free: 0.6055 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003263/0.008103, allocations: 332.2 kB / 258.6 MB, free: 260 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.652e-05/0.008129, allocations: 29.38 kB / 258.6 MB, free: 232 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.147e-05/0.008171, allocations: 40.36 kB / 258.6 MB, free: 192 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004169/0.008587, allocations: 397.2 kB / 259 MB, free: 15.75 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.008602, allocations: 4.141 kB / 259 MB, free: 15.75 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.314e-05/0.008625, allocations: 16.38 kB / 259 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.008635, allocations: 11.94 kB / 259 MB, free: 15.72 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002387/0.008874, allocations: 169.8 kB / 259.2 MB, free: 15.56 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001184/0.01006, allocations: 1.58 MB / 260.8 MB, free: 13.9 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.01036, allocations: 195.3 kB / 261 MB, free: 13.7 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.219e-05/0.01045, allocations: 63.66 kB / 261 MB, free: 13.63 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.01047, allocations: 8 kB / 261 MB, free: 13.62 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.01049, allocations: 41.38 kB / 261.1 MB, free: 13.57 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.312e-06/0.01049, allocations: 0 / 261.1 MB, free: 13.57 MB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.0009525/0.01144, allocations: 0.7872 MB / 261.9 MB, free: 12.73 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.01148, allocations: 81.11 kB / 262 MB, free: 12.63 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/0.0117, allocations: 374.7 kB / 262.3 MB, free: 12.25 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.01172, allocations: 33.7 kB / 262.4 MB, free: 12.21 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.01184, allocations: 299.2 kB / 262.6 MB, free: 11.91 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.612e-05/0.0119, allocations: 119 kB / 262.8 MB, free: 11.8 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.99e-05/0.01198, allocations: 83.8 kB / 262.8 MB, free: 11.7 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.0121, allocations: 0.5196 MB / 263.4 MB, free: 11.17 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.01221, allocations: 69.64 kB / 263.4 MB, free: 11.1 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/0.01236, allocations: 199.5 kB / 263.6 MB, free: 10.86 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002258/0.01259, allocations: 237.5 kB / 263.9 MB, free: 10.59 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.01259, allocations: 4 kB / 263.9 MB, free: 10.58 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0003383/0.01293, allocations: 305.1 kB / 264.2 MB, free: 10.28 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.01294, allocations: 11.94 kB / 264.2 MB, free: 10.27 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.01294, allocations: 3.938 kB / 264.2 MB, free: 10.26 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.01296, allocations: 4.219 kB / 264.2 MB, free: 10.26 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003706/0.01333, allocations: 163.8 kB / 264.3 MB, free: 10.1 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007277/0.01405, allocations: 1.844 MB / 266.2 MB, free: 8.129 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.01418, allocations: 23.98 kB / 266.2 MB, free: 8.105 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.0142, allocations: 19.98 kB / 266.2 MB, free: 8.086 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001481/0.01434, allocations: 195.8 kB / 266.4 MB, free: 7.891 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001444/0.01449, allocations: 199.5 kB / 266.6 MB, free: 7.652 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002145/0.0147, allocations: 237.3 kB / 266.8 MB, free: 7.383 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.192e-06/0.0147, allocations: 0 / 266.8 MB, free: 7.383 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0003161/0.01502, allocations: 309.1 kB / 267.1 MB, free: 7.074 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.772e-06/0.01503, allocations: 8 kB / 267.2 MB, free: 7.066 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.014e-06/0.01503, allocations: 224 / 267.2 MB, free: 7.066 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.925e-06/0.01503, allocations: 8 kB / 267.2 MB, free: 7.059 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002257/0.01526, allocations: 111.8 kB / 267.3 MB, free: 6.949 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.015e-06/0.01526, allocations: 4 kB / 267.3 MB, free: 6.945 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.01537, allocations: 23.98 kB / 267.3 MB, free: 6.922 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.01539, allocations: 16 kB / 267.3 MB, free: 6.906 MB / 250.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 9.852e-05/0.01548, allocations: 295.9 kB / 267.6 MB, free: 6.609 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.479e-05/0.01553, allocations: 47.77 kB / 267.6 MB, free: 6.562 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.651e-05/0.01558, allocations: 48.14 kB / 267.7 MB, free: 6.516 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.01558, allocations: 4 kB / 267.7 MB, free: 6.512 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.01558, allocations: 0 / 267.7 MB, free: 6.512 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.01558, allocations: 0 / 267.7 MB, free: 6.512 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006149/0.0162, allocations: 0.6789 MB / 268.4 MB, free: 5.773 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.0162, allocations: 8 kB / 268.4 MB, free: 5.766 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/0.01639, allocations: 67.95 kB / 268.5 MB, free: 5.699 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.01639, allocations: 0 / 268.5 MB, free: 5.699 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.0164, allocations: 16.06 kB / 268.5 MB, free: 5.684 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.01641, allocations: 7.938 kB / 268.5 MB, free: 5.676 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.01641, allocations: 0 / 268.5 MB, free: 5.676 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003748/0.01678, allocations: 479.5 kB / 268.9 MB, free: 5.172 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7e-05/0.01685, allocations: 59.72 kB / 269 MB, free: 5.113 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.572e-05/0.01688, allocations: 4 kB / 269 MB, free: 5.109 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.01699, allocations: 23.92 kB / 269 MB, free: 5.086 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.007e-05/0.01704, allocations: 31.95 kB / 269.1 MB, free: 5.055 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.01705, allocations: 8 kB / 269.1 MB, free: 5.047 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001368/0.01719, allocations: 251.1 kB / 269.3 MB, free: 4.801 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01719, allocations: 0 / 269.3 MB, free: 4.801 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003324/0.01752, allocations: 140 kB / 269.5 MB, free: 4.664 MB / 250.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 6.846e-05/0.01759, allocations: 103.1 kB / 269.6 MB, free: 4.551 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005572/0.01814, allocations: 405.3 kB / 269.9 MB, free: 4.145 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.01815, allocations: 0 / 269.9 MB, free: 4.145 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.01825, allocations: 99.72 kB / 270 MB, free: 4.043 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.0186, allocations: 97.55 kB / 270.1 MB, free: 3.953 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.01969, allocations: 0.89 MB / 271 MB, free: 3.012 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.122e-05/0.01975, allocations: 113.7 kB / 271.1 MB, free: 2.883 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001337/0.01988, allocations: 55.25 kB / 271.2 MB, free: 2.832 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.558e-05/0.01995, allocations: 28.5 kB / 271.2 MB, free: 2.805 MB / 250.7 MB Notification: Performance of SimCode: time 5.72e-07/0.01995, allocations: 0 / 271.2 MB, free: 2.805 MB / 250.7 MB Notification: Performance of Templates: time 0.005967/0.02591, allocations: 4.868 MB / 276.1 MB, free: 13.98 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.549243693938479]