Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.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.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerTable.y|integerTable2.y|integerTable3.y|integerTable4.y",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.IntegerTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008021/0.0008022, allocations: 180.3 kB / 18.09 MB, free: 3.746 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.166/1.166, allocations: 223.3 MB / 242.1 MB, free: 11.58 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007017/0.0007017, allocations: 95.52 kB / 293.3 MB, free: 10.73 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.284/0.284, allocations: 44.15 MB / 388.5 MB, free: 38.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004489/0.0004489, allocations: 8 kB / 461.1 MB, free: 1.32 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2443, allocations: 61.88 MB / 0.5107 GB, free: 38.22 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0904/0.3347, allocations: 90.06 MB / 0.5987 GB, free: 4.984 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001717/0.3349, allocations: 75.95 kB / 0.5987 GB, free: 4.914 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03305/0.368, allocations: 13.3 MB / 0.6117 GB, free: 7.602 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.368, allocations: 0 / 0.6117 GB, free: 7.602 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.239e-05/0.368, allocations: 16.12 kB / 0.6117 GB, free: 7.586 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001153/0.3692, allocations: 0.8443 MB / 0.6126 GB, free: 6.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.3692, allocations: 8.031 kB / 0.6126 GB, free: 6.652 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.3694, allocations: 52.38 kB / 0.6126 GB, free: 6.602 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007381/0.3701, allocations: 0.5039 MB / 0.6131 GB, free: 6.059 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.072e-05/0.3702, allocations: 16.59 kB / 0.6131 GB, free: 6.043 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.22e-05/0.3702, allocations: 12.38 kB / 0.6131 GB, free: 6.031 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003999/0.3706, allocations: 275.8 kB / 0.6134 GB, free: 5.723 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.3706, allocations: 192 / 0.6134 GB, free: 5.723 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.72e-05/0.3707, allocations: 11.94 kB / 0.6134 GB, free: 5.711 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.3707, allocations: 0 / 0.6134 GB, free: 5.711 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002747/0.371, allocations: 119.9 kB / 0.6135 GB, free: 5.594 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.372, allocations: 0.9301 MB / 0.6144 GB, free: 4.602 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005792/0.3726, allocations: 302.5 kB / 0.6147 GB, free: 4.27 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002053/0.3728, allocations: 119.4 kB / 0.6148 GB, free: 4.141 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.3728, allocations: 8.219 kB / 0.6148 GB, free: 4.133 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000353/0.3732, allocations: 222.5 kB / 0.6151 GB, free: 3.891 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 2.675e-06/0.3732, allocations: 3.984 kB / 0.6151 GB, free: 3.887 MB / 426.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008565/0.3741, allocations: 416.8 kB / 0.6155 GB, free: 3.473 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.3742, allocations: 342.1 kB / 0.6158 GB, free: 3.059 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006953/0.3749, allocations: 0.6433 MB / 0.6164 GB, free: 2.406 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.384e-05/0.3749, allocations: 37.7 kB / 0.6165 GB, free: 2.363 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.3751, allocations: 212.6 kB / 0.6167 GB, free: 2.152 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.211e-05/0.3752, allocations: 75.11 kB / 0.6167 GB, free: 2.078 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.233e-05/0.3752, allocations: 4 kB / 0.6167 GB, free: 2.074 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.3753, allocations: 370.7 kB / 0.6171 GB, free: 1.703 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.3755, allocations: 87.94 kB / 0.6172 GB, free: 1.617 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002997/0.3758, allocations: 262.1 kB / 0.6174 GB, free: 1.301 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004195/0.3762, allocations: 239.7 kB / 0.6176 GB, free: 1.043 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3762, allocations: 0 / 0.6176 GB, free: 1.043 MB / 426.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000577/0.3768, allocations: 332.7 kB / 0.618 GB, free: 0.7109 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.3769, allocations: 8 kB / 0.618 GB, free: 0.7031 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3769, allocations: 3.938 kB / 0.618 GB, free: 0.6992 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.3769, allocations: 4 kB / 0.618 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.3771, allocations: 55.91 kB / 0.618 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.3771, allocations: 4 kB / 0.618 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001987/0.3773, allocations: 39.89 kB / 0.6181 GB, free: 0.5977 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.278e-05/0.3774, allocations: 12 kB / 0.6181 GB, free: 0.5859 MB / 426.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.0002058/0.3776, allocations: 213.7 kB / 0.6183 GB, free: 376 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.076e-05/0.3777, allocations: 55.34 kB / 0.6183 GB, free: 320 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006924/0.3784, allocations: 373.3 kB / 0.6187 GB, free: 15.94 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3784, allocations: 4 kB / 0.6187 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3784, allocations: 0 / 0.6187 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.3784, allocations: 7.938 kB / 0.6187 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003743/0.3788, allocations: 441.4 kB / 0.6191 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3788, allocations: 3.938 kB / 0.6191 GB, free: 15.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.3789, allocations: 39.92 kB / 0.6192 GB, free: 15.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.3789, allocations: 4 kB / 0.6192 GB, free: 15.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/0.379, allocations: 11.98 kB / 0.6192 GB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.379, allocations: 0 / 0.6192 GB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.379, allocations: 8 kB / 0.6192 GB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000593/0.3796, allocations: 392.4 kB / 0.6196 GB, free: 14.97 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.3797, allocations: 152.4 kB / 0.6197 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.332e-05/0.3798, allocations: 8 kB / 0.6197 GB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/0.38, allocations: 23.98 kB / 0.6197 GB, free: 14.77 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.452e-05/0.3801, allocations: 43.88 kB / 0.6198 GB, free: 14.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.02e-05/0.3801, allocations: 12 kB / 0.6198 GB, free: 14.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004896/0.3806, allocations: 470.8 kB / 0.6202 GB, free: 14.26 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3806, allocations: 0 / 0.6202 GB, free: 14.26 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0004044/0.381, allocations: 123.9 kB / 0.6204 GB, free: 14.14 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.0008881/0.3819, allocations: 486.7 kB / 0.6208 GB, free: 13.82 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0005528/0.3825, allocations: 275.7 kB / 0.6211 GB, free: 13.55 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3825, allocations: 0 / 0.6211 GB, free: 13.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003289/0.3828, allocations: 191.9 kB / 0.6213 GB, free: 13.36 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006357/0.3835, allocations: 128.6 kB / 0.6214 GB, free: 13.24 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.3846, allocations: 0.8823 MB / 0.6223 GB, free: 12.31 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.385, allocations: 0.847 MB / 0.6231 GB, free: 11.44 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000241/0.3852, allocations: 95.67 kB / 0.6232 GB, free: 11.35 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.3854, allocations: 55.41 kB / 0.6232 GB, free: 11.29 MB / 442.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3854, allocations: 0 / 0.6232 GB, free: 11.29 MB / 442.7 MB Notification: Performance of Templates: time 0.01146/0.3968, allocations: 7.475 MB / 0.6305 GB, free: 3.871 MB / 442.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches