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.001125/0.001125, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001114/0.001114, allocations: 167.6 kB / 25.61 MB, free: 8.902 MB / 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.961/0.961, allocations: 177.1 MB / 206 MB, free: 4.504 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 3.336e-06/3.336e-06, allocations: 4 kB / 274.2 MB, free: 4.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.399e-05/2.732e-05, allocations: 3.625 kB / 274.2 MB, free: 4.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004493/0.00452, allocations: 3.031 MB / 277.2 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.005925, allocations: 0.9756 MB / 278.2 MB, free: 452 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002151/0.00614, allocations: 21.75 kB / 278.2 MB, free: 432 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003013/0.006441, allocations: 91.11 kB / 278.3 MB, free: 340 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001888/0.00663, allocations: 107 kB / 278.4 MB, free: 232 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004469/0.007077, allocations: 235.6 kB / 278.6 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004159/0.007493, allocations: 0.5299 MB / 279.2 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001962/0.007689, allocations: 117.7 kB / 279.3 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002529/0.007942, allocations: 287.3 kB / 279.6 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001658/0.008108, allocations: 159.5 kB / 279.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.455e-05/0.008152, allocations: 44 kB / 279.8 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.808e-05/0.00819, allocations: 40 kB / 279.8 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.74e-05/0.008288, allocations: 107.6 kB / 279.9 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.455e-05/0.008382, allocations: 143.6 kB / 280 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000304/0.008686, allocations: 334.6 kB / 280.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.008689, allocations: 0 / 280.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.00869, allocations: 0 / 280.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.81e-06/0.008694, allocations: 0 / 280.4 MB, free: 14.25 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.0007615/0.009456, allocations: 0.7841 MB / 281.1 MB, free: 13.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.986e-05/0.009486, allocations: 8.031 kB / 281.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.458e-05/0.00957, allocations: 88.56 kB / 281.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003014/0.009872, allocations: 320.2 kB / 281.6 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.944e-05/0.009901, allocations: 29.38 kB / 281.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.416e-05/0.009945, allocations: 36.38 kB / 281.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003729/0.01032, allocations: 410.5 kB / 282 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.01033, allocations: 8.141 kB / 282 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.01036, allocations: 16.38 kB / 282 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.01037, allocations: 11.94 kB / 282.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001607/0.01053, allocations: 134.8 kB / 282.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001271/0.0118, allocations: 1.534 MB / 283.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002834/0.01208, allocations: 163.3 kB / 283.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.298e-05/0.01215, allocations: 51.66 kB / 283.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.01217, allocations: 4.5 kB / 283.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.01219, allocations: 41.39 kB / 284 MB, free: 10.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.0122, allocations: 0 / 284 MB, free: 10.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.0008652/0.01306, allocations: 0.6802 MB / 284.7 MB, free: 9.684 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/0.01311, allocations: 114.8 kB / 284.8 MB, free: 9.547 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002143/0.01332, allocations: 362.5 kB / 285.1 MB, free: 9.176 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.01334, allocations: 29.7 kB / 285.2 MB, free: 9.141 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.01347, allocations: 303.2 kB / 285.4 MB, free: 8.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.981e-05/0.01353, allocations: 118.9 kB / 285.6 MB, free: 8.723 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.732e-05/0.01362, allocations: 83.81 kB / 285.6 MB, free: 8.629 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002805/0.0139, allocations: 0.5195 MB / 286.2 MB, free: 8.098 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.31e-05/0.01397, allocations: 53.66 kB / 286.2 MB, free: 8.043 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.01411, allocations: 236.7 kB / 286.4 MB, free: 7.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001762/0.01428, allocations: 202.1 kB / 286.6 MB, free: 7.516 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.01429, allocations: 0 / 286.6 MB, free: 7.516 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002943/0.01458, allocations: 293 kB / 286.9 MB, free: 7.223 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.0146, allocations: 8.219 kB / 286.9 MB, free: 7.215 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.0146, allocations: 7.938 kB / 286.9 MB, free: 7.207 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.418e-06/0.01461, allocations: 4 kB / 287 MB, free: 7.203 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003732/0.01499, allocations: 159.8 kB / 287.1 MB, free: 7.047 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008384/0.01582, allocations: 1.833 MB / 288.9 MB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.01598, allocations: 31.95 kB / 289 MB, free: 5.074 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.016, allocations: 15.94 kB / 289 MB, free: 5.059 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001223/0.01612, allocations: 175.8 kB / 289.2 MB, free: 4.883 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001285/0.01625, allocations: 224.8 kB / 289.4 MB, free: 4.609 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001647/0.01641, allocations: 213.4 kB / 289.6 MB, free: 4.363 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.062e-06/0.01641, allocations: 0 / 289.6 MB, free: 4.363 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0002552/0.01667, allocations: 273.3 kB / 289.9 MB, free: 4.09 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.723e-06/0.01667, allocations: 12 kB / 289.9 MB, free: 4.078 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/0.01668, allocations: 7.938 kB / 289.9 MB, free: 4.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.727e-06/0.01668, allocations: 4 kB / 289.9 MB, free: 4.066 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002201/0.0169, allocations: 107.8 kB / 290 MB, free: 3.961 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.0169, allocations: 4 kB / 290 MB, free: 3.957 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001169/0.01702, allocations: 31.97 kB / 290 MB, free: 3.926 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.01704, allocations: 12 kB / 290 MB, free: 3.914 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.0001147/0.01715, allocations: 292 kB / 290.3 MB, free: 3.621 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.074e-05/0.0172, allocations: 51.72 kB / 290.4 MB, free: 3.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.795e-05/0.01725, allocations: 48.09 kB / 290.4 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.01725, allocations: 0 / 290.4 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.01725, allocations: 4 kB / 290.4 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.01726, allocations: 0 / 290.4 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005636/0.01782, allocations: 0.6073 MB / 291 MB, free: 2.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.01782, allocations: 0 / 291 MB, free: 2.859 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.018, allocations: 72.08 kB / 291.1 MB, free: 2.789 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.01801, allocations: 4 kB / 291.1 MB, free: 2.785 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.01802, allocations: 12 kB / 291.1 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.01802, allocations: 3.938 kB / 291.1 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.01803, allocations: 4 kB / 291.1 MB, free: 2.766 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000317/0.01834, allocations: 439.2 kB / 291.5 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.814e-05/0.01841, allocations: 59.67 kB / 291.6 MB, free: 2.242 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.707e-05/0.01844, allocations: 8 kB / 291.6 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.01855, allocations: 27.97 kB / 291.6 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.742e-05/0.0186, allocations: 27.89 kB / 291.7 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.01861, allocations: 12 kB / 291.7 MB, free: 2.168 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001133/0.01872, allocations: 231 kB / 291.9 MB, free: 1.941 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01872, allocations: 0 / 291.9 MB, free: 1.941 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000322/0.01905, allocations: 136 kB / 292 MB, free: 1.809 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 8.644e-05/0.01913, allocations: 111.1 kB / 292.1 MB, free: 1.688 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004691/0.0196, allocations: 365.5 kB / 292.5 MB, free: 1.324 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.0196, allocations: 0 / 292.5 MB, free: 1.324 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.072e-05/0.01969, allocations: 91.72 kB / 292.6 MB, free: 1.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003657/0.02006, allocations: 113 kB / 292.7 MB, free: 1.125 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.02129, allocations: 0.883 MB / 293.6 MB, free: 196 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.332e-05/0.02136, allocations: 121.6 kB / 293.7 MB, free: 52 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001356/0.02149, allocations: 47.27 kB / 293.7 MB, free: 8 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.02169, allocations: 158.1 kB / 293.9 MB, free: 15.85 MB / 282.7 MB Notification: Performance of SimCode: time 5.41e-07/0.02169, allocations: 0 / 293.9 MB, free: 15.85 MB / 282.7 MB Notification: Performance of Templates: time 0.007101/0.02879, allocations: 5.388 MB / 299.3 MB, free: 10.56 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.8330516437999904]