Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.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.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID") translateModel(ModelicaTest.Blocks.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID") [: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 4.0.0+maint.om/package.mo): time 0.0009693/0.0009695, allocations: 172.2 kB / 8.517 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.207/1.207, allocations: 221.4 MB / 230.3 MB, free: 7.742 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.0009306/0.0009306, allocations: 87.31 kB / 281.2 MB, free: 5.484 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1867/0.1867, allocations: 44.16 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.674e-06/7.714e-06, allocations: 224 / 444 MB, free: 15.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1398, allocations: 61.91 MB / 0.4941 GB, free: 1.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3569/0.4968, allocations: 89.26 MB / 0.5813 GB, free: 7.512 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.4971, allocations: 71.23 kB / 0.5813 GB, free: 7.477 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.04102/0.5381, allocations: 14.99 MB / 0.596 GB, free: 8.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.081e-05/0.5382, allocations: 23.94 kB / 0.596 GB, free: 8.477 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.00168/0.5399, allocations: 1.059 MB / 0.597 GB, free: 7.367 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.54, allocations: 11.97 kB / 0.597 GB, free: 7.355 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001751/0.5402, allocations: 114.6 kB / 0.5971 GB, free: 7.242 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009821/0.5412, allocations: 0.621 MB / 0.5977 GB, free: 6.582 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.5412, allocations: 20 kB / 0.5978 GB, free: 6.562 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.137e-05/0.5413, allocations: 40 kB / 0.5978 GB, free: 6.523 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007347/0.542, allocations: 390.6 kB / 0.5982 GB, free: 6.141 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009355/0.543, allocations: 0.5879 MB / 0.5987 GB, free: 5.496 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.543, allocations: 4 kB / 0.5988 GB, free: 5.492 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.04e-05/0.543, allocations: 3.828 kB / 0.5988 GB, free: 5.492 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.672e-05/0.5431, allocations: 19.94 kB / 0.5988 GB, free: 5.473 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003294/0.5464, allocations: 2.664 MB / 0.6014 GB, free: 2.723 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000921/0.5473, allocations: 0.5112 MB / 0.6019 GB, free: 2.176 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003111/0.5476, allocations: 209.7 kB / 0.6021 GB, free: 1.961 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.275e-05/0.5477, allocations: 11.97 kB / 0.6021 GB, free: 1.949 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.5477, allocations: 50.5 kB / 0.6021 GB, free: 1.891 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 2.214e-06/0.5477, allocations: 0 / 0.6021 GB, free: 1.891 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.0008478/0.5486, allocations: 456.9 kB / 0.6026 GB, free: 1.441 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.5487, allocations: 239.3 kB / 0.6028 GB, free: 1.152 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006481/0.5494, allocations: 0.5044 MB / 0.6033 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.134e-05/0.5494, allocations: 25.7 kB / 0.6033 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.5496, allocations: 296.1 kB / 0.6036 GB, free: 324 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.5497, allocations: 177.3 kB / 0.6038 GB, free: 144 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.453e-05/0.5498, allocations: 4 kB / 0.6038 GB, free: 140 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.5499, allocations: 330 kB / 0.6041 GB, free: 15.81 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002537/0.5502, allocations: 149.3 kB / 0.6042 GB, free: 15.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003478/0.5505, allocations: 287.8 kB / 0.6045 GB, free: 15.33 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003025/0.5508, allocations: 183.1 kB / 0.6047 GB, free: 15.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.5508, allocations: 3.938 kB / 0.6047 GB, free: 15.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001977/0.5528, allocations: 0.8493 MB / 0.6055 GB, free: 14.28 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004222/0.5532, allocations: 1.134 MB / 0.6066 GB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.5533, allocations: 8 kB / 0.6066 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009477/0.5542, allocations: 255.2 kB / 0.6069 GB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005847/0.5548, allocations: 131.9 kB / 0.607 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003837/0.5587, allocations: 3.668 MB / 0.6106 GB, free: 8.801 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000564/0.5592, allocations: 76.7 kB / 0.6106 GB, free: 8.727 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.389e-05/0.5593, allocations: 24.06 kB / 0.6107 GB, free: 8.703 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/0.5593, allocations: 6.344 kB / 0.6107 GB, free: 8.699 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001121/0.5604, allocations: 0.5124 MB / 0.6112 GB, free: 8.184 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.5605, allocations: 7.938 kB / 0.6112 GB, free: 8.176 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004471/0.5609, allocations: 121.9 kB / 0.6113 GB, free: 8.051 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008018/0.5617, allocations: 183.8 kB / 0.6115 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003077/0.5648, allocations: 3.02 MB / 0.6144 GB, free: 4.617 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004808/0.5653, allocations: 55.64 kB / 0.6145 GB, free: 4.562 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.233e-05/0.5654, allocations: 24.06 kB / 0.6145 GB, free: 4.539 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (PID4.I.local_reset,PID3.I.local_reset,PID2.I.local_reset,PID1.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001547/0.5655, allocations: 124.8 kB / 0.6146 GB, free: 4.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001846/0.5657, allocations: 86.95 kB / 0.6147 GB, free: 4.324 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000189/0.5659, allocations: 82.48 kB / 0.6148 GB, free: 4.242 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.5659, allocations: 8 kB / 0.6148 GB, free: 4.234 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.5659, allocations: 3.984 kB / 0.6148 GB, free: 4.23 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.566, allocations: 3.906 kB / 0.6148 GB, free: 4.227 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009079/0.5669, allocations: 0.6458 MB / 0.6154 GB, free: 3.543 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.5669, allocations: 0 / 0.6154 GB, free: 3.543 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006267/0.5675, allocations: 131.9 kB / 0.6156 GB, free: 3.414 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.324e-06/0.5675, allocations: 4 kB / 0.6156 GB, free: 3.41 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.606e-05/0.5676, allocations: 4 kB / 0.6156 GB, free: 3.406 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.5676, allocations: 0 / 0.6156 GB, free: 3.406 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.5676, allocations: 4 kB / 0.6156 GB, free: 3.402 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001174/0.5688, allocations: 1.05 MB / 0.6166 GB, free: 2.305 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002531/0.569, allocations: 203.9 kB / 0.6168 GB, free: 2.086 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.208e-05/0.5691, allocations: 4 kB / 0.6168 GB, free: 2.082 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005481/0.5697, allocations: 55.95 kB / 0.6168 GB, free: 2.027 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.636e-05/0.5698, allocations: 31.86 kB / 0.6169 GB, free: 1.996 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.251e-05/0.5698, allocations: 12 kB / 0.6169 GB, free: 1.984 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004155/0.5702, allocations: 399.2 kB / 0.6173 GB, free: 1.598 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008174/0.5711, allocations: 246.9 kB / 0.6175 GB, free: 1.355 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PID1.I.y,firstOrder1.y,PID2.I.y,firstOrder2.y,PID3.I.y,firstOrder3.y,PID4.I.y,firstOrder4.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.000133/0.5712, allocations: 107.1 kB / 0.6176 GB, free: 1.242 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003128/0.5743, allocations: 1.443 MB / 0.619 GB, free: 15.76 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5743, allocations: 0 / 0.619 GB, free: 15.76 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003324/0.5747, allocations: 211.8 kB / 0.6192 GB, free: 15.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000961/0.5757, allocations: 190.6 kB / 0.6194 GB, free: 15.37 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.5778, allocations: 1.102 MB / 0.6205 GB, free: 14.23 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006753/0.5785, allocations: 1.048 MB / 0.6215 GB, free: 13.15 MB / 442.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5785, allocations: 3.938 kB / 0.6215 GB, free: 13.15 MB / 442.7 MB Notification: Performance of Templates: time 0.01974/0.5982, allocations: 12.23 MB / 0.6334 GB, free: 0.9883 MB / 442.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches