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.001167/0.001167, allocations: 85.95 kB / 23 MB, free: 1.504 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.0009812/0.0009812, allocations: 175.6 kB / 26.39 MB, free: 7.988 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.8983/0.8983, allocations: 158.6 MB / 188.3 MB, free: 2.801 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.723e-06/1.723e-06, allocations: 0 / 252.2 MB, free: 7.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.62e-05/1.792e-05, allocations: 2.312 kB / 252.2 MB, free: 7.277 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003344/0.003362, allocations: 3.04 MB / 255.3 MB, free: 4.207 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.004725, allocations: 0.9941 MB / 256.3 MB, free: 3.203 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000201/0.004926, allocations: 23.81 kB / 256.3 MB, free: 3.18 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003107/0.005236, allocations: 91.11 kB / 256.4 MB, free: 3.09 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000202/0.005438, allocations: 119 kB / 256.5 MB, free: 2.973 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000421/0.005859, allocations: 227.5 kB / 256.7 MB, free: 2.75 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007685/0.006628, allocations: 0.5377 MB / 257.3 MB, free: 2.211 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001998/0.006828, allocations: 113.7 kB / 257.4 MB, free: 2.094 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002412/0.007069, allocations: 283.4 kB / 257.6 MB, free: 1.816 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/0.007248, allocations: 167.4 kB / 257.8 MB, free: 1.652 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.625e-05/0.007294, allocations: 40 kB / 257.8 MB, free: 1.613 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.06e-05/0.007335, allocations: 40 kB / 257.9 MB, free: 1.574 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.425e-05/0.007419, allocations: 107.5 kB / 258 MB, free: 1.469 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.404e-05/0.007513, allocations: 139.6 kB / 258.1 MB, free: 1.332 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003093/0.007822, allocations: 346.6 kB / 258.5 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.007824, allocations: 0 / 258.5 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.007825, allocations: 0 / 258.5 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.00783, allocations: 0 / 258.5 MB, free: 0.9922 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.0007521/0.008582, allocations: 0.7919 MB / 259.3 MB, free: 168 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.008615, allocations: 11.98 kB / 259.3 MB, free: 156 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.428e-05/0.0087, allocations: 80.61 kB / 259.3 MB, free: 76 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/0.009025, allocations: 332.2 kB / 259.7 MB, free: 15.72 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.009057, allocations: 29.38 kB / 259.7 MB, free: 15.7 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.482e-05/0.009102, allocations: 36.38 kB / 259.7 MB, free: 15.66 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003731/0.009475, allocations: 373.1 kB / 260.1 MB, free: 15.25 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.009491, allocations: 4.141 kB / 260.1 MB, free: 15.25 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.009511, allocations: 12.38 kB / 260.1 MB, free: 15.23 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.009528, allocations: 19.94 kB / 260.1 MB, free: 15.21 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001631/0.009691, allocations: 130.8 kB / 260.3 MB, free: 15.09 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.01087, allocations: 1.53 MB / 261.8 MB, free: 13.49 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/0.01115, allocations: 175.2 kB / 262 MB, free: 13.31 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.222e-05/0.01123, allocations: 59.66 kB / 262 MB, free: 13.25 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.01125, allocations: 7.938 kB / 262 MB, free: 13.24 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.01128, allocations: 41.39 kB / 262.1 MB, free: 13.19 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.904e-06/0.01128, allocations: 0 / 262.1 MB, free: 13.19 MB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.0008498/0.01213, allocations: 0.6742 MB / 262.7 MB, free: 12.45 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/0.01217, allocations: 85.11 kB / 262.8 MB, free: 12.35 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002146/0.01239, allocations: 370.5 kB / 263.2 MB, free: 11.98 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.01241, allocations: 33.7 kB / 263.2 MB, free: 11.94 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.01254, allocations: 303.2 kB / 263.5 MB, free: 11.64 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.071e-05/0.0126, allocations: 111 kB / 263.6 MB, free: 11.53 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.461e-05/0.0127, allocations: 91.77 kB / 263.7 MB, free: 11.43 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0004326/0.01313, allocations: 0.5195 MB / 264.2 MB, free: 10.89 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.193e-05/0.0132, allocations: 57.64 kB / 264.3 MB, free: 10.84 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.01333, allocations: 179.5 kB / 264.5 MB, free: 10.61 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001926/0.01352, allocations: 217.5 kB / 264.7 MB, free: 10.36 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.01352, allocations: 0 / 264.7 MB, free: 10.36 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002819/0.0138, allocations: 281.1 kB / 265 MB, free: 10.08 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.01382, allocations: 12.22 kB / 265 MB, free: 10.07 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.01383, allocations: 7.922 kB / 265 MB, free: 10.06 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.01384, allocations: 4 kB / 265 MB, free: 10.05 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003767/0.01421, allocations: 159.8 kB / 265.1 MB, free: 9.898 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007795/0.01499, allocations: 1.826 MB / 267 MB, free: 7.957 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/0.01512, allocations: 23.98 kB / 267 MB, free: 7.934 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.01513, allocations: 12 kB / 267 MB, free: 7.922 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001208/0.01525, allocations: 183.8 kB / 267.2 MB, free: 7.738 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001164/0.01537, allocations: 183.4 kB / 267.4 MB, free: 7.516 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001712/0.01554, allocations: 213.4 kB / 267.6 MB, free: 7.27 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.222e-06/0.01554, allocations: 0 / 267.6 MB, free: 7.27 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0002587/0.0158, allocations: 293.2 kB / 267.8 MB, free: 6.977 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.833e-06/0.01581, allocations: 8 kB / 267.9 MB, free: 6.969 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-06/0.01581, allocations: 0 / 267.9 MB, free: 6.969 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.246e-06/0.01581, allocations: 4 kB / 267.9 MB, free: 6.965 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.01603, allocations: 107.9 kB / 268 MB, free: 6.859 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.01604, allocations: 7.938 kB / 268 MB, free: 6.852 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.01615, allocations: 27.97 kB / 268 MB, free: 6.824 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.01616, allocations: 8 kB / 268 MB, free: 6.816 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 (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.0001154/0.01628, allocations: 300 kB / 268.3 MB, free: 6.516 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.082e-05/0.01633, allocations: 47.77 kB / 268.3 MB, free: 6.469 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.681e-05/0.01638, allocations: 44.14 kB / 268.4 MB, free: 6.426 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.01638, allocations: 4 kB / 268.4 MB, free: 6.422 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.01639, allocations: 0 / 268.4 MB, free: 6.422 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.01639, allocations: 3.984 kB / 268.4 MB, free: 6.418 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005772/0.01697, allocations: 0.6014 MB / 269 MB, free: 5.766 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.01697, allocations: 0 / 269 MB, free: 5.766 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.01716, allocations: 84.02 kB / 269.1 MB, free: 5.684 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.01716, allocations: 0 / 269.1 MB, free: 5.684 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.01718, allocations: 8 kB / 269.1 MB, free: 5.676 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.01718, allocations: 7.938 kB / 269.1 MB, free: 5.668 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01718, allocations: 0 / 269.1 MB, free: 5.668 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003351/0.01752, allocations: 447.5 kB / 269.5 MB, free: 5.195 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.974e-05/0.01759, allocations: 55.73 kB / 269.6 MB, free: 5.141 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.776e-05/0.01761, allocations: 7.984 kB / 269.6 MB, free: 5.133 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.01773, allocations: 23.98 kB / 269.6 MB, free: 5.109 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.301e-05/0.01778, allocations: 39.83 kB / 269.7 MB, free: 5.07 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.01779, allocations: 7.938 kB / 269.7 MB, free: 5.062 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001111/0.0179, allocations: 243 kB / 269.9 MB, free: 4.824 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0179, allocations: 0 / 269.9 MB, free: 4.824 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003219/0.01822, allocations: 132 kB / 270 MB, free: 4.695 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 8.323e-05/0.01831, allocations: 111.1 kB / 270.1 MB, free: 4.574 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004828/0.01879, allocations: 361.3 kB / 270.5 MB, free: 4.211 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.01879, allocations: 0 / 270.5 MB, free: 4.211 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.027e-05/0.01888, allocations: 95.7 kB / 270.6 MB, free: 4.113 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003764/0.01926, allocations: 113.3 kB / 270.7 MB, free: 4.012 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.02063, allocations: 0.8821 MB / 271.6 MB, free: 3.078 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.58e-05/0.0207, allocations: 113.7 kB / 271.7 MB, free: 2.949 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.02083, allocations: 51.25 kB / 271.7 MB, free: 2.902 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.02102, allocations: 158.1 kB / 271.9 MB, free: 2.746 MB / 250.7 MB Notification: Performance of SimCode: time 6.31e-07/0.02102, allocations: 0 / 271.9 MB, free: 2.746 MB / 250.7 MB Notification: Performance of Templates: time 0.0086/0.02962, allocations: 5.429 MB / 277.3 MB, free: 13.36 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.8466082490049303]