Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002266/0.002266, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.017/2.017, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 86.75 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.8e-05/2.812e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0921/0.09215, allocations: 47.57 MB / 369.1 MB, free: 2.215 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4016/0.4938, allocations: 81.73 MB / 450.8 MB, free: 11.5 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.4941, allocations: 71.72 kB / 450.9 MB, free: 11.47 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03964/0.5337, allocations: 8.304 MB / 459.2 MB, free: 4.504 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.437e-06/0.5338, allocations: 4 kB / 459.2 MB, free: 4.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.137e-05/0.5339, allocations: 20.11 kB / 459.2 MB, free: 4.48 MB / 330.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.001941/0.5358, allocations: 0.6686 MB / 459.9 MB, free: 3.793 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.889e-05/0.5359, allocations: 12.03 kB / 459.9 MB, free: 3.781 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000187/0.5361, allocations: 47.44 kB / 459.9 MB, free: 3.734 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008047/0.5369, allocations: 368.5 kB / 460.3 MB, free: 3.375 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/0.537, allocations: 22.66 kB / 460.3 MB, free: 3.359 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.5371, allocations: 45.52 kB / 460.4 MB, free: 3.328 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009073/0.538, allocations: 383.7 kB / 460.7 MB, free: 3.039 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.5381, allocations: 0 / 460.7 MB, free: 3.039 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.459e-05/0.5381, allocations: 18.94 kB / 460.7 MB, free: 3.031 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.052e-05/0.5382, allocations: 11.98 kB / 460.8 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007603/0.5389, allocations: 272 kB / 461 MB, free: 2.836 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003336/0.5423, allocations: 1.592 MB / 462.6 MB, free: 1.422 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007897/0.5431, allocations: 253.6 kB / 462.9 MB, free: 1.211 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003061/0.5434, allocations: 116.8 kB / 463 MB, free: 1.094 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.44e-05/0.5435, allocations: 0 / 463 MB, free: 1.094 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.5436, allocations: 38.56 kB / 463 MB, free: 1.047 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 2.124e-06/0.5436, allocations: 0 / 463 MB, free: 1.047 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.002522/0.5461, allocations: 1.006 MB / 464 MB, free: 15.94 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.998e-05/0.5462, allocations: 81.11 kB / 464.1 MB, free: 15.84 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005853/0.5468, allocations: 327.5 kB / 464.4 MB, free: 15.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.805e-05/0.5469, allocations: 33.7 kB / 464.5 MB, free: 15.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.5471, allocations: 286.3 kB / 464.7 MB, free: 15.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.5472, allocations: 118.3 kB / 464.8 MB, free: 15.09 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.181e-05/0.5473, allocations: 11.94 kB / 464.9 MB, free: 15.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.5474, allocations: 322.8 kB / 465.2 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003338/0.5478, allocations: 112.9 kB / 465.3 MB, free: 14.64 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004169/0.5482, allocations: 200.9 kB / 465.5 MB, free: 14.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003758/0.5486, allocations: 124 kB / 465.6 MB, free: 14.29 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.5487, allocations: 0 / 465.6 MB, free: 14.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009497/0.5496, allocations: 365.6 kB / 466 MB, free: 13.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003703/0.55, allocations: 0.7863 MB / 466.7 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.55, allocations: 4 kB / 466.7 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.5501, allocations: 4 kB / 466.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001902/0.552, allocations: 263.7 kB / 467 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008794/0.5529, allocations: 0.6524 MB / 467.7 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007021/0.5536, allocations: 56.05 kB / 467.7 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.33e-05/0.5537, allocations: 12 kB / 467.7 MB, free: 12.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.5537, allocations: 7.938 kB / 467.7 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008554/0.5545, allocations: 315.6 kB / 468 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.5546, allocations: 7.984 kB / 468.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.5546, allocations: 4 kB / 468.1 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009821/0.5556, allocations: 128.1 kB / 468.2 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.5556, allocations: 4 kB / 468.2 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004874/0.5561, allocations: 51.89 kB / 468.2 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.43e-05/0.5562, allocations: 16 kB / 468.3 MB, free: 11.55 MB / 346.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.0001801/0.5564, allocations: 128.8 kB / 468.4 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.5565, allocations: 39.53 kB / 468.4 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001867/0.5567, allocations: 44.38 kB / 468.5 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.5567, allocations: 3.984 kB / 468.5 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/0.5567, allocations: 4 kB / 468.5 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.5568, allocations: 3.984 kB / 468.5 MB, free: 11.31 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/0.5586, allocations: 0.8262 MB / 469.3 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.5586, allocations: 0 / 469.3 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008894/0.5595, allocations: 100 kB / 469.4 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.217e-05/0.5596, allocations: 4 kB / 469.4 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.8e-05/0.5596, allocations: 8 kB / 469.4 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.096e-06/0.5596, allocations: 3.953 kB / 469.4 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.674e-06/0.5596, allocations: 4 kB / 469.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.5608, allocations: 0.5717 MB / 470 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002331/0.5611, allocations: 140.7 kB / 470.1 MB, free: 9.523 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.266e-05/0.5612, allocations: 8 kB / 470.1 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000576/0.5618, allocations: 43.97 kB / 470.2 MB, free: 9.473 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.5619, allocations: 35.83 kB / 470.2 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.15e-05/0.5619, allocations: 11.95 kB / 470.2 MB, free: 9.426 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004335/0.5624, allocations: 246.2 kB / 470.5 MB, free: 9.191 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5624, allocations: 4 kB / 470.5 MB, free: 9.188 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007912/0.5632, allocations: 144 kB / 470.6 MB, free: 9.047 MB / 346.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.0002003/0.5634, allocations: 111.1 kB / 470.7 MB, free: 8.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002115/0.5656, allocations: 0.5663 MB / 471.3 MB, free: 8.363 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.5656, allocations: 0 / 471.3 MB, free: 8.363 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003841/0.566, allocations: 131.9 kB / 471.4 MB, free: 8.234 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008643/0.5669, allocations: 97.95 kB / 471.5 MB, free: 8.145 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002572/0.5695, allocations: 0.8359 MB / 472.3 MB, free: 7.273 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005097/0.57, allocations: 0.8276 MB / 473.2 MB, free: 6.418 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002362/0.5703, allocations: 39.42 kB / 473.2 MB, free: 6.379 MB / 346.7 MB Notification: Performance of SimCode: time 1.573e-06/0.5703, allocations: 0 / 473.2 MB, free: 6.379 MB / 346.7 MB Notification: Performance of Templates: time 0.01387/0.5841, allocations: 5.769 MB / 479 MB, free: 0.6016 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches