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.001574/0.001574, allocations: 180.2 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009232/0.0009232, allocations: 93.67 kB / 291.5 MB, free: 10.72 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002778/0.000278, allocations: 4 kB / 351.1 MB, free: 15.15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2665, allocations: 50.41 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1142/0.3807, allocations: 82.56 MB / 484 MB, free: 13.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/0.381, allocations: 75.97 kB / 484.1 MB, free: 13.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02436/0.4054, allocations: 8.312 MB / 492.4 MB, free: 5.527 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4054, allocations: 0 / 492.4 MB, free: 5.527 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.977e-05/0.4055, allocations: 12 kB / 492.4 MB, free: 5.516 MB / 362.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.0016/0.4071, allocations: 0.725 MB / 493.2 MB, free: 4.738 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.4072, allocations: 8.031 kB / 493.2 MB, free: 4.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001878/0.4074, allocations: 51.34 kB / 493.2 MB, free: 4.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006781/0.4081, allocations: 355.6 kB / 493.6 MB, free: 4.297 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.4081, allocations: 29.34 kB / 493.6 MB, free: 4.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.415e-05/0.4082, allocations: 43.95 kB / 493.6 MB, free: 4.227 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000984/0.4092, allocations: 470.3 kB / 494.1 MB, free: 3.742 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.994e-05/0.4092, allocations: 11.91 kB / 494.1 MB, free: 3.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.518e-05/0.4093, allocations: 16 kB / 494.1 MB, free: 3.715 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/0.4093, allocations: 8 kB / 494.1 MB, free: 3.707 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.4104, allocations: 423.6 kB / 494.6 MB, free: 3.289 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002451/0.4128, allocations: 1.579 MB / 496.1 MB, free: 1.621 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000826/0.4137, allocations: 336.5 kB / 496.5 MB, free: 1.277 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.4137, allocations: 4 kB / 496.5 MB, free: 1.273 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.53e-05/0.4138, allocations: 43.06 kB / 496.5 MB, free: 1.223 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 1.894e-06/0.4138, allocations: 0 / 496.5 MB, free: 1.223 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.003285/0.4171, allocations: 1.511 MB / 498 MB, free: 15.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.539e-05/0.4171, allocations: 85.05 kB / 498.1 MB, free: 15.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003639/0.4175, allocations: 324.7 kB / 498.4 MB, free: 15.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.4176, allocations: 29.7 kB / 498.4 MB, free: 15.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.4177, allocations: 239.9 kB / 498.7 MB, free: 14.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.879e-05/0.4179, allocations: 122.3 kB / 498.8 MB, free: 14.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.687e-05/0.4179, allocations: 4 kB / 498.8 MB, free: 14.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.418, allocations: 350.8 kB / 499.1 MB, free: 14.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004511/0.4185, allocations: 184.8 kB / 499.3 MB, free: 14.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004913/0.419, allocations: 268.8 kB / 499.6 MB, free: 13.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004451/0.4194, allocations: 195.9 kB / 499.8 MB, free: 13.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4195, allocations: 3.938 kB / 499.8 MB, free: 13.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001039/0.4205, allocations: 0.5203 MB / 0.4886 GB, free: 13.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003299/0.4208, allocations: 0.7973 MB / 0.4894 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.4209, allocations: 3.984 kB / 0.4894 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.4209, allocations: 7.938 kB / 0.4894 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008934/0.4218, allocations: 267.7 kB / 0.4896 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006376/0.4224, allocations: 0.6952 MB / 0.4903 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.4228, allocations: 48.09 kB / 0.4903 GB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.863e-05/0.4228, allocations: 16 kB / 0.4904 GB, free: 11.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.456e-06/0.4228, allocations: 4 kB / 0.4904 GB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008829/0.4237, allocations: 447.5 kB / 0.4908 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/0.4237, allocations: 0 / 0.4908 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.624e-06/0.4237, allocations: 4 kB / 0.4908 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000471/0.4242, allocations: 132 kB / 0.4909 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.4242, allocations: 4 kB / 0.4909 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.4245, allocations: 47.95 kB / 0.491 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.161e-05/0.4245, allocations: 12 kB / 0.491 GB, free: 10.7 MB / 378.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.000257/0.4248, allocations: 252.9 kB / 0.4912 GB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.467e-05/0.4249, allocations: 35.53 kB / 0.4913 GB, free: 10.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.877e-05/0.425, allocations: 52.23 kB / 0.4913 GB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.425, allocations: 4 kB / 0.4913 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.425, allocations: 0 / 0.4913 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.425, allocations: 0 / 0.4913 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001655/0.4267, allocations: 0.958 MB / 0.4923 GB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4267, allocations: 0 / 0.4923 GB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004085/0.4271, allocations: 99.88 kB / 0.4923 GB, free: 9.223 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.4271, allocations: 0 / 0.4923 GB, free: 9.223 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/0.4272, allocations: 16.11 kB / 0.4924 GB, free: 9.207 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.4272, allocations: 8 kB / 0.4924 GB, free: 9.199 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.4272, allocations: 0 / 0.4924 GB, free: 9.199 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001388/0.4286, allocations: 0.7826 MB / 0.4931 GB, free: 8.363 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.4287, allocations: 140.7 kB / 0.4933 GB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.773e-05/0.4288, allocations: 8 kB / 0.4933 GB, free: 8.199 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002921/0.4291, allocations: 43.97 kB / 0.4933 GB, free: 8.156 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.744e-05/0.4292, allocations: 31.89 kB / 0.4933 GB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.4292, allocations: 4 kB / 0.4934 GB, free: 8.121 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002485/0.4294, allocations: 255.2 kB / 0.4936 GB, free: 7.879 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4295, allocations: 0 / 0.4936 GB, free: 7.879 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005215/0.43, allocations: 144 kB / 0.4937 GB, free: 7.738 MB / 378.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.0001549/0.4301, allocations: 115.1 kB / 0.4938 GB, free: 7.617 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.4319, allocations: 0.7738 MB / 0.4946 GB, free: 6.844 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4319, allocations: 4.125 kB / 0.4946 GB, free: 6.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004397/0.4324, allocations: 204 kB / 0.4948 GB, free: 6.641 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005043/0.4329, allocations: 88.36 kB / 0.4949 GB, free: 6.555 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001857/0.4348, allocations: 1.219 MB / 0.4961 GB, free: 5.297 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/0.4352, allocations: 0.8314 MB / 0.4969 GB, free: 4.438 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002502/0.4354, allocations: 59.23 kB / 0.4969 GB, free: 4.379 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.595e-05/0.4355, allocations: 35.44 kB / 0.497 GB, free: 4.344 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4355, allocations: 4 kB / 0.497 GB, free: 4.34 MB / 378.7 MB Notification: Performance of Templates: time 0.008273/0.4438, allocations: 4.183 MB / 0.5011 GB, free: 200 kB / 378.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