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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00109/0.00109, allocations: 203.4 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.28/1.28, allocations: 225.5 MB / 234.4 MB, free: 14.96 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001011/0.001011, allocations: 100.5 kB / 286.4 MB, free: 12.65 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.125e-06/8.276e-06, allocations: 4 kB / 343.1 MB, free: 3.836 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2351, allocations: 51.46 MB / 394.6 MB, free: 33.14 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09803/0.3332, allocations: 82.55 MB / 477.1 MB, free: 14.47 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001674/0.3334, allocations: 72.59 kB / 477.2 MB, free: 14.4 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.02265/0.3561, allocations: 7.981 MB / 485.2 MB, free: 6.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.057e-05/0.3562, allocations: 8 kB / 485.2 MB, free: 6.402 MB / 362.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.001443/0.3576, allocations: 0.6971 MB / 485.9 MB, free: 5.656 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.3577, allocations: 15.97 kB / 485.9 MB, free: 5.641 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.3579, allocations: 47.44 kB / 486 MB, free: 5.594 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005938/0.3585, allocations: 347.5 kB / 486.3 MB, free: 5.215 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.951e-05/0.3585, allocations: 15.91 kB / 486.3 MB, free: 5.199 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.725e-05/0.3586, allocations: 28 kB / 486.3 MB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004782/0.3591, allocations: 249.4 kB / 486.6 MB, free: 4.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005292/0.3596, allocations: 329.7 kB / 486.9 MB, free: 4.578 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.763e-05/0.3596, allocations: 7.938 kB / 486.9 MB, free: 4.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.497e-05/0.3597, allocations: 7.891 kB / 486.9 MB, free: 4.562 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.3597, allocations: 12 kB / 486.9 MB, free: 4.551 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002159/0.3619, allocations: 1.586 MB / 488.5 MB, free: 2.867 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003803/0.3623, allocations: 166.7 kB / 488.7 MB, free: 2.695 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002025/0.3625, allocations: 101.4 kB / 488.8 MB, free: 2.594 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.641e-05/0.3625, allocations: 8 kB / 488.8 MB, free: 2.586 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.3626, allocations: 38.47 kB / 488.8 MB, free: 2.539 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 2.374e-06/0.3626, allocations: 0.75 kB / 488.8 MB, free: 2.539 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001514/0.3641, allocations: 0.9394 MB / 489.8 MB, free: 1.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/0.3642, allocations: 81.11 kB / 489.8 MB, free: 1.402 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003026/0.3645, allocations: 285.9 kB / 490.1 MB, free: 1.121 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.3645, allocations: 29.7 kB / 490.2 MB, free: 1.086 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.3646, allocations: 208 kB / 490.4 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.372e-05/0.3647, allocations: 98.47 kB / 490.5 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.563e-05/0.3647, allocations: 0 / 490.5 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3649, allocations: 355.9 kB / 490.8 MB, free: 436 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/0.3651, allocations: 104.9 kB / 490.9 MB, free: 332 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002193/0.3653, allocations: 188 kB / 491.1 MB, free: 112 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002088/0.3655, allocations: 120 kB / 491.2 MB, free: 15.99 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3655, allocations: 0 / 491.2 MB, free: 15.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000591/0.3661, allocations: 356.2 kB / 491.6 MB, free: 15.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003754/0.3665, allocations: 0.7857 MB / 492.3 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.3665, allocations: 0.9375 kB / 492.3 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.783e-05/0.3666, allocations: 7.906 kB / 492.3 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.3676, allocations: 291.7 kB / 492.6 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006399/0.3683, allocations: 0.6797 MB / 493.3 MB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003755/0.3687, allocations: 48.06 kB / 493.4 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.023e-05/0.3687, allocations: 21.02 kB / 493.4 MB, free: 13.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.3687, allocations: 4 kB / 493.4 MB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004498/0.3692, allocations: 275.5 kB / 493.7 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.3692, allocations: 4 kB / 493.7 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.362e-06/0.3692, allocations: 4 kB / 493.7 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005298/0.3698, allocations: 136.1 kB / 493.8 MB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.3698, allocations: 11.94 kB / 493.8 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.3701, allocations: 43.95 kB / 493.8 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.3701, allocations: 12 kB / 493.9 MB, free: 13.25 MB / 378.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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001178/0.3703, allocations: 119.6 kB / 494 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.898e-05/0.3703, allocations: 35.53 kB / 494 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.3704, allocations: 40.09 kB / 494.1 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.148e-06/0.3705, allocations: 4 kB / 494.1 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3705, allocations: 0 / 494.1 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3705, allocations: 7.984 kB / 494.1 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001123/0.3716, allocations: 0.7369 MB / 494.8 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3716, allocations: 4 kB / 494.8 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004653/0.3721, allocations: 104 kB / 494.9 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.3721, allocations: 8.844 kB / 494.9 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.576e-05/0.3722, allocations: 4 kB / 494.9 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.3722, allocations: 0 / 494.9 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.764e-06/0.3722, allocations: 11.94 kB / 494.9 MB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006676/0.3728, allocations: 0.5503 MB / 495.5 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001469/0.373, allocations: 132.6 kB / 495.6 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.875e-05/0.3731, allocations: 0 / 495.6 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003356/0.3734, allocations: 51.95 kB / 495.7 MB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.071e-05/0.3735, allocations: 19.97 kB / 495.7 MB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.033e-05/0.3735, allocations: 12.66 kB / 495.7 MB, free: 11.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002277/0.3738, allocations: 216.6 kB / 495.9 MB, free: 11.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005383/0.3743, allocations: 120 kB / 496 MB, free: 10.96 MB / 378.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001603/0.3745, allocations: 103.7 kB / 496.1 MB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.3759, allocations: 0.6396 MB / 496.8 MB, free: 10.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3759, allocations: 0 / 496.8 MB, free: 10.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001837/0.3761, allocations: 119.9 kB / 496.9 MB, free: 10.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005256/0.3766, allocations: 91.27 kB / 497 MB, free: 10.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/0.3782, allocations: 0.7877 MB / 497.8 MB, free: 9.184 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004932/0.3787, allocations: 0.8576 MB / 498.6 MB, free: 8.301 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.3787, allocations: 0 / 498.6 MB, free: 8.301 MB / 378.7 MB Notification: Performance of Templates: time 0.01118/0.3899, allocations: 5.814 MB / 0.4926 GB, free: 2.551 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches