Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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_cpp_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_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002359/0.002359, allocations: 175.8 kB / 8.15 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.77/1.77, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001265/0.001265, allocations: 82.77 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2778/0.2778, allocations: 43.49 MB / 353.2 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.346e-06/8.485e-06, allocations: 4 kB / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2772, allocations: 58.84 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1611/0.4384, allocations: 90.02 MB / 0.5533 GB, free: 9.039 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.4387, allocations: 67.27 kB / 0.5533 GB, free: 8.977 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.07435/0.5131, allocations: 15.47 MB / 0.5684 GB, free: 9.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.754e-05/0.5132, allocations: 27.92 kB / 0.5685 GB, free: 9.453 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.003503/0.5167, allocations: 1.063 MB / 0.5695 GB, free: 8.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.5168, allocations: 15.97 kB / 0.5695 GB, free: 8.324 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003501/0.5172, allocations: 102.8 kB / 0.5696 GB, free: 8.223 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002085/0.5192, allocations: 0.6248 MB / 0.5702 GB, free: 7.559 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.28e-05/0.5193, allocations: 16 kB / 0.5702 GB, free: 7.543 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/0.5195, allocations: 39.91 kB / 0.5703 GB, free: 7.504 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001189/0.5207, allocations: 333.9 kB / 0.5706 GB, free: 7.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.522, allocations: 0.4984 MB / 0.5711 GB, free: 6.629 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/0.522, allocations: 3.984 kB / 0.5711 GB, free: 6.625 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.415e-05/0.5221, allocations: 0 / 0.5711 GB, free: 6.625 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.5222, allocations: 15.94 kB / 0.5711 GB, free: 6.609 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005285/0.5275, allocations: 2.191 MB / 0.5732 GB, free: 4.344 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002633/0.5302, allocations: 0.6278 MB / 0.5739 GB, free: 3.691 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006054/0.5308, allocations: 185.7 kB / 0.574 GB, free: 3.504 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.611e-05/0.5309, allocations: 8 kB / 0.574 GB, free: 3.496 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.5309, allocations: 38.56 kB / 0.5741 GB, free: 3.449 MB / 410.7 MB Notification: Performance of pre-optimization done (n=46): time 3.566e-06/0.5309, allocations: 0 / 0.5741 GB, free: 3.449 MB / 410.7 MB Notification: Performance of matching and sorting (n=46): time 0.001421/0.5324, allocations: 421.7 kB / 0.5745 GB, free: 3.031 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.176e-05/0.5325, allocations: 132.5 kB / 0.5746 GB, free: 2.871 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008865/0.5334, allocations: 463.8 kB / 0.5751 GB, free: 2.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.315e-05/0.5335, allocations: 29.7 kB / 0.5751 GB, free: 2.375 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/0.5336, allocations: 255.2 kB / 0.5753 GB, free: 2.121 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001977/0.5339, allocations: 153.7 kB / 0.5755 GB, free: 1.969 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.591e-05/0.5339, allocations: 0 / 0.5755 GB, free: 1.969 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.5341, allocations: 334.8 kB / 0.5758 GB, free: 1.633 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004867/0.5346, allocations: 148.9 kB / 0.5759 GB, free: 1.488 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006265/0.5352, allocations: 254.6 kB / 0.5762 GB, free: 1.199 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005042/0.5357, allocations: 157.5 kB / 0.5763 GB, free: 1.051 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.5357, allocations: 4 kB / 0.5763 GB, free: 1.047 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001343/0.5371, allocations: 435 kB / 0.5767 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003884/0.5375, allocations: 0.8786 MB / 0.5776 GB, free: 15.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.5375, allocations: 4 kB / 0.5776 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.818e-05/0.5376, allocations: 7.984 kB / 0.5776 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002049/0.5396, allocations: 215.7 kB / 0.5778 GB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.5397, allocations: 4 kB / 0.5778 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009909/0.5407, allocations: 115.6 kB / 0.5779 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.641e-05/0.5407, allocations: 23.89 kB / 0.578 GB, free: 15.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.5408, allocations: 4 kB / 0.578 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001121/0.5419, allocations: 353.3 kB / 0.5783 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.5419, allocations: 4 kB / 0.5783 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.5419, allocations: 7.984 kB / 0.5783 GB, free: 14.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001663/0.5436, allocations: 180 kB / 0.5785 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.5437, allocations: 4 kB / 0.5785 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000727/0.5444, allocations: 83.58 kB / 0.5786 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.418e-05/0.5445, allocations: 23.98 kB / 0.5786 GB, free: 14.66 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.0001989/0.5447, allocations: 48.03 kB / 0.5786 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002786/0.545, allocations: 67.16 kB / 0.5787 GB, free: 14.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002895/0.5453, allocations: 70.91 kB / 0.5788 GB, free: 14.47 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.5453, allocations: 11.98 kB / 0.5788 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.5453, allocations: 11.91 kB / 0.5788 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.5453, allocations: 0 / 0.5788 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002725/0.5481, allocations: 1.073 MB / 0.5798 GB, free: 13.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.5481, allocations: 3.938 kB / 0.5798 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001516/0.5497, allocations: 159.8 kB / 0.58 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.257e-05/0.5497, allocations: 4 kB / 0.58 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.584e-05/0.5498, allocations: 11.98 kB / 0.58 GB, free: 13.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.5498, allocations: 4 kB / 0.58 GB, free: 13.15 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.5498, allocations: 4 kB / 0.58 GB, free: 13.14 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001939/0.5517, allocations: 0.8288 MB / 0.5808 GB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003747/0.5521, allocations: 188.1 kB / 0.581 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/0.5523, allocations: 3.906 kB / 0.581 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/0.5535, allocations: 99.92 kB / 0.5811 GB, free: 11.99 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/0.5536, allocations: 31.94 kB / 0.5811 GB, free: 11.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.629e-05/0.5537, allocations: 19.98 kB / 0.5812 GB, free: 11.94 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0006628/0.5544, allocations: 355.2 kB / 0.5815 GB, free: 11.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001013/0.5554, allocations: 199.2 kB / 0.5817 GB, free: 11.4 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.0002061/0.5556, allocations: 118.2 kB / 0.5818 GB, free: 11.28 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001839/0.5575, allocations: 0.5969 MB / 0.5824 GB, free: 10.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.5575, allocations: 4 kB / 0.5824 GB, free: 10.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005858/0.5581, allocations: 203.8 kB / 0.5826 GB, free: 10.48 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001598/0.5597, allocations: 174.5 kB / 0.5827 GB, free: 10.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005192/0.5649, allocations: 1.145 MB / 0.5839 GB, free: 9.125 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001053/0.566, allocations: 1.007 MB / 0.5848 GB, free: 8.086 MB / 426.7 MB Notification: Performance of SimCode: time 1.293e-06/0.566, allocations: 0 / 0.5848 GB, free: 8.086 MB / 426.7 MB Notification: Performance of Templates: time 0.01992/0.586, allocations: 8.541 MB / 0.5932 GB, free: 15.57 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.StrictLimiters.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Blocks.StrictLimiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches