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: "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001357, allocations: 117.2 kB / 17.78 MB, free: 5.262 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.001329/0.001329, allocations: 184.2 kB / 18.72 MB, free: 4.332 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.444/1.444, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3182/0.3182, allocations: 44.18 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 67.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4424/0.4443, allocations: 60.82 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.004451/0.4488, allocations: 2.279 MB / 0.5206 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002576/0.4514, allocations: 1.555 MB / 0.5222 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001905/0.4516, allocations: 4 kB / 0.5222 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004987/0.4521, allocations: 143.2 kB / 0.5223 GB, free: 0.543 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005231/0.4527, allocations: 221.6 kB / 0.5225 GB, free: 436 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001807/0.4545, allocations: 0.6555 MB / 0.5232 GB, free: 104 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007965/0.4553, allocations: 0.5304 MB / 0.5237 GB, free: 15.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002149/0.4555, allocations: 72.45 kB / 0.5237 GB, free: 15.81 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003295/0.4558, allocations: 221.7 kB / 0.524 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000331/0.4562, allocations: 219.8 kB / 0.5242 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.126e-05/0.4563, allocations: 25.81 kB / 0.5242 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004261/0.4567, allocations: 168 kB / 0.5243 GB, free: 15.58 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002019/0.4569, allocations: 128.9 kB / 0.5245 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000241/0.4571, allocations: 204.7 kB / 0.5247 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008964/0.458, allocations: 0.5776 MB / 0.5252 GB, free: 15.14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.4581, allocations: 0.7969 kB / 0.5252 GB, free: 15.14 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4581, allocations: 0 / 0.5252 GB, free: 15.14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.415e-06/0.4581, allocations: 0 / 0.5252 GB, free: 15.14 MB / 398.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.0015/0.4596, allocations: 0.9044 MB / 0.5261 GB, free: 14.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.4597, allocations: 9.625 kB / 0.5261 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.46e-05/0.4597, allocations: 44.14 kB / 0.5262 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.4599, allocations: 62.11 kB / 0.5262 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008182/0.4607, allocations: 468.1 kB / 0.5267 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.061e-05/0.4607, allocations: 16.59 kB / 0.5267 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.492e-05/0.4608, allocations: 18.12 kB / 0.5267 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005289/0.4613, allocations: 262.2 kB / 0.527 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.4613, allocations: 1.375 kB / 0.527 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.4614, allocations: 6.75 kB / 0.527 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.4614, allocations: 2.625 kB / 0.527 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003433/0.4617, allocations: 114.1 kB / 0.5271 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.463, allocations: 0.871 MB / 0.5279 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007143/0.4638, allocations: 297.2 kB / 0.5282 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002462/0.464, allocations: 107 kB / 0.5283 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.96e-05/0.4641, allocations: 16.27 kB / 0.5283 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004549/0.4645, allocations: 215.4 kB / 0.5285 GB, free: 12.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.522e-06/0.4645, allocations: 0 / 0.5285 GB, free: 12.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.001051/0.4656, allocations: 407.1 kB / 0.5289 GB, free: 12.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002471/0.4659, allocations: 342 kB / 0.5292 GB, free: 11.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00092/0.4668, allocations: 0.6288 MB / 0.5299 GB, free: 11.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.4668, allocations: 33.42 kB / 0.5299 GB, free: 11.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002331/0.4671, allocations: 232.1 kB / 0.5301 GB, free: 11.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.051e-05/0.4672, allocations: 65.97 kB / 0.5302 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.4673, allocations: 63.72 kB / 0.5302 GB, free: 11.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002311/0.4675, allocations: 366.1 kB / 0.5306 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000225/0.4678, allocations: 82.27 kB / 0.5307 GB, free: 10.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/0.4682, allocations: 246.8 kB / 0.5309 GB, free: 10.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005152/0.4687, allocations: 236.9 kB / 0.5311 GB, free: 10.31 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4687, allocations: 0 / 0.5311 GB, free: 10.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007191/0.4694, allocations: 321.3 kB / 0.5314 GB, free: 10.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.4695, allocations: 5.406 kB / 0.5314 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.4695, allocations: 1.969 kB / 0.5314 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.4695, allocations: 15.44 kB / 0.5315 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002723/0.4698, allocations: 49.22 kB / 0.5315 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.4698, allocations: 6.344 kB / 0.5315 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000226/0.47, allocations: 32.38 kB / 0.5315 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.455e-05/0.4701, allocations: 13.22 kB / 0.5316 GB, free: 10.09 MB / 398.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.0002863/0.4704, allocations: 223.5 kB / 0.5318 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.474e-05/0.4705, allocations: 54.17 kB / 0.5318 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000118/0.4706, allocations: 57.53 kB / 0.5319 GB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.4706, allocations: 3.312 kB / 0.5319 GB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.4706, allocations: 2.281 kB / 0.5319 GB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.4706, allocations: 9 kB / 0.5319 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005191/0.4712, allocations: 405.2 kB / 0.5323 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4712, allocations: 1.094 kB / 0.5323 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.4713, allocations: 22.58 kB / 0.5323 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.4713, allocations: 6.156 kB / 0.5323 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.748e-05/0.4714, allocations: 16.3 kB / 0.5323 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.4714, allocations: 6.125 kB / 0.5323 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4714, allocations: 1.156 kB / 0.5323 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007232/0.4721, allocations: 365.2 kB / 0.5327 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001207/0.4722, allocations: 131.1 kB / 0.5328 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.407e-05/0.4723, allocations: 17.17 kB / 0.5328 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001587/0.4725, allocations: 16.64 kB / 0.5328 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.4726, allocations: 37.44 kB / 0.5329 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.572e-05/0.4726, allocations: 14.86 kB / 0.5329 GB, free: 9.055 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005637/0.4732, allocations: 468.3 kB / 0.5333 GB, free: 8.809 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4732, allocations: 0 / 0.5333 GB, free: 8.809 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004772/0.4737, allocations: 96.05 kB / 0.5334 GB, free: 8.789 MB / 398.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.002707/0.4764, allocations: 1.258 MB / 0.5346 GB, free: 7.891 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006324/0.4771, allocations: 225.8 kB / 0.5349 GB, free: 7.793 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4771, allocations: 0 / 0.5349 GB, free: 7.793 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003794/0.4775, allocations: 169.5 kB / 0.535 GB, free: 7.715 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007525/0.4782, allocations: 161.4 kB / 0.5352 GB, free: 7.637 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00647/0.4847, allocations: 4.175 MB / 0.5393 GB, free: 4.945 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005968/0.4853, allocations: 0.8398 MB / 0.5401 GB, free: 4.168 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003941/0.4857, allocations: 94.25 kB / 0.5402 GB, free: 4.129 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002948/0.486, allocations: 169.6 kB / 0.5403 GB, free: 3.996 MB / 398.1 MB Notification: Performance of SimCode: time 1.011e-06/0.486, allocations: 0 / 0.5403 GB, free: 3.996 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04037/0.5264, allocations: 12.46 MB / 0.5525 GB, free: 8.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.556/9.082, allocations: 10.72 kB / 0.5525 GB, free: 8.672 MB / 414.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches