Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002303/0.002303, allocations: 99.53 kB / 20.97 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002614/0.002614, allocations: 164.8 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 177 MB / 204.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.005e-05/3.138e-05, allocations: 5.125 kB / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005217/0.005249, allocations: 3.023 MB / 275.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002465/0.007714, allocations: 0.9698 MB / 276.2 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002955/0.008009, allocations: 19.81 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003824/0.008392, allocations: 83.23 kB / 276.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002993/0.008691, allocations: 118.9 kB / 276.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006425/0.009334, allocations: 231.5 kB / 276.6 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006826/0.01002, allocations: 0.5261 MB / 277.2 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003041/0.01032, allocations: 117.7 kB / 277.3 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003982/0.01072, allocations: 287.2 kB / 277.5 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002667/0.01099, allocations: 159.5 kB / 277.7 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.1e-05/0.01107, allocations: 40 kB / 277.7 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.5e-05/0.01115, allocations: 44 kB / 277.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001508/0.0113, allocations: 107.6 kB / 277.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001815/0.01148, allocations: 139.6 kB / 278 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009304/0.01241, allocations: 0.5099 MB / 278.5 MB, free: 11.45 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.01242, allocations: 0 / 278.5 MB, free: 11.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.01242, allocations: 0 / 278.5 MB, free: 11.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.01243, allocations: 0 / 278.5 MB, free: 11.45 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.001371/0.0138, allocations: 0.7995 MB / 279.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.01384, allocations: 15.98 kB / 279.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001632/0.01401, allocations: 80.61 kB / 279.4 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005801/0.01459, allocations: 320.2 kB / 279.7 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.627e-05/0.01463, allocations: 33.36 kB / 279.8 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.467e-05/0.01472, allocations: 40.38 kB / 279.8 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009192/0.01564, allocations: 0.4901 MB / 280.3 MB, free: 9.559 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.031e-05/0.01567, allocations: 12.08 kB / 280.3 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.872e-05/0.01571, allocations: 16.36 kB / 280.3 MB, free: 9.531 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.01573, allocations: 19.94 kB / 280.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007693/0.0165, allocations: 299.8 kB / 280.6 MB, free: 9.219 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002556/0.01905, allocations: 1.733 MB / 282.4 MB, free: 7.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000714/0.01977, allocations: 275.2 kB / 282.6 MB, free: 7.125 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003406/0.02011, allocations: 131.6 kB / 282.8 MB, free: 6.992 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.02014, allocations: 7.938 kB / 282.8 MB, free: 6.984 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.739e-05/0.02018, allocations: 37.39 kB / 282.8 MB, free: 6.938 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.823e-06/0.02018, allocations: 4 kB / 282.8 MB, free: 6.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.002637/0.02281, allocations: 1.103 MB / 283.9 MB, free: 5.766 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.764e-05/0.0229, allocations: 106.8 kB / 284 MB, free: 5.637 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005125/0.02341, allocations: 442.6 kB / 284.5 MB, free: 5.188 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.932e-05/0.02345, allocations: 37.64 kB / 284.5 MB, free: 5.145 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002606/0.02371, allocations: 303.3 kB / 284.8 MB, free: 4.844 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.02384, allocations: 127.1 kB / 284.9 MB, free: 4.719 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.02401, allocations: 99.8 kB / 285 MB, free: 4.613 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0005234/0.02454, allocations: 0.5352 MB / 285.6 MB, free: 4.066 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003443/0.02488, allocations: 141.6 kB / 285.7 MB, free: 3.926 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004953/0.02538, allocations: 312.9 kB / 286 MB, free: 3.562 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007414/0.02612, allocations: 373.5 kB / 286.4 MB, free: 3.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.02612, allocations: 0 / 286.4 MB, free: 3.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009243/0.02704, allocations: 437 kB / 286.8 MB, free: 2.727 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.02707, allocations: 12.16 kB / 286.8 MB, free: 2.715 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.02707, allocations: 4 kB / 286.8 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.0271, allocations: 7.984 kB / 286.8 MB, free: 2.703 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007484/0.02784, allocations: 163.8 kB / 287 MB, free: 2.543 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001922/0.02977, allocations: 1.946 MB / 288.9 MB, free: 492 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002656/0.03003, allocations: 19.98 kB / 288.9 MB, free: 472 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.434e-05/0.03007, allocations: 16.12 kB / 289 MB, free: 456 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004522/0.03052, allocations: 287.8 kB / 289.2 MB, free: 164 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004775/0.031, allocations: 300.9 kB / 289.5 MB, free: 15.8 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006731/0.03167, allocations: 361.3 kB / 289.9 MB, free: 15.41 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.865e-06/0.03167, allocations: 3.938 kB / 289.9 MB, free: 15.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0008605/0.03253, allocations: 417.1 kB / 290.3 MB, free: 15 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.015e-05/0.03254, allocations: 4 kB / 290.3 MB, free: 14.99 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.03255, allocations: 8.219 kB / 290.3 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.292e-06/0.03255, allocations: 4 kB / 290.3 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000457/0.03301, allocations: 111.9 kB / 290.4 MB, free: 14.87 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.03302, allocations: 4 kB / 290.4 MB, free: 14.87 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.03326, allocations: 23.98 kB / 290.4 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.189e-05/0.03329, allocations: 20 kB / 290.5 MB, free: 14.82 MB / 282.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.0002266/0.03352, allocations: 299.8 kB / 290.8 MB, free: 14.52 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.519e-05/0.03362, allocations: 51.77 kB / 290.8 MB, free: 14.47 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000105/0.03372, allocations: 44.09 kB / 290.8 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.03373, allocations: 4 kB / 290.9 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.03373, allocations: 0 / 290.9 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.03374, allocations: 3.984 kB / 290.9 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001562/0.0353, allocations: 0.8554 MB / 291.7 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.03531, allocations: 8.125 kB / 291.7 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003849/0.03569, allocations: 75.89 kB / 291.8 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.0357, allocations: 7.938 kB / 291.8 MB, free: 13.42 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.328e-05/0.03572, allocations: 4 kB / 291.8 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.03573, allocations: 7.938 kB / 291.8 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.03573, allocations: 0 / 291.8 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.03713, allocations: 0.6593 MB / 292.5 MB, free: 12.71 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.03726, allocations: 59.73 kB / 292.5 MB, free: 12.65 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.782e-05/0.03731, allocations: 11.98 kB / 292.5 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002506/0.03756, allocations: 27.92 kB / 292.6 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.807e-05/0.03765, allocations: 23.95 kB / 292.6 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.03766, allocations: 8 kB / 292.6 MB, free: 12.58 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002995/0.03796, allocations: 283.1 kB / 292.9 MB, free: 12.31 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03796, allocations: 0 / 292.9 MB, free: 12.31 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005148/0.03848, allocations: 140 kB / 293 MB, free: 12.17 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 0.0001302/0.03861, allocations: 103.2 kB / 293.1 MB, free: 12.06 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.04012, allocations: 0.5875 MB / 293.7 MB, free: 11.46 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.04012, allocations: 4 kB / 293.7 MB, free: 11.46 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003461/0.04047, allocations: 155.5 kB / 293.9 MB, free: 11.3 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000632/0.0411, allocations: 117.5 kB / 294 MB, free: 11.2 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/0.04284, allocations: 0.9214 MB / 294.9 MB, free: 10.23 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002302/0.04307, allocations: 220.1 kB / 295.1 MB, free: 9.992 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002211/0.0433, allocations: 55.25 kB / 295.2 MB, free: 9.938 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.975e-05/0.0434, allocations: 28.5 kB / 295.2 MB, free: 9.91 MB / 282.7 MB Notification: Performance of SimCode: time 6.92e-07/0.0434, allocations: 0 / 295.2 MB, free: 9.91 MB / 282.7 MB Notification: Performance of Templates: time 0.01081/0.05421, allocations: 4.828 MB / 300 MB, free: 5.152 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_trunk_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.473393804975785]