Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.conf.json 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/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) 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_3.2.3_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_3.2.3_ModelicaTest.Blocks.IntegerTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001853/0.001853, allocations: 112.7 kB / 17.04 MB, free: 5.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001955/0.001955, allocations: 195 kB / 17.97 MB, free: 5.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.631/1.631, allocations: 205.1 MB / 223.8 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.218/0.218, allocations: 43.51 MB / 314.7 MB, free: 500 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 64.91 kB / 384.2 MB, free: 56.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1355, allocations: 57.79 MB / 442 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.00354/0.1391, allocations: 2.268 MB / 444.2 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.141, allocations: 1.451 MB / 445.7 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.1412, allocations: 7.938 kB / 445.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004382/0.1416, allocations: 147.2 kB / 445.8 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004047/0.1421, allocations: 219 kB / 446.1 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.1434, allocations: 0.6183 MB / 446.7 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004909/0.1439, allocations: 0.5259 MB / 447.2 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000179/0.144, allocations: 80.98 kB / 447.3 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002059/0.1443, allocations: 223.1 kB / 447.5 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001909/0.1445, allocations: 215.1 kB / 447.7 MB, free: 424 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.818e-05/0.1445, allocations: 24 kB / 447.7 MB, free: 400 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002867/0.1448, allocations: 179.8 kB / 447.9 MB, free: 220 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.1449, allocations: 131.6 kB / 448 MB, free: 88 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002109/0.1451, allocations: 198.7 kB / 448.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006722/0.1458, allocations: 0.5685 MB / 448.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1458, allocations: 0 / 448.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.1459, allocations: 0 / 448.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.1459, allocations: 3.938 kB / 448.8 MB, free: 15.32 MB / 334.1 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.001395/0.1473, allocations: 0.8903 MB / 449.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.1473, allocations: 11.89 kB / 449.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.1475, allocations: 60.38 kB / 449.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007172/0.1482, allocations: 464 kB / 450.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.1482, allocations: 12.61 kB / 450.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.439e-05/0.1483, allocations: 16.12 kB / 450.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004621/0.1487, allocations: 254.8 kB / 450.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1487, allocations: 4 kB / 450.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.584e-05/0.1488, allocations: 7.984 kB / 450.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.1488, allocations: 4 kB / 450.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002958/0.1491, allocations: 111.9 kB / 450.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.1503, allocations: 0.8718 MB / 451.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006793/0.151, allocations: 294.5 kB / 451.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000227/0.1512, allocations: 107.4 kB / 451.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.428e-05/0.1512, allocations: 11.98 kB / 451.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003997/0.1516, allocations: 224.5 kB / 452.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.1517, allocations: 0 / 452.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009274/0.1526, allocations: 401.2 kB / 452.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000172/0.1528, allocations: 346.3 kB / 452.8 MB, free: 10.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007276/0.1535, allocations: 0.6315 MB / 453.5 MB, free: 10.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.625e-05/0.1536, allocations: 37.7 kB / 453.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001881/0.1537, allocations: 232.5 kB / 453.7 MB, free: 9.988 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.184e-05/0.1538, allocations: 59.19 kB / 453.8 MB, free: 9.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.1539, allocations: 61.7 kB / 453.9 MB, free: 9.863 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.1541, allocations: 370.8 kB / 454.2 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.1543, allocations: 83.94 kB / 454.3 MB, free: 9.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003599/0.1547, allocations: 237.1 kB / 454.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005008/0.1552, allocations: 235.3 kB / 454.8 MB, free: 8.863 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1552, allocations: 0 / 454.8 MB, free: 8.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006191/0.1558, allocations: 320.8 kB / 455.1 MB, free: 8.543 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.1559, allocations: 4 kB / 455.1 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1559, allocations: 4 kB / 455.1 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.844e-05/0.1559, allocations: 7.938 kB / 455.1 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002557/0.1562, allocations: 51.91 kB / 455.1 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.1562, allocations: 7.984 kB / 455.1 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001895/0.1564, allocations: 31.78 kB / 455.2 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.346e-05/0.1564, allocations: 16.11 kB / 455.2 MB, free: 8.422 MB / 334.1 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 ($PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition4,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.integerTable2.combiTimeTable.nextTimeEvent,$whenCondition3,integerTable2.combiTimeTable.nextTimeEventScaled,$PRE.integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.y,$PRE.integerTable3.combiTimeTable.nextTimeEvent,$whenCondition2,integerTable3.combiTimeTable.nextTimeEventScaled,$PRE.integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.y,$PRE.integerTable4.combiTimeTable.nextTimeEvent,$whenCondition1,integerTable4.combiTimeTable.nextTimeEventScaled,$PRE.integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002447/0.1567, allocations: 221.7 kB / 455.4 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.195e-05/0.1568, allocations: 55.33 kB / 455.5 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.1569, allocations: 55.91 kB / 455.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-05/0.1569, allocations: 7.938 kB / 455.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.1569, allocations: 3.938 kB / 455.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1569, allocations: 0 / 455.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004134/0.1574, allocations: 409.4 kB / 455.9 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.516e-05/0.1574, allocations: 8 kB / 455.9 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.1575, allocations: 27.92 kB / 456 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.1575, allocations: 4 kB / 456 MB, free: 7.582 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.685e-05/0.1575, allocations: 11.98 kB / 456 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.1576, allocations: 3.938 kB / 456 MB, free: 7.566 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.1576, allocations: 4 kB / 456 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006358/0.1582, allocations: 362.7 kB / 456.3 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.1583, allocations: 132.5 kB / 456.5 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.271e-05/0.1584, allocations: 8 kB / 456.5 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/0.1586, allocations: 19.92 kB / 456.5 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.1587, allocations: 35.95 kB / 456.5 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.382e-05/0.1587, allocations: 12 kB / 456.5 MB, free: 6.957 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005285/0.1593, allocations: 466.8 kB / 457 MB, free: 6.504 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1593, allocations: 4 kB / 457 MB, free: 6.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000423/0.1597, allocations: 95.98 kB / 457.1 MB, free: 6.406 MB / 334.1 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.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001169/0.1609, allocations: 463 kB / 457.5 MB, free: 6.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005832/0.1615, allocations: 227.7 kB / 457.8 MB, free: 5.797 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1615, allocations: 256 / 457.8 MB, free: 5.797 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003524/0.1619, allocations: 171.8 kB / 457.9 MB, free: 5.629 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006931/0.1626, allocations: 147.6 kB / 458.1 MB, free: 5.492 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.1638, allocations: 0.7696 MB / 458.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004931/0.1643, allocations: 0.8428 MB / 459.7 MB, free: 3.816 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002252/0.1646, allocations: 87.22 kB / 459.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.1647, allocations: 47.42 kB / 459.8 MB, free: 3.688 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1647, allocations: 0 / 459.8 MB, free: 3.688 MB / 334.1 MB Notification: Performance of Templates: time 0.01428/0.179, allocations: 7.549 MB / 467.4 MB, free: 12.14 MB / 350.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches