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.001156/0.001156, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.0009695/0.0009695, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 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 1.183/1.183, allocations: 173.4 MB / 201.1 MB, free: 9.316 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.062e-06/1.062e-06, allocations: 0 / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.579e-05/1.685e-05, allocations: 6.312 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003332/0.003349, allocations: 3.063 MB / 271 MB, free: 3.352 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.005112, allocations: 0.9581 MB / 272 MB, free: 2.391 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002487/0.005361, allocations: 19.88 kB / 272 MB, free: 2.371 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002767/0.005638, allocations: 87.17 kB / 272.1 MB, free: 2.285 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002093/0.005847, allocations: 114.9 kB / 272.2 MB, free: 2.172 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004236/0.006271, allocations: 231.6 kB / 272.4 MB, free: 1.945 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004061/0.006677, allocations: 0.5338 MB / 273 MB, free: 1.406 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/0.006863, allocations: 113.7 kB / 273.1 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002176/0.007081, allocations: 283.3 kB / 273.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00015/0.007231, allocations: 159.5 kB / 273.5 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.62e-05/0.007277, allocations: 40 kB / 273.6 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.949e-05/0.007316, allocations: 44 kB / 273.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.158e-05/0.007388, allocations: 111.5 kB / 273.7 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.829e-05/0.007476, allocations: 135.7 kB / 273.8 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002956/0.007772, allocations: 346.6 kB / 274.2 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.007774, allocations: 0 / 274.2 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.007774, allocations: 0 / 274.2 MB, free: 204 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.007779, allocations: 0 / 274.2 MB, free: 204 kB / 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.000749/0.008528, allocations: 0.781 MB / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.03e-05/0.008558, allocations: 8.031 kB / 275 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.748e-05/0.008646, allocations: 84.61 kB / 275 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.008957, allocations: 312.2 kB / 275.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.557e-05/0.008983, allocations: 33.38 kB / 275.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.431e-05/0.009027, allocations: 44.31 kB / 275.4 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004342/0.009461, allocations: 396 kB / 275.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.00948, allocations: 7.984 kB / 275.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.396e-05/0.009503, allocations: 16 kB / 275.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.009514, allocations: 8 kB / 275.8 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002291/0.009743, allocations: 161.8 kB / 276 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.01127, allocations: 1.588 MB / 277.6 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002948/0.01156, allocations: 194 kB / 277.8 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.867e-05/0.01165, allocations: 67.66 kB / 277.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.01167, allocations: 8 kB / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.01169, allocations: 41.39 kB / 277.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.082e-06/0.0117, allocations: 0 / 277.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.0009761/0.01267, allocations: 0.7905 MB / 278.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.01271, allocations: 81.11 kB / 278.8 MB, free: 11.31 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.01296, allocations: 378.6 kB / 279.1 MB, free: 10.92 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.01298, allocations: 29.7 kB / 279.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.0131, allocations: 287.3 kB / 279.4 MB, free: 10.6 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.022e-05/0.01316, allocations: 131.1 kB / 279.6 MB, free: 10.47 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.644e-05/0.01324, allocations: 79.81 kB / 279.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.01336, allocations: 0.5234 MB / 280.2 MB, free: 9.848 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.01346, allocations: 69.66 kB / 280.2 MB, free: 9.777 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.01361, allocations: 199.5 kB / 280.4 MB, free: 9.531 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002351/0.01385, allocations: 237.5 kB / 280.7 MB, free: 9.262 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.01385, allocations: 0 / 280.7 MB, free: 9.262 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0003355/0.01418, allocations: 313.1 kB / 281 MB, free: 8.949 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.979e-06/0.01419, allocations: 4 kB / 281 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.0142, allocations: 4 kB / 281 MB, free: 8.941 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.01421, allocations: 4 kB / 281 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003548/0.01457, allocations: 164 kB / 281.1 MB, free: 8.777 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007971/0.01536, allocations: 1.852 MB / 283 MB, free: 6.809 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/0.01551, allocations: 31.97 kB / 283 MB, free: 6.777 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.01552, allocations: 16 kB / 283 MB, free: 6.762 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000158/0.01568, allocations: 187.8 kB / 283.2 MB, free: 6.574 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004483/0.01613, allocations: 203.4 kB / 283.4 MB, free: 6.328 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002146/0.01634, allocations: 237.3 kB / 283.7 MB, free: 6.059 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.924e-06/0.01635, allocations: 0 / 283.7 MB, free: 6.059 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0003094/0.01666, allocations: 305.1 kB / 284 MB, free: 5.754 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.284e-06/0.01666, allocations: 4 kB / 284 MB, free: 5.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.01667, allocations: 7.984 kB / 284 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.176e-06/0.01667, allocations: 4 kB / 284 MB, free: 5.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002183/0.01689, allocations: 112 kB / 284.1 MB, free: 5.629 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.439e-06/0.0169, allocations: 7.938 kB / 284.1 MB, free: 5.621 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.017, allocations: 31.97 kB / 284.1 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.01702, allocations: 12 kB / 284.1 MB, free: 5.578 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 (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.0001158/0.01713, allocations: 288 kB / 284.4 MB, free: 5.289 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.757e-05/0.01718, allocations: 47.77 kB / 284.5 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.139e-05/0.01722, allocations: 40.09 kB / 284.5 MB, free: 5.199 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.01723, allocations: 7.938 kB / 284.5 MB, free: 5.191 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.01723, allocations: 4 kB / 284.5 MB, free: 5.188 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.01723, allocations: 3.984 kB / 284.5 MB, free: 5.184 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006401/0.01787, allocations: 0.6796 MB / 285.2 MB, free: 4.449 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.01788, allocations: 0 / 285.2 MB, free: 4.449 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000186/0.01806, allocations: 71.89 kB / 285.3 MB, free: 4.379 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.297e-06/0.01807, allocations: 4 kB / 285.3 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.01808, allocations: 8 kB / 285.3 MB, free: 4.367 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.01809, allocations: 4.062 kB / 285.3 MB, free: 4.363 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.01809, allocations: 8 kB / 285.3 MB, free: 4.355 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003928/0.01848, allocations: 475 kB / 285.8 MB, free: 3.855 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.051e-05/0.01855, allocations: 59.78 kB / 285.8 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.707e-05/0.01858, allocations: 12 kB / 285.8 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.01869, allocations: 19.98 kB / 285.8 MB, free: 3.766 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.867e-05/0.01875, allocations: 31.89 kB / 285.9 MB, free: 3.734 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.01876, allocations: 8 kB / 285.9 MB, free: 3.727 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001368/0.0189, allocations: 247.1 kB / 286.1 MB, free: 3.488 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0189, allocations: 4 kB / 286.1 MB, free: 3.484 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000331/0.01923, allocations: 136 kB / 286.3 MB, free: 3.352 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 7.549e-05/0.0193, allocations: 103.2 kB / 286.4 MB, free: 3.242 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000574/0.01988, allocations: 405.6 kB / 286.8 MB, free: 2.836 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01988, allocations: 4 kB / 286.8 MB, free: 2.832 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.01998, allocations: 91.52 kB / 286.9 MB, free: 2.738 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.02035, allocations: 105.1 kB / 287 MB, free: 2.645 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.02151, allocations: 0.8877 MB / 287.8 MB, free: 1.707 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.946e-05/0.02158, allocations: 113.7 kB / 288 MB, free: 1.578 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001461/0.02173, allocations: 55.25 kB / 288 MB, free: 1.527 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.343e-05/0.0218, allocations: 28.5 kB / 288 MB, free: 1.5 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.0218, allocations: 0 / 288 MB, free: 1.5 MB / 266.7 MB Notification: Performance of Templates: time 0.1002/0.122, allocations: 5.13 MB / 293.2 MB, free: 27.99 MB / 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: 3.1172183556482196]