Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerTable.y|integerTable2.y|integerTable3.y|integerTable4.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable") translateModel(ModelicaTest.Blocks.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerTable.y|integerTable2.y|integerTable3.y|integerTable4.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001064/0.001064, allocations: 194.4 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 226.5 MB / 244.1 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007588/0.0007585, allocations: 90.16 kB / 296.1 MB, free: 6.719 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3381/0.3381, allocations: 44.82 MB / 393 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002981/0.0002981, allocations: 8 kB / 465.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3059, allocations: 62.95 MB / 0.5165 GB, free: 37.22 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1028/0.4087, allocations: 91.38 MB / 0.6057 GB, free: 14.04 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001819/0.4089, allocations: 71.97 kB / 0.6058 GB, free: 13.96 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0384/0.4473, allocations: 14.53 MB / 0.62 GB, free: 15.42 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4474, allocations: 0 / 0.62 GB, free: 15.42 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.499e-05/0.4474, allocations: 12 kB / 0.62 GB, free: 15.41 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001452/0.4489, allocations: 0.9026 MB / 0.6208 GB, free: 14.43 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.4489, allocations: 8.875 kB / 0.6209 GB, free: 14.42 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001597/0.4491, allocations: 56.28 kB / 0.6209 GB, free: 14.37 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009163/0.45, allocations: 0.535 MB / 0.6214 GB, free: 13.79 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.4501, allocations: 12.61 kB / 0.6214 GB, free: 13.78 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.326e-05/0.4501, allocations: 12.38 kB / 0.6215 GB, free: 13.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004362/0.4505, allocations: 269.5 kB / 0.6217 GB, free: 13.47 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.4506, allocations: 192 / 0.6217 GB, free: 13.47 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.4506, allocations: 11.94 kB / 0.6217 GB, free: 13.46 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.4506, allocations: 0 / 0.6217 GB, free: 13.46 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003063/0.4509, allocations: 131.8 kB / 0.6219 GB, free: 13.33 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.4521, allocations: 0.9346 MB / 0.6228 GB, free: 12.33 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006422/0.4527, allocations: 306.5 kB / 0.6231 GB, free: 12 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002258/0.453, allocations: 119.4 kB / 0.6232 GB, free: 11.87 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.453, allocations: 4 kB / 0.6232 GB, free: 11.86 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003882/0.4534, allocations: 235.2 kB / 0.6234 GB, free: 11.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=24): time 1.824e-06/0.4534, allocations: 0 / 0.6234 GB, free: 11.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009525/0.4544, allocations: 417.6 kB / 0.6238 GB, free: 11.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001368/0.4545, allocations: 338.1 kB / 0.6241 GB, free: 10.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008173/0.4553, allocations: 0.6748 MB / 0.6248 GB, free: 10.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.542e-05/0.4554, allocations: 33.7 kB / 0.6248 GB, free: 10.06 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.4556, allocations: 244.4 kB / 0.625 GB, free: 9.816 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.063e-05/0.4556, allocations: 67.22 kB / 0.6251 GB, free: 9.75 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.481e-05/0.4557, allocations: 4 kB / 0.6251 GB, free: 9.746 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.4558, allocations: 370.7 kB / 0.6255 GB, free: 9.375 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002134/0.456, allocations: 95.88 kB / 0.6256 GB, free: 9.281 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003616/0.4564, allocations: 256 kB / 0.6258 GB, free: 8.973 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004511/0.4569, allocations: 250.8 kB / 0.626 GB, free: 8.703 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.4569, allocations: 0 / 0.626 GB, free: 8.703 MB / 442.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006399/0.4575, allocations: 328.7 kB / 0.6264 GB, free: 8.375 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.4575, allocations: 4 kB / 0.6264 GB, free: 8.371 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.4576, allocations: 7.938 kB / 0.6264 GB, free: 8.363 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.4576, allocations: 4 kB / 0.6264 GB, free: 8.359 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002424/0.4578, allocations: 55.91 kB / 0.6264 GB, free: 8.305 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.4578, allocations: 4 kB / 0.6264 GB, free: 8.301 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.4581, allocations: 36.14 kB / 0.6265 GB, free: 8.266 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.4581, allocations: 19.98 kB / 0.6265 GB, free: 8.246 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition4,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.integerTable2.combiTimeTable.nextTimeEvent,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,$PRE.integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,$PRE.integerTable3.combiTimeTable.nextTimeEvent,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,$PRE.integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,$PRE.integerTable4.combiTimeTable.nextTimeEvent,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,$PRE.integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0002338/0.4583, allocations: 214.3 kB / 0.6267 GB, free: 8.027 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.374e-05/0.4584, allocations: 63.33 kB / 0.6267 GB, free: 7.965 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007622/0.4592, allocations: 377.5 kB / 0.6271 GB, free: 7.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.4592, allocations: 7.938 kB / 0.6271 GB, free: 7.582 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.4592, allocations: 0 / 0.6271 GB, free: 7.582 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.4592, allocations: 11.91 kB / 0.6271 GB, free: 7.57 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000439/0.4597, allocations: 453.1 kB / 0.6276 GB, free: 7.078 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.4597, allocations: 3.984 kB / 0.6276 GB, free: 7.074 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001271/0.4598, allocations: 27.98 kB / 0.6276 GB, free: 7.047 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.4598, allocations: 0 / 0.6276 GB, free: 7.047 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.723e-05/0.4599, allocations: 11.98 kB / 0.6276 GB, free: 7.035 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.4599, allocations: 7.938 kB / 0.6276 GB, free: 7.027 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.4599, allocations: 0 / 0.6276 GB, free: 7.027 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006763/0.4606, allocations: 394.8 kB / 0.628 GB, free: 6.613 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001531/0.4607, allocations: 160.3 kB / 0.6281 GB, free: 6.438 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.263e-05/0.4608, allocations: 16 kB / 0.6281 GB, free: 6.422 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.461, allocations: 19.98 kB / 0.6282 GB, free: 6.402 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.747e-05/0.4611, allocations: 43.83 kB / 0.6282 GB, free: 6.359 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.512e-05/0.4611, allocations: 11.98 kB / 0.6282 GB, free: 6.348 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005809/0.4617, allocations: 498.8 kB / 0.6287 GB, free: 5.863 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4617, allocations: 0 / 0.6287 GB, free: 5.863 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000467/0.4622, allocations: 127.8 kB / 0.6288 GB, free: 5.738 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition4,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 8 (integerTable4.combiTimeTable.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0009659/0.4632, allocations: 467.8 kB / 0.6293 GB, free: 5.414 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006014/0.4638, allocations: 281 kB / 0.6295 GB, free: 5.141 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.4638, allocations: 0 / 0.6295 GB, free: 5.141 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002889/0.4641, allocations: 139.8 kB / 0.6297 GB, free: 5.004 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006762/0.4648, allocations: 127.1 kB / 0.6298 GB, free: 4.875 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.4661, allocations: 0.9678 MB / 0.6307 GB, free: 3.863 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.4665, allocations: 0.8471 MB / 0.6316 GB, free: 2.984 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.4666, allocations: 51.41 kB / 0.6316 GB, free: 2.934 MB / 442.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4666, allocations: 0 / 0.6316 GB, free: 2.934 MB / 442.7 MB Notification: Performance of Templates: time 0.01012/0.4768, allocations: 7.426 MB / 0.6389 GB, free: 11.53 MB / 458.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches