Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Blocks.StrictLimiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.D.x|PID1.I.y|PID2.D.x|PID2.I.y|limIntegrator1.y|limIntegrator2.y|slewRateLimiter1.y|slewRateLimiter2.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters") translateModel(ModelicaTest.Blocks.StrictLimiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.D.x|PID1.I.y|PID2.D.x|PID2.I.y|limIntegrator1.y|limIntegrator2.y|slewRateLimiter1.y|slewRateLimiter2.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009695/0.0009695, allocations: 180.3 kB / 14.15 MB, free: 1.176 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.421/1.421, allocations: 221.3 MB / 236 MB, free: 2.949 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.0008187/0.0008187, allocations: 90.72 kB / 287 MB, free: 240 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1868/0.1868, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.342e-05/2.345e-05, allocations: 4 kB / 451.8 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1169, allocations: 61.92 MB / 0.5017 GB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.396/0.5129, allocations: 91.68 MB / 0.5912 GB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001854/0.5132, allocations: 67.97 kB / 0.5913 GB, free: 13.55 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04399/0.5572, allocations: 15.7 MB / 0.6066 GB, free: 13.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5572, allocations: 4 kB / 0.6066 GB, free: 13.83 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.848e-05/0.5573, allocations: 23.92 kB / 0.6067 GB, free: 13.81 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001886/0.5592, allocations: 1.038 MB / 0.6077 GB, free: 12.72 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.5592, allocations: 8.031 kB / 0.6077 GB, free: 12.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.5594, allocations: 98.83 kB / 0.6078 GB, free: 12.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/0.5605, allocations: 0.5937 MB / 0.6083 GB, free: 11.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.357e-05/0.5605, allocations: 41 kB / 0.6084 GB, free: 11.94 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-05/0.5606, allocations: 55.91 kB / 0.6084 GB, free: 11.89 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008552/0.5615, allocations: 0.5706 MB / 0.609 GB, free: 11.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.5615, allocations: 4 kB / 0.609 GB, free: 11.26 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.657e-05/0.5616, allocations: 20 kB / 0.609 GB, free: 11.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.5616, allocations: 15.95 kB / 0.609 GB, free: 11.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005995/0.5622, allocations: 363.8 kB / 0.6094 GB, free: 10.87 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002957/0.5652, allocations: 2.29 MB / 0.6116 GB, free: 8.496 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.5667, allocations: 0.7072 MB / 0.6123 GB, free: 7.746 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002975/0.567, allocations: 189.7 kB / 0.6125 GB, free: 7.555 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.331e-05/0.5671, allocations: 23.94 kB / 0.6125 GB, free: 7.531 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.5671, allocations: 38.55 kB / 0.6125 GB, free: 7.484 MB / 426.7 MB Notification: Performance of pre-optimization done (n=46): time 2.154e-06/0.5671, allocations: 4 kB / 0.6126 GB, free: 7.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.000766/0.5679, allocations: 429.7 kB / 0.613 GB, free: 7.055 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.552e-05/0.568, allocations: 136.5 kB / 0.6131 GB, free: 6.891 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005113/0.5685, allocations: 495.7 kB / 0.6136 GB, free: 6.398 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.415e-05/0.5685, allocations: 37.7 kB / 0.6136 GB, free: 6.355 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002522/0.5688, allocations: 352.8 kB / 0.6139 GB, free: 6.008 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.5689, allocations: 165.5 kB / 0.6141 GB, free: 5.844 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.756e-05/0.5689, allocations: 8 kB / 0.6141 GB, free: 5.836 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.5691, allocations: 382.8 kB / 0.6145 GB, free: 5.453 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.5694, allocations: 153.1 kB / 0.6146 GB, free: 5.305 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003406/0.5697, allocations: 260.3 kB / 0.6149 GB, free: 5.012 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000283/0.57, allocations: 173.8 kB / 0.615 GB, free: 4.844 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.57, allocations: 0 / 0.615 GB, free: 4.844 MB / 426.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008019/0.5708, allocations: 0.503 MB / 0.6155 GB, free: 4.332 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003378/0.5712, allocations: 0.8915 MB / 0.6164 GB, free: 3.375 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.5712, allocations: 4 kB / 0.6164 GB, free: 3.371 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.5712, allocations: 4.094 kB / 0.6164 GB, free: 3.367 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009549/0.5722, allocations: 203.8 kB / 0.6166 GB, free: 3.168 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.5722, allocations: 7.938 kB / 0.6166 GB, free: 3.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005638/0.5728, allocations: 127.5 kB / 0.6167 GB, free: 3.035 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-05/0.5728, allocations: 19.98 kB / 0.6167 GB, free: 3.016 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.315e-06/0.5728, allocations: 4 kB / 0.6167 GB, free: 3.012 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006325/0.5735, allocations: 406.2 kB / 0.6171 GB, free: 2.613 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.5735, allocations: 4 kB / 0.6171 GB, free: 2.609 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.971e-06/0.5735, allocations: 4 kB / 0.6171 GB, free: 2.605 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000768/0.5743, allocations: 176 kB / 0.6173 GB, free: 2.434 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.5743, allocations: 7.984 kB / 0.6173 GB, free: 2.426 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004153/0.5747, allocations: 87.64 kB / 0.6174 GB, free: 2.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.524e-05/0.5748, allocations: 16 kB / 0.6174 GB, free: 2.324 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 4 (PID2.I.local_reset,PID1.I.local_reset,limIntegrator2.local_reset,limIntegrator1.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * 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 prepare postOptimizeDAE: time 0.0001515/0.5749, allocations: 144.8 kB / 0.6176 GB, free: 2.176 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.575, allocations: 71.06 kB / 0.6176 GB, free: 2.105 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001914/0.5752, allocations: 78.73 kB / 0.6177 GB, free: 2.023 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.5753, allocations: 4 kB / 0.6177 GB, free: 2.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.5753, allocations: 4 kB / 0.6177 GB, free: 2.016 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.5753, allocations: 3.984 kB / 0.6177 GB, free: 2.012 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001593/0.5769, allocations: 1.15 MB / 0.6188 GB, free: 0.8047 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.5769, allocations: 8 kB / 0.6188 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006944/0.5776, allocations: 155.8 kB / 0.619 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.5776, allocations: 4 kB / 0.619 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.261e-05/0.5777, allocations: 15.98 kB / 0.619 GB, free: 0.625 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.5777, allocations: 3.953 kB / 0.619 GB, free: 0.6211 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.5777, allocations: 8 kB / 0.619 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.5788, allocations: 0.8492 MB / 0.6198 GB, free: 15.74 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002096/0.579, allocations: 188.1 kB / 0.62 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.261e-05/0.5791, allocations: 15.95 kB / 0.62 GB, free: 15.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005581/0.5797, allocations: 87.92 kB / 0.6201 GB, free: 15.43 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.5798, allocations: 43.92 kB / 0.6202 GB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.572e-05/0.5798, allocations: 16 kB / 0.6202 GB, free: 15.38 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003996/0.5802, allocations: 387.2 kB / 0.6205 GB, free: 15 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5802, allocations: 0 / 0.6205 GB, free: 15 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006458/0.5809, allocations: 223.2 kB / 0.6208 GB, free: 14.79 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (slewRateLimiter1.y,slewRateLimiter2.y,limIntegrator1.y,limIntegrator2.y,PID1.I.y,PID1.D.x,PID2.I.y,PID2.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 46 * 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.0001456/0.581, allocations: 111.2 kB / 0.6209 GB, free: 14.67 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.5821, allocations: 0.658 MB / 0.6215 GB, free: 14.01 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.5821, allocations: 4.125 kB / 0.6215 GB, free: 14.01 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003254/0.5824, allocations: 211.8 kB / 0.6217 GB, free: 13.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008524/0.5833, allocations: 173.1 kB / 0.6219 GB, free: 13.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002495/0.5858, allocations: 1.131 MB / 0.623 GB, free: 12.47 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004258/0.5863, allocations: 0.9392 MB / 0.6239 GB, free: 11.5 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005823/0.5868, allocations: 135.2 kB / 0.624 GB, free: 11.37 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.587, allocations: 47.41 kB / 0.6241 GB, free: 11.32 MB / 442.7 MB Notification: Performance of SimCode: time 4.11e-07/0.587, allocations: 4 kB / 0.6241 GB, free: 11.32 MB / 442.7 MB Notification: Performance of Templates: time 0.01397/0.601, allocations: 8.645 MB / 0.6325 GB, free: 2.75 MB / 442.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/StrictLimiters/StrictLimiters.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches