Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001788/0.001787, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.856/1.856, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.001067/0.001067, allocations: 88.16 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002658/0.0002661, allocations: 8 kB / 328.2 MB, free: 15.56 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2836, allocations: 47.57 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1101/0.3938, allocations: 81.81 MB / 457.6 MB, free: 14.85 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.3941, allocations: 71.97 kB / 457.7 MB, free: 14.78 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0238/0.4179, allocations: 8.336 MB / 466 MB, free: 6.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.418, allocations: 3.938 kB / 466 MB, free: 6.426 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.112e-05/0.418, allocations: 8 kB / 466 MB, free: 6.418 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.001379/0.4194, allocations: 0.7325 MB / 466.8 MB, free: 5.633 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.4194, allocations: 12.03 kB / 466.8 MB, free: 5.621 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.4196, allocations: 47.44 kB / 466.8 MB, free: 5.574 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005729/0.4201, allocations: 364 kB / 467.2 MB, free: 5.184 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.405e-05/0.4202, allocations: 29 kB / 467.2 MB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.899e-05/0.4203, allocations: 39.91 kB / 467.2 MB, free: 5.117 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009623/0.4212, allocations: 470.3 kB / 467.7 MB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.4213, allocations: 0 / 467.7 MB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.935e-05/0.4213, allocations: 16 kB / 467.7 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.4213, allocations: 11.94 kB / 467.7 MB, free: 4.605 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009533/0.4223, allocations: 423.6 kB / 468.1 MB, free: 4.191 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002368/0.4247, allocations: 1.587 MB / 469.7 MB, free: 2.516 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009544/0.4257, allocations: 350.7 kB / 470.1 MB, free: 2.156 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.878e-05/0.4257, allocations: 7.953 kB / 470.1 MB, free: 2.148 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.416e-05/0.4258, allocations: 34.56 kB / 470.1 MB, free: 2.105 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 4.318e-06/0.4258, allocations: 4 kB / 470.1 MB, free: 2.102 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.003429/0.4292, allocations: 1.512 MB / 471.6 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.69e-05/0.4293, allocations: 81.11 kB / 471.7 MB, free: 408 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004208/0.4297, allocations: 328.7 kB / 472 MB, free: 68 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.916e-05/0.4298, allocations: 29.7 kB / 472.1 MB, free: 32 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002142/0.43, allocations: 239.9 kB / 472.3 MB, free: 15.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.4301, allocations: 122.5 kB / 472.4 MB, free: 15.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.862e-05/0.4301, allocations: 8 kB / 472.4 MB, free: 15.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.4303, allocations: 350.8 kB / 472.8 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004608/0.4308, allocations: 184.8 kB / 472.9 MB, free: 15.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005043/0.4313, allocations: 272.8 kB / 473.2 MB, free: 14.83 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004692/0.4318, allocations: 198.6 kB / 473.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4318, allocations: 0 / 473.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001129/0.433, allocations: 0.5325 MB / 473.9 MB, free: 14.1 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000379/0.4333, allocations: 0.7822 MB / 474.7 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.4334, allocations: 8 kB / 474.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.4334, allocations: 4 kB / 474.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000918/0.4343, allocations: 259.7 kB / 475 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007316/0.4351, allocations: 0.6952 MB / 475.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003796/0.4355, allocations: 52.08 kB / 475.7 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.324e-05/0.4355, allocations: 19.98 kB / 475.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.4355, allocations: 4 kB / 475.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009264/0.4364, allocations: 443.6 kB / 476.2 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.4365, allocations: 4 kB / 476.2 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.163e-06/0.4365, allocations: 4 kB / 476.2 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004867/0.437, allocations: 120 kB / 476.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.437, allocations: 15.92 kB / 476.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000283/0.4373, allocations: 43.97 kB / 476.4 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.533e-05/0.4373, allocations: 16 kB / 476.4 MB, free: 11.57 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 () * 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 (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.0002976/0.4376, allocations: 248.9 kB / 476.6 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.339e-05/0.4377, allocations: 43.44 kB / 476.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.4378, allocations: 48.19 kB / 476.7 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.4378, allocations: 4 kB / 476.7 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.4378, allocations: 0 / 476.7 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.4378, allocations: 0 / 476.7 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00168/0.4395, allocations: 0.9697 MB / 477.7 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.4395, allocations: 0 / 477.7 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004049/0.44, allocations: 99.86 kB / 477.8 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.44, allocations: 4 kB / 477.8 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.699e-05/0.44, allocations: 8 kB / 477.8 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.44, allocations: 12.02 kB / 477.8 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.44, allocations: 0 / 477.8 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001388/0.4414, allocations: 0.7785 MB / 478.6 MB, free: 9.227 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.4416, allocations: 140.7 kB / 478.7 MB, free: 9.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.901e-05/0.4416, allocations: 4 kB / 478.7 MB, free: 9.066 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003021/0.4419, allocations: 51.95 kB / 478.8 MB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.839e-05/0.442, allocations: 23.91 kB / 478.8 MB, free: 8.992 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.379e-05/0.4421, allocations: 15.95 kB / 478.8 MB, free: 8.977 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002597/0.4423, allocations: 255.2 kB / 479.1 MB, free: 8.734 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4423, allocations: 0 / 479.1 MB, free: 8.734 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005407/0.4429, allocations: 140 kB / 479.2 MB, free: 8.598 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 () * 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 (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.0001619/0.443, allocations: 111.1 kB / 479.3 MB, free: 8.477 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001861/0.4449, allocations: 0.7772 MB / 480.1 MB, free: 7.699 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.4449, allocations: 4.375 kB / 480.1 MB, free: 7.695 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004441/0.4454, allocations: 208 kB / 480.3 MB, free: 7.492 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005135/0.4459, allocations: 81.12 kB / 480.4 MB, free: 7.414 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001841/0.4478, allocations: 1.224 MB / 481.6 MB, free: 6.152 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.4482, allocations: 0.8237 MB / 482.4 MB, free: 5.301 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002642/0.4484, allocations: 63.22 kB / 482.5 MB, free: 5.238 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.393e-05/0.4485, allocations: 31.38 kB / 482.5 MB, free: 5.207 MB / 362.7 MB Notification: Performance of SimCode: time 6.82e-07/0.4485, allocations: 8 kB / 482.5 MB, free: 5.199 MB / 362.7 MB Notification: Performance of Templates: time 0.008235/0.4568, allocations: 4.185 MB / 486.7 MB, free: 1.039 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/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_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches