Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.StrictLimiters.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(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_3.2.3_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_3.2.3_ModelicaTest.Blocks.StrictLimiters") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009563/0.0009564, allocations: 185.6 kB / 7.799 MB, free: 2.441 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.038/1.038, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.0008075/0.0008075, allocations: 83.48 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1534/0.1534, allocations: 43.49 MB / 352.8 MB, free: 1.945 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.284e-06/7.314e-06, allocations: 4 kB / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2068, allocations: 58.84 MB / 476.6 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09989/0.3067, allocations: 90.02 MB / 0.5533 GB, free: 8.898 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000181/0.3069, allocations: 59.97 kB / 0.5533 GB, free: 8.84 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.04137/0.3483, allocations: 15.48 MB / 0.5685 GB, free: 9.336 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.967e-05/0.3484, allocations: 27.88 kB / 0.5685 GB, free: 9.309 MB / 410.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.001758/0.3501, allocations: 1.071 MB / 0.5695 GB, free: 8.188 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.492e-05/0.3502, allocations: 12.03 kB / 0.5695 GB, free: 8.176 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001477/0.3503, allocations: 98.78 kB / 0.5696 GB, free: 8.078 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.3514, allocations: 0.6209 MB / 0.5702 GB, free: 7.418 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.3514, allocations: 16 kB / 0.5703 GB, free: 7.402 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.507e-05/0.3515, allocations: 35.91 kB / 0.5703 GB, free: 7.367 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005644/0.3521, allocations: 338 kB / 0.5706 GB, free: 7.039 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006911/0.3528, allocations: 0.5001 MB / 0.5711 GB, free: 6.488 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.3528, allocations: 0 / 0.5711 GB, free: 6.488 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.453e-05/0.3528, allocations: 7.938 kB / 0.5711 GB, free: 6.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.3529, allocations: 12 kB / 0.5711 GB, free: 6.469 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002609/0.3555, allocations: 2.199 MB / 0.5733 GB, free: 4.195 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.3567, allocations: 0.616 MB / 0.5739 GB, free: 3.555 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002994/0.357, allocations: 189.7 kB / 0.5741 GB, free: 3.363 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.079e-05/0.3571, allocations: 11.98 kB / 0.5741 GB, free: 3.352 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.3571, allocations: 38.55 kB / 0.5741 GB, free: 3.305 MB / 410.7 MB Notification: Performance of pre-optimization done (n=46): time 1.513e-06/0.3571, allocations: 4 kB / 0.5741 GB, free: 3.301 MB / 410.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006886/0.3578, allocations: 413.7 kB / 0.5745 GB, free: 2.891 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.744e-05/0.3579, allocations: 136.5 kB / 0.5746 GB, free: 2.727 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004408/0.3583, allocations: 463.8 kB / 0.5751 GB, free: 2.266 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.714e-05/0.3584, allocations: 25.7 kB / 0.5751 GB, free: 2.234 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.3585, allocations: 244.7 kB / 0.5753 GB, free: 1.988 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.3586, allocations: 157.7 kB / 0.5755 GB, free: 1.832 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.719e-05/0.3586, allocations: 0 / 0.5755 GB, free: 1.832 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.334e-05/0.3587, allocations: 325.9 kB / 0.5758 GB, free: 1.508 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002516/0.359, allocations: 153 kB / 0.5759 GB, free: 1.359 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002946/0.3593, allocations: 246.7 kB / 0.5762 GB, free: 1.078 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000248/0.3595, allocations: 165.4 kB / 0.5763 GB, free: 0.9219 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3596, allocations: 0 / 0.5763 GB, free: 0.9219 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000711/0.3603, allocations: 494.1 kB / 0.5768 GB, free: 440 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000255/0.3605, allocations: 0.871 MB / 0.5777 GB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.3605, allocations: 8 kB / 0.5777 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.3606, allocations: 4 kB / 0.5777 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000974/0.3615, allocations: 215.7 kB / 0.5779 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.3616, allocations: 8 kB / 0.5779 GB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000547/0.3621, allocations: 115.5 kB / 0.578 GB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.446e-05/0.3622, allocations: 23.98 kB / 0.578 GB, free: 15.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.089e-06/0.3622, allocations: 7.938 kB / 0.578 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005612/0.3627, allocations: 353.3 kB / 0.5784 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.444e-06/0.3628, allocations: 0 / 0.5784 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.3628, allocations: 4 kB / 0.5784 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008079/0.3636, allocations: 184 kB / 0.5785 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.3636, allocations: 4 kB / 0.5785 GB, free: 14.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004265/0.364, allocations: 91.48 kB / 0.5786 GB, free: 14.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.659e-05/0.3641, allocations: 19.98 kB / 0.5786 GB, free: 14.47 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.0001113/0.3642, allocations: 121.5 kB / 0.5788 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.3643, allocations: 75.06 kB / 0.5788 GB, free: 14.28 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000131/0.3645, allocations: 70.91 kB / 0.5789 GB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3645, allocations: 4.141 kB / 0.5789 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3645, allocations: 0 / 0.5789 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3645, allocations: 7.969 kB / 0.5789 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001442/0.3659, allocations: 1.073 MB / 0.58 GB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.366, allocations: 4 kB / 0.58 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007553/0.3667, allocations: 171.8 kB / 0.5801 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.3667, allocations: 0 / 0.5801 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.138e-05/0.3668, allocations: 4 kB / 0.5801 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/0.3668, allocations: 7.984 kB / 0.5801 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3668, allocations: 0 / 0.5801 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001019/0.3678, allocations: 0.8288 MB / 0.5809 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002112/0.368, allocations: 188 kB / 0.5811 GB, free: 11.84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.97e-05/0.3681, allocations: 4 kB / 0.5811 GB, free: 11.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005893/0.3687, allocations: 95.92 kB / 0.5812 GB, free: 11.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.269e-05/0.3688, allocations: 35.94 kB / 0.5813 GB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.641e-05/0.3689, allocations: 15.98 kB / 0.5813 GB, free: 11.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003422/0.3692, allocations: 355.2 kB / 0.5816 GB, free: 11.35 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006016/0.3698, allocations: 211.1 kB / 0.5818 GB, free: 11.14 MB / 426.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.0001133/0.3699, allocations: 103.1 kB / 0.5819 GB, free: 11.03 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009167/0.3709, allocations: 0.6324 MB / 0.5825 GB, free: 10.39 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3709, allocations: 4 kB / 0.5825 GB, free: 10.39 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002946/0.3712, allocations: 199.8 kB / 0.5827 GB, free: 10.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007806/0.372, allocations: 166.7 kB / 0.5829 GB, free: 10.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002582/0.3746, allocations: 1.143 MB / 0.584 GB, free: 8.855 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006687/0.3752, allocations: 1.001 MB / 0.585 GB, free: 7.824 MB / 426.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3753, allocations: 0 / 0.585 GB, free: 7.824 MB / 426.7 MB Notification: Performance of Templates: time 0.01597/0.3912, allocations: 10.48 MB / 0.5952 GB, free: 13.38 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.StrictLimiters.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.StrictLimiters.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.StrictLimiters.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.StrictLimiters.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.StrictLimiters.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.StrictLimiters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.StrictLimiters.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.StrictLimiters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/StrictLimiters/StrictLimiters.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.StrictLimiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches