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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009916/0.0009916, allocations: 197.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000829/0.0008292, allocations: 99.84 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.525e-05/1.528e-05, allocations: 4 kB / 343.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1003, allocations: 51.47 MB / 395.1 MB, free: 4.777 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3165/0.4168, allocations: 82.62 MB / 477.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001544/0.417, allocations: 74.83 kB / 477.8 MB, free: 10.22 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01922/0.4362, allocations: 8.275 MB / 486.1 MB, free: 3.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4363, allocations: 0 / 486.1 MB, free: 3.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.833e-05/0.4363, allocations: 12 kB / 486.1 MB, free: 3.758 MB / 346.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.000895/0.4372, allocations: 0.6746 MB / 486.8 MB, free: 3.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.4372, allocations: 12.03 kB / 486.8 MB, free: 3.059 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.889e-05/0.4373, allocations: 56.2 kB / 486.9 MB, free: 3.004 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000392/0.4377, allocations: 358.4 kB / 487.2 MB, free: 2.652 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.4377, allocations: 8 kB / 487.2 MB, free: 2.645 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.971e-05/0.4378, allocations: 31.36 kB / 487.3 MB, free: 2.617 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003653/0.4382, allocations: 239.6 kB / 487.5 MB, free: 2.465 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004234/0.4386, allocations: 335 kB / 487.8 MB, free: 2.191 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.4386, allocations: 7.891 kB / 487.8 MB, free: 2.184 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.891e-05/0.4387, allocations: 0 / 487.8 MB, free: 2.184 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.4387, allocations: 14.25 kB / 487.8 MB, free: 2.172 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.4402, allocations: 1.501 MB / 489.3 MB, free: 0.832 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003953/0.4407, allocations: 228.7 kB / 489.6 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001308/0.4408, allocations: 113.9 kB / 489.7 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.4408, allocations: 4 kB / 489.7 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.4409, allocations: 38.25 kB / 489.7 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 1.482e-06/0.4409, allocations: 0 / 489.7 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001217/0.4421, allocations: 0.9418 MB / 490.7 MB, free: 15.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.4421, allocations: 85.11 kB / 490.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.4424, allocations: 277.4 kB / 491 MB, free: 15.35 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.4424, allocations: 25.7 kB / 491 MB, free: 15.32 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.4426, allocations: 243.5 kB / 491.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.83e-05/0.4427, allocations: 107.7 kB / 491.4 MB, free: 15.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.526e-05/0.4427, allocations: 0 / 491.4 MB, free: 15.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.4429, allocations: 352.6 kB / 491.7 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.443, allocations: 99.12 kB / 491.8 MB, free: 14.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000211/0.4432, allocations: 190 kB / 492 MB, free: 14.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001883/0.4434, allocations: 121.6 kB / 492.1 MB, free: 14.4 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.4435, allocations: 2.812 kB / 492.1 MB, free: 14.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004812/0.4439, allocations: 350.4 kB / 492.5 MB, free: 14.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002884/0.4442, allocations: 0.7843 MB / 493.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.4442, allocations: 4 kB / 493.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.4443, allocations: 4 kB / 493.3 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009098/0.4452, allocations: 267.1 kB / 493.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005345/0.4457, allocations: 0.6628 MB / 494.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003141/0.4461, allocations: 40.06 kB / 494.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.664e-05/0.4461, allocations: 19.86 kB / 494.3 MB, free: 12.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.147e-06/0.4461, allocations: 4 kB / 494.3 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000395/0.4465, allocations: 266.3 kB / 494.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.4465, allocations: 4 kB / 494.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.561e-06/0.4465, allocations: 4 kB / 494.5 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004741/0.447, allocations: 135.1 kB / 494.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.447, allocations: 4 kB / 494.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000265/0.4473, allocations: 35.97 kB / 494.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.36e-05/0.4473, allocations: 15.75 kB / 494.7 MB, free: 11.93 MB / 362.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.0001125/0.4475, allocations: 120.7 kB / 494.8 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.733e-05/0.4475, allocations: 39.53 kB / 494.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.124e-05/0.4476, allocations: 41.47 kB / 494.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.4476, allocations: 4 kB / 494.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.4476, allocations: 0 / 494.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.4476, allocations: 0 / 494.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009367/0.4486, allocations: 0.7446 MB / 495.7 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.4486, allocations: 3.938 kB / 495.7 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004198/0.449, allocations: 95.38 kB / 495.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.042e-06/0.449, allocations: 4 kB / 495.8 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.4491, allocations: 0 / 495.8 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.965e-06/0.4491, allocations: 10 kB / 495.8 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.4491, allocations: 10.31 kB / 495.8 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006009/0.4497, allocations: 0.5396 MB / 496.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001313/0.4498, allocations: 133.7 kB / 496.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.911e-05/0.4499, allocations: 7.25 kB / 496.5 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002939/0.4502, allocations: 43.95 kB / 496.5 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.043e-05/0.4503, allocations: 25.97 kB / 496.5 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.4503, allocations: 11.38 kB / 496.5 MB, free: 10.31 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002174/0.4505, allocations: 217.4 kB / 496.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4505, allocations: 0 / 496.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005166/0.4511, allocations: 120 kB / 496.9 MB, free: 10.02 MB / 362.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.0001488/0.4512, allocations: 106.8 kB / 497 MB, free: 9.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.4523, allocations: 0.5469 MB / 497.5 MB, free: 9.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4523, allocations: 0 / 497.5 MB, free: 9.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001689/0.4525, allocations: 123.8 kB / 497.6 MB, free: 9.414 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005075/0.453, allocations: 88.52 kB / 497.7 MB, free: 9.352 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.4544, allocations: 0.7919 MB / 498.5 MB, free: 8.598 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003464/0.4547, allocations: 0.8275 MB / 499.3 MB, free: 7.742 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003253/0.4551, allocations: 81.34 kB / 499.4 MB, free: 7.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.127e-05/0.4552, allocations: 27.44 kB / 499.4 MB, free: 7.633 MB / 362.7 MB Notification: Performance of SimCode: time 2.845e-06/0.4552, allocations: 0 / 499.4 MB, free: 7.633 MB / 362.7 MB Notification: Performance of Templates: time 0.008093/0.4633, allocations: 4.369 MB / 0.492 GB, free: 3.348 MB / 362.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