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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001041, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 221.5 MB / 230.3 MB, free: 7.535 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000851/0.000851, allocations: 89.97 kB / 281.2 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.416e-05/1.417e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1013, allocations: 50.42 MB / 387.4 MB, free: 7.59 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3326/0.434, allocations: 81.82 MB / 469.3 MB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.4342, allocations: 67.97 kB / 469.3 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02218/0.4564, allocations: 8.244 MB / 477.6 MB, free: 4.719 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4565, allocations: 0 / 477.6 MB, free: 4.719 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.24e-05/0.4565, allocations: 8 kB / 477.6 MB, free: 4.711 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.001072/0.4576, allocations: 0.6743 MB / 478.3 MB, free: 3.988 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.4576, allocations: 8.031 kB / 478.3 MB, free: 3.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.894e-05/0.4577, allocations: 51.34 kB / 478.3 MB, free: 3.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004775/0.4582, allocations: 356.3 kB / 478.7 MB, free: 3.543 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.4583, allocations: 12.34 kB / 478.7 MB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.07e-05/0.4583, allocations: 31.89 kB / 478.7 MB, free: 3.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004264/0.4587, allocations: 241.5 kB / 478.9 MB, free: 3.262 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005115/0.4593, allocations: 333.6 kB / 479.3 MB, free: 2.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.4593, allocations: 4 kB / 479.3 MB, free: 2.906 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.4593, allocations: 0 / 479.3 MB, free: 2.906 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.948e-06/0.4594, allocations: 8 kB / 479.3 MB, free: 2.898 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.4613, allocations: 1.514 MB / 480.8 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004519/0.4618, allocations: 236.2 kB / 481 MB, free: 1.059 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.4619, allocations: 108.8 kB / 481.1 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.916e-05/0.462, allocations: 0.5 kB / 481.1 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.035e-05/0.462, allocations: 38.56 kB / 481.2 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 1.473e-06/0.462, allocations: 0 / 481.2 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001345/0.4634, allocations: 0.9434 MB / 482.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.4634, allocations: 85.05 kB / 482.2 MB, free: 15.76 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002915/0.4637, allocations: 282.3 kB / 482.5 MB, free: 15.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.4638, allocations: 29.7 kB / 482.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/0.4639, allocations: 240.1 kB / 482.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.653e-05/0.464, allocations: 114.3 kB / 482.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.579e-05/0.464, allocations: 0 / 482.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.4641, allocations: 347.6 kB / 483.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.4643, allocations: 100.9 kB / 483.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002033/0.4645, allocations: 184.1 kB / 483.5 MB, free: 14.44 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.4647, allocations: 116.4 kB / 483.6 MB, free: 14.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.4647, allocations: 4 kB / 483.6 MB, free: 14.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000482/0.4652, allocations: 353 kB / 483.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002469/0.4655, allocations: 0.79 MB / 484.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.4655, allocations: 4 kB / 484.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.4655, allocations: 7.938 kB / 484.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009394/0.4665, allocations: 259.7 kB / 485 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005116/0.467, allocations: 0.6562 MB / 485.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003345/0.4673, allocations: 44.08 kB / 485.7 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.855e-05/0.4674, allocations: 16 kB / 485.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.166e-06/0.4674, allocations: 4 kB / 485.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004304/0.4678, allocations: 277.4 kB / 486 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.4678, allocations: 4 kB / 486 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.452e-06/0.4678, allocations: 4 kB / 486 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004991/0.4683, allocations: 127.8 kB / 486.1 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.4684, allocations: 12.22 kB / 486.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002682/0.4686, allocations: 31.97 kB / 486.1 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.346e-05/0.4687, allocations: 15.98 kB / 486.2 MB, free: 11.66 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.0001151/0.4688, allocations: 108.9 kB / 486.3 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.192e-05/0.4689, allocations: 47.48 kB / 486.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.469, allocations: 40.53 kB / 486.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.469, allocations: 4 kB / 486.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.469, allocations: 0 / 486.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.469, allocations: 4 kB / 486.4 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00099/0.47, allocations: 0.744 MB / 487.1 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.47, allocations: 4 kB / 487.1 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004267/0.4705, allocations: 95.88 kB / 487.2 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.4705, allocations: 0 / 487.2 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/0.4705, allocations: 4 kB / 487.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.4705, allocations: 12.08 kB / 487.2 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.4705, allocations: 0 / 487.2 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006136/0.4711, allocations: 0.5336 MB / 487.8 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.4713, allocations: 144.6 kB / 487.9 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.757e-05/0.4713, allocations: 3.938 kB / 487.9 MB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002947/0.4716, allocations: 43.95 kB / 487.9 MB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.433e-05/0.4717, allocations: 23.97 kB / 488 MB, free: 9.715 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.4717, allocations: 8 kB / 488 MB, free: 9.707 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002473/0.472, allocations: 216.6 kB / 488.2 MB, free: 9.496 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.472, allocations: 0 / 488.2 MB, free: 9.496 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005048/0.4725, allocations: 119.9 kB / 488.3 MB, free: 9.379 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.0001529/0.4727, allocations: 103.2 kB / 488.4 MB, free: 9.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.4738, allocations: 0.5569 MB / 489 MB, free: 8.711 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4738, allocations: 4.062 kB / 489 MB, free: 8.707 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000191/0.474, allocations: 115.9 kB / 489.1 MB, free: 8.594 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005483/0.4745, allocations: 89.05 kB / 489.2 MB, free: 8.512 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/0.4761, allocations: 0.7946 MB / 490 MB, free: 7.684 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003877/0.4765, allocations: 0.8315 MB / 490.8 MB, free: 6.824 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003318/0.4768, allocations: 77.22 kB / 490.9 MB, free: 6.746 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.355e-05/0.4769, allocations: 27.44 kB / 490.9 MB, free: 6.719 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4769, allocations: 0 / 490.9 MB, free: 6.719 MB / 362.7 MB Notification: Performance of Templates: time 0.008447/0.4854, allocations: 4.379 MB / 495.3 MB, free: 2.371 MB / 362.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches