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/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 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 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001001, allocations: 93.88 kB / 17.35 MB, free: 6.371 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.001361/0.001361, allocations: 171.8 kB / 18.25 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.3 MB / 242.3 MB, free: 252 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2236/0.2236, allocations: 44.25 MB / 337.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000297/0.000297, allocations: 8.5 kB / 410.3 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1175, allocations: 61.92 MB / 472.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003073/0.1207, allocations: 1.954 MB / 474.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002591/0.1233, allocations: 1.532 MB / 475.7 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.1234, allocations: 3.938 kB / 475.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004067/0.1239, allocations: 127.6 kB / 475.9 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003652/0.1242, allocations: 199.2 kB / 476.1 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001358/0.1256, allocations: 0.6069 MB / 476.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005493/0.1262, allocations: 494.6 kB / 477.1 MB, free: 8.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.1263, allocations: 65.06 kB / 477.2 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002196/0.1266, allocations: 191 kB / 477.4 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.1268, allocations: 207 kB / 477.6 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.4e-05/0.1268, allocations: 8 kB / 477.6 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00023/0.1271, allocations: 131.8 kB / 477.7 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.1272, allocations: 115.5 kB / 477.8 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001669/0.1274, allocations: 208.4 kB / 478 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005883/0.128, allocations: 0.5297 MB / 478.6 MB, free: 7.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.128, allocations: 4 kB / 478.6 MB, free: 7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.128, allocations: 0 / 478.6 MB, free: 7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.128, allocations: 4 kB / 478.6 MB, free: 6.996 MB / 350.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.001092/0.1291, allocations: 0.8049 MB / 479.4 MB, free: 6.117 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.1292, allocations: 12.03 kB / 479.4 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.781e-05/0.1293, allocations: 48.38 kB / 479.5 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000587/0.1299, allocations: 468 kB / 479.9 MB, free: 5.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.102e-05/0.1299, allocations: 12.61 kB / 479.9 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.683e-05/0.13, allocations: 20.11 kB / 479.9 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004714/0.1304, allocations: 265.3 kB / 480.2 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.1305, allocations: 4 kB / 480.2 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.253e-05/0.1305, allocations: 8 kB / 480.2 MB, free: 5.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.1305, allocations: 4 kB / 480.2 MB, free: 5.215 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003108/0.1308, allocations: 111.9 kB / 480.3 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.1319, allocations: 0.8719 MB / 481.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006297/0.1325, allocations: 290.6 kB / 481.5 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.1327, allocations: 111.3 kB / 481.6 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.534e-05/0.1328, allocations: 12 kB / 481.6 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004514/0.1333, allocations: 214.5 kB / 481.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.1333, allocations: 0 / 481.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009801/0.1343, allocations: 413.7 kB / 482.2 MB, free: 3.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000243/0.1345, allocations: 338.1 kB / 482.5 MB, free: 2.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008528/0.1354, allocations: 0.6354 MB / 483.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.1354, allocations: 33.7 kB / 483.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000169/0.1356, allocations: 224.6 kB / 483.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.938e-05/0.1356, allocations: 67.19 kB / 483.5 MB, free: 1.691 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.973e-05/0.1357, allocations: 41.7 kB / 483.5 MB, free: 1.645 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1358, allocations: 358.8 kB / 483.9 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.1361, allocations: 83.95 kB / 484 MB, free: 1.203 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003225/0.1364, allocations: 255.7 kB / 484.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004387/0.1368, allocations: 226.8 kB / 484.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1369, allocations: 0 / 484.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005951/0.1375, allocations: 313 kB / 484.7 MB, free: 344 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.1375, allocations: 4 kB / 484.8 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1375, allocations: 8.188 kB / 484.8 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.1375, allocations: 11.94 kB / 484.8 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003257/0.1378, allocations: 59.89 kB / 484.8 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.964e-06/0.1379, allocations: 4 kB / 484.8 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002134/0.1381, allocations: 27.83 kB / 484.9 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.1381, allocations: 12 kB / 484.9 MB, free: 216 kB / 350.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.0002413/0.1384, allocations: 217.7 kB / 485.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.081e-05/0.1384, allocations: 55.34 kB / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.1386, allocations: 59.91 kB / 485.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.1386, allocations: 7.938 kB / 485.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.1386, allocations: 3.938 kB / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1386, allocations: 4 kB / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003833/0.139, allocations: 401.2 kB / 485.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.139, allocations: 0 / 485.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.1391, allocations: 31.97 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1391, allocations: 0 / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/0.1391, allocations: 4 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.516e-05/0.1392, allocations: 15.92 kB / 485.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1392, allocations: 0 / 485.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007013/0.14, allocations: 362.4 kB / 486 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.1401, allocations: 144.5 kB / 486.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.18e-05/0.1402, allocations: 16 kB / 486.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.1403, allocations: 19.91 kB / 486.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.576e-05/0.1404, allocations: 39.95 kB / 486.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.157e-05/0.1405, allocations: 15.98 kB / 486.2 MB, free: 14.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005017/0.141, allocations: 466.8 kB / 486.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.141, allocations: 3.938 kB / 486.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004129/0.1414, allocations: 95.91 kB / 486.8 MB, free: 14.19 MB / 366.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.001067/0.1425, allocations: 467.6 kB / 487.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005393/0.143, allocations: 223.6 kB / 487.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.143, allocations: 4 kB / 487.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003399/0.1434, allocations: 175.8 kB / 487.6 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007733/0.1442, allocations: 127.5 kB / 487.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.1454, allocations: 0.8743 MB / 488.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005214/0.1459, allocations: 0.8431 MB / 489.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002489/0.1462, allocations: 87.2 kB / 489.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.1463, allocations: 51.41 kB / 489.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1463, allocations: 0 / 489.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of Templates: time 0.01267/0.159, allocations: 7.139 MB / 496.8 MB, free: 4.355 MB / 366.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches