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.001921/0.001921, allocations: 180.5 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.321/3.321, allocations: 205.4 MB / 223.6 MB, free: 8.941 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.005278/0.005278, allocations: 87.39 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006047/0.0006049, allocations: 8 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5576/0.5582, allocations: 47.57 MB / 375.7 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2242/0.7825, allocations: 81.88 MB / 457.6 MB, free: 14.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003763/0.783, allocations: 71.97 kB / 457.7 MB, free: 14.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05112/0.8341, allocations: 8.339 MB / 466 MB, free: 6.316 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.085e-06/0.8342, allocations: 3.938 kB / 466 MB, free: 6.312 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.768e-05/0.8342, allocations: 8 kB / 466 MB, free: 6.305 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.002132/0.8364, allocations: 0.729 MB / 466.7 MB, free: 5.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.8365, allocations: 8.031 kB / 466.8 MB, free: 5.512 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.8366, allocations: 52.38 kB / 466.8 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00525/0.8419, allocations: 376.6 kB / 467.2 MB, free: 5.055 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.078e-05/0.842, allocations: 29.38 kB / 467.2 MB, free: 5.027 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.8422, allocations: 40.28 kB / 467.2 MB, free: 4.988 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.8439, allocations: 466.9 kB / 467.7 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.262e-05/0.844, allocations: 192 / 467.7 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-05/0.8441, allocations: 23.94 kB / 467.7 MB, free: 4.484 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.856e-05/0.8441, allocations: 8 kB / 467.7 MB, free: 4.477 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001749/0.8458, allocations: 419.6 kB / 468.1 MB, free: 4.066 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003064/0.8489, allocations: 1.599 MB / 469.7 MB, free: 2.379 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/0.8502, allocations: 350.5 kB / 470.1 MB, free: 2.023 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007111/0.851, allocations: 184.8 kB / 470.3 MB, free: 1.84 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.378e-05/0.851, allocations: 4 kB / 470.3 MB, free: 1.836 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.001e-05/0.8511, allocations: 42.5 kB / 470.3 MB, free: 1.785 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 3.958e-06/0.8511, allocations: 0 / 470.3 MB, free: 1.785 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.009845/0.861, allocations: 1.512 MB / 471.8 MB, free: 184 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.509e-05/0.8611, allocations: 81.11 kB / 471.9 MB, free: 84 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008041/0.8619, allocations: 373.8 kB / 472.3 MB, free: 15.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.196e-05/0.862, allocations: 29.7 kB / 472.3 MB, free: 15.67 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002704/0.8623, allocations: 239.9 kB / 472.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.8624, allocations: 118.3 kB / 472.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.388e-05/0.8625, allocations: 8 kB / 472.6 MB, free: 15.31 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.8627, allocations: 350.7 kB / 473 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007557/0.8635, allocations: 184.8 kB / 473.2 MB, free: 14.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008527/0.8643, allocations: 272.8 kB / 473.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001679/0.866, allocations: 427.5 kB / 473.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.8661, allocations: 4 kB / 473.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.002232/0.8683, allocations: 0.5246 MB / 474.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001763/0.8685, allocations: 148 kB / 474.5 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.788e-05/0.8686, allocations: 8 kB / 474.5 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.772e-05/0.8686, allocations: 4 kB / 474.5 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001786/0.8704, allocations: 259.7 kB / 474.8 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002689/0.8731, allocations: 1.532 MB / 476.3 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004742/0.8779, allocations: 52.05 kB / 476.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.02e-05/0.878, allocations: 16 kB / 476.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.878, allocations: 4 kB / 476.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001407/0.8794, allocations: 449 kB / 476.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.8795, allocations: 8 kB / 476.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.8795, allocations: 7.938 kB / 476.8 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006876/0.8802, allocations: 128 kB / 477 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.8802, allocations: 4 kB / 477 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004511/0.8807, allocations: 43.95 kB / 477 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.768e-05/0.8807, allocations: 19.98 kB / 477 MB, free: 10.68 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.0003758/0.8811, allocations: 244.9 kB / 477.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.8812, allocations: 43.52 kB / 477.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001435/0.8814, allocations: 48.23 kB / 477.4 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.8814, allocations: 4 kB / 477.4 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.8814, allocations: 0 / 477.4 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.8814, allocations: 4 kB / 477.4 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002918/0.8844, allocations: 0.9696 MB / 478.3 MB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.8844, allocations: 0 / 478.3 MB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008283/0.8852, allocations: 100 kB / 478.4 MB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.806e-05/0.8853, allocations: 4 kB / 478.4 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.845e-05/0.8853, allocations: 11.98 kB / 478.5 MB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.265e-06/0.8854, allocations: 3.938 kB / 478.5 MB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.8854, allocations: 4 kB / 478.5 MB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002334/0.8877, allocations: 0.7411 MB / 479.2 MB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002618/0.888, allocations: 136.7 kB / 479.3 MB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.602e-05/0.8881, allocations: 7.984 kB / 479.3 MB, free: 8.242 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005004/0.8886, allocations: 47.91 kB / 479.4 MB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.8888, allocations: 27.95 kB / 479.4 MB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.073e-05/0.8888, allocations: 11.94 kB / 479.4 MB, free: 8.156 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005504/0.8894, allocations: 259.2 kB / 479.7 MB, free: 7.906 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.8894, allocations: 0 / 479.7 MB, free: 7.906 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00111/0.8905, allocations: 140 kB / 479.8 MB, free: 7.77 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.0002197/0.8907, allocations: 111.1 kB / 479.9 MB, free: 7.652 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003527/0.8943, allocations: 0.7967 MB / 480.7 MB, free: 6.855 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/0.8943, allocations: 0 / 480.7 MB, free: 6.855 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009393/0.8953, allocations: 208.1 kB / 480.9 MB, free: 6.652 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.8967, allocations: 87.66 kB / 481 MB, free: 6.566 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005379/0.9021, allocations: 1.263 MB / 482.3 MB, free: 5.254 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006338/0.9028, allocations: 0.8159 MB / 483.1 MB, free: 4.414 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002258/0.903, allocations: 31.44 kB / 483.1 MB, free: 4.383 MB / 362.7 MB Notification: Performance of SimCode: time 1.322e-06/0.9031, allocations: 0 / 483.1 MB, free: 4.383 MB / 362.7 MB Notification: Performance of Templates: time 0.02105/0.9241, allocations: 5.946 MB / 489.1 MB, free: 14.46 MB / 378.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