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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 109.7 kB / 17.16 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002346/0.002345, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.843/1.843, allocations: 222.9 MB / 241.8 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001297, allocations: 47.19 kB / 300.6 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1307, allocations: 49.46 MB / 350 MB, free: 4.867 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005724/0.1365, allocations: 3.136 MB / 353.2 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002395/0.139, allocations: 0.9505 MB / 354.1 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006673/0.1397, allocations: 15.94 kB / 354.2 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005664/0.1402, allocations: 67.48 kB / 354.2 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005646/0.1409, allocations: 91.27 kB / 354.3 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008441/0.1418, allocations: 210.6 kB / 354.5 MB, free: 384 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009335/0.1427, allocations: 491 kB / 355 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004924/0.1432, allocations: 157.1 kB / 355.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004349/0.1437, allocations: 175.1 kB / 355.3 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004565/0.1441, allocations: 195 kB / 355.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.314e-05/0.1442, allocations: 28 kB / 355.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.794e-05/0.1443, allocations: 20 kB / 355.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.1445, allocations: 91.59 kB / 355.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002384/0.1447, allocations: 198.8 kB / 355.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004581/0.1452, allocations: 351.5 kB / 356.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1452, allocations: 0 / 356.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1452, allocations: 0 / 356.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.516e-05/0.1453, allocations: 0 / 356.2 MB, free: 14.69 MB / 302.1 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.001961/0.1472, allocations: 0.7716 MB / 357 MB, free: 13.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.143e-05/0.1473, allocations: 8.031 kB / 357 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.1475, allocations: 52.38 kB / 357 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005505/0.148, allocations: 355.7 kB / 357.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.425e-05/0.1481, allocations: 29.38 kB / 357.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.223e-05/0.1482, allocations: 48.06 kB / 357.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.1492, allocations: 450.3 kB / 357.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/0.1492, allocations: 3.906 kB / 357.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.106e-05/0.1493, allocations: 19.98 kB / 357.9 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.1493, allocations: 8 kB / 357.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.1503, allocations: 383.6 kB / 358.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002334/0.1527, allocations: 1.563 MB / 359.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008654/0.1536, allocations: 322.6 kB / 360.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004696/0.1541, allocations: 160.8 kB / 360.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.1541, allocations: 4 kB / 360.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/0.1541, allocations: 42.5 kB / 360.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.515e-06/0.1542, allocations: 0 / 360.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003558/0.1577, allocations: 1.377 MB / 361.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/0.1578, allocations: 77.11 kB / 361.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004664/0.1583, allocations: 357.6 kB / 362.2 MB, free: 8.363 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.1583, allocations: 33.7 kB / 362.2 MB, free: 8.324 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.1585, allocations: 239.9 kB / 362.4 MB, free: 8.086 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.1587, allocations: 114.5 kB / 362.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.1588, allocations: 82.03 kB / 362.6 MB, free: 7.887 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.159, allocations: 358.7 kB / 363 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005033/0.1595, allocations: 178.4 kB / 363.1 MB, free: 7.348 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005555/0.1601, allocations: 244.8 kB / 363.4 MB, free: 7.082 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009626/0.1611, allocations: 391.4 kB / 363.8 MB, free: 6.672 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.1611, allocations: 4 kB / 363.8 MB, free: 6.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001251/0.1623, allocations: 493.1 kB / 364.3 MB, free: 6.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.1624, allocations: 4 kB / 364.3 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.1624, allocations: 7.984 kB / 364.3 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.529e-05/0.1624, allocations: 4 kB / 364.3 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009233/0.1634, allocations: 207.9 kB / 364.5 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002193/0.1656, allocations: 1.47 MB / 365.9 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004147/0.166, allocations: 35.97 kB / 366 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.62e-05/0.166, allocations: 16 kB / 366 MB, free: 4.309 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005973/0.1666, allocations: 276.9 kB / 366.3 MB, free: 4.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004837/0.1671, allocations: 236.8 kB / 366.5 MB, free: 3.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009417/0.1681, allocations: 371.5 kB / 366.9 MB, free: 3.379 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.261e-06/0.1681, allocations: 7.938 kB / 366.9 MB, free: 3.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001133/0.1693, allocations: 469 kB / 367.3 MB, free: 2.906 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.1693, allocations: 8 kB / 367.3 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.1693, allocations: 0 / 367.3 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.738e-06/0.1693, allocations: 4 kB / 367.3 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005056/0.1698, allocations: 124.1 kB / 367.5 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.1698, allocations: 7.938 kB / 367.5 MB, free: 2.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004487/0.1703, allocations: 39.91 kB / 367.5 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.747e-05/0.1703, allocations: 8 kB / 367.5 MB, free: 2.719 MB / 302.1 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.0001893/0.1705, allocations: 200.2 kB / 367.7 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.376e-05/0.1706, allocations: 39.53 kB / 367.7 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.1707, allocations: 52.23 kB / 367.8 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1707, allocations: 7.938 kB / 367.8 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.1708, allocations: 3.938 kB / 367.8 MB, free: 2.414 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.1708, allocations: 0 / 367.8 MB, free: 2.414 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001916/0.1727, allocations: 0.9188 MB / 368.7 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.1727, allocations: 0 / 368.7 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004678/0.1732, allocations: 88 kB / 368.8 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.126e-05/0.1732, allocations: 8 kB / 368.8 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.868e-05/0.1732, allocations: 4 kB / 368.8 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.131e-06/0.1732, allocations: 7.938 kB / 368.8 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1733, allocations: 0 / 368.8 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001519/0.1748, allocations: 0.6817 MB / 369.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001657/0.175, allocations: 132.7 kB / 369.6 MB, free: 476 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.971e-05/0.175, allocations: 8 kB / 369.6 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003213/0.1754, allocations: 35.95 kB / 369.7 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.459e-05/0.1755, allocations: 23.91 kB / 369.7 MB, free: 408 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/0.1755, allocations: 12 kB / 369.7 MB, free: 396 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003015/0.1758, allocations: 251.2 kB / 370 MB, free: 148 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1758, allocations: 0 / 370 MB, free: 148 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005995/0.1764, allocations: 140 kB / 370.1 MB, free: 8 kB / 302.1 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.2823/0.4587, allocations: 97.47 kB / 370.2 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003129/0.4618, allocations: 0.686 MB / 370.9 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/0.4619, allocations: 0 / 370.9 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006442/0.4626, allocations: 184.5 kB / 371.1 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.4637, allocations: 96.61 kB / 371.2 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003341/0.467, allocations: 1.194 MB / 372.4 MB, free: 24.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000534/0.4676, allocations: 0.8273 MB / 373.2 MB, free: 24.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002244/0.4678, allocations: 30.94 kB / 373.2 MB, free: 24.16 MB / 302.1 MB Notification: Performance of SimCode: time 1.804e-06/0.4678, allocations: 0 / 373.2 MB, free: 24.16 MB / 302.1 MB Notification: Performance of Templates: time 0.02009/0.4879, allocations: 5.948 MB / 379.2 MB, free: 23.28 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches