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.001161/0.001161, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001119/0.001119, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.35/1.35, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.2086/0.2086, allocations: 44.19 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 67.91 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3274, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003832/0.3313, allocations: 2.273 MB / 0.5206 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002406/0.3337, allocations: 1.552 MB / 0.5222 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00019/0.3339, allocations: 7.094 kB / 0.5222 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004422/0.3344, allocations: 143.2 kB / 0.5223 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004631/0.3349, allocations: 234.9 kB / 0.5225 GB, free: 444 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001554/0.3365, allocations: 0.6584 MB / 0.5232 GB, free: 108 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006948/0.3372, allocations: 0.5318 MB / 0.5237 GB, free: 15.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.3373, allocations: 68.73 kB / 0.5237 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002955/0.3376, allocations: 223.1 kB / 0.524 GB, free: 15.72 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002609/0.3379, allocations: 216.5 kB / 0.5242 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.777e-05/0.338, allocations: 28.72 kB / 0.5242 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003636/0.3383, allocations: 173.2 kB / 0.5244 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.3385, allocations: 132.4 kB / 0.5245 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002141/0.3388, allocations: 192.8 kB / 0.5247 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007645/0.3395, allocations: 0.5739 MB / 0.5252 GB, free: 15.15 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3395, allocations: 0 / 0.5252 GB, free: 15.15 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3395, allocations: 0 / 0.5252 GB, free: 15.15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.3396, allocations: 1.812 kB / 0.5252 GB, free: 15.15 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.001289/0.3409, allocations: 0.9038 MB / 0.5261 GB, free: 14.38 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.3409, allocations: 9.344 kB / 0.5261 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.102e-05/0.341, allocations: 51.95 kB / 0.5262 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.3411, allocations: 58.94 kB / 0.5262 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007005/0.3418, allocations: 469.9 kB / 0.5267 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.008e-05/0.3418, allocations: 13.98 kB / 0.5267 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.323e-05/0.3419, allocations: 16.94 kB / 0.5267 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005009/0.3424, allocations: 269.8 kB / 0.527 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.3424, allocations: 0 / 0.527 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.889e-05/0.3424, allocations: 10.75 kB / 0.527 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.3425, allocations: 4.125 kB / 0.527 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003067/0.3428, allocations: 105.5 kB / 0.5271 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.344, allocations: 0.8749 MB / 0.5279 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007243/0.3448, allocations: 301.3 kB / 0.5282 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002543/0.345, allocations: 107.7 kB / 0.5283 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.001e-05/0.3451, allocations: 3.844 kB / 0.5283 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004679/0.3455, allocations: 218.8 kB / 0.5285 GB, free: 12.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.114e-06/0.3456, allocations: 0 / 0.5285 GB, free: 12.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.001082/0.3466, allocations: 406.7 kB / 0.5289 GB, free: 12.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001647/0.3468, allocations: 343.9 kB / 0.5292 GB, free: 11.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007782/0.3476, allocations: 0.6309 MB / 0.5299 GB, free: 11.45 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.31e-05/0.3477, allocations: 38.23 kB / 0.5299 GB, free: 11.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.3478, allocations: 223.9 kB / 0.5301 GB, free: 11.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.776e-05/0.3479, allocations: 69.91 kB / 0.5302 GB, free: 11.15 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.348, allocations: 60.97 kB / 0.5302 GB, free: 11.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.3482, allocations: 364.6 kB / 0.5306 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.3484, allocations: 86.23 kB / 0.5307 GB, free: 10.72 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003752/0.3488, allocations: 251 kB / 0.5309 GB, free: 10.49 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004865/0.3493, allocations: 228.4 kB / 0.5311 GB, free: 10.33 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.3493, allocations: 0.9688 kB / 0.5311 GB, free: 10.33 MB / 398.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006983/0.35, allocations: 317.3 kB / 0.5314 GB, free: 10.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.3501, allocations: 5.938 kB / 0.5314 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3501, allocations: 5.562 kB / 0.5314 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.3501, allocations: 6.812 kB / 0.5314 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.3504, allocations: 62.02 kB / 0.5315 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.3504, allocations: 6.875 kB / 0.5315 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/0.3507, allocations: 27.94 kB / 0.5315 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.713e-05/0.3508, allocations: 8.844 kB / 0.5315 GB, free: 10.11 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.0002675/0.351, allocations: 219.6 kB / 0.5318 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.506e-05/0.3511, allocations: 53.55 kB / 0.5318 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.513e-05/0.3512, allocations: 58.41 kB / 0.5319 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.3513, allocations: 2.812 kB / 0.5319 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.3513, allocations: 9.656 kB / 0.5319 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3513, allocations: 1.188 kB / 0.5319 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003967/0.3517, allocations: 408.9 kB / 0.5323 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3517, allocations: 1.781 kB / 0.5323 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.3518, allocations: 27 kB / 0.5323 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.3518, allocations: 1.125 kB / 0.5323 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.351e-05/0.3519, allocations: 13 kB / 0.5323 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.3519, allocations: 2.25 kB / 0.5323 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.3519, allocations: 5.141 kB / 0.5323 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006714/0.3526, allocations: 366.9 kB / 0.5327 GB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.3527, allocations: 134.4 kB / 0.5328 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.56e-05/0.3528, allocations: 12.59 kB / 0.5328 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.353, allocations: 17.3 kB / 0.5328 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.801e-05/0.3531, allocations: 45.03 kB / 0.5329 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.302e-05/0.3531, allocations: 15.08 kB / 0.5329 GB, free: 9.074 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005006/0.3536, allocations: 463.3 kB / 0.5333 GB, free: 8.832 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3536, allocations: 0 / 0.5333 GB, free: 8.832 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004657/0.3541, allocations: 97.84 kB / 0.5334 GB, free: 8.812 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.001889/0.356, allocations: 1.268 MB / 0.5347 GB, free: 7.906 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005747/0.3566, allocations: 221.1 kB / 0.5349 GB, free: 7.812 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.3566, allocations: 5.281 kB / 0.5349 GB, free: 7.809 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003708/0.357, allocations: 169.7 kB / 0.535 GB, free: 7.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007166/0.3577, allocations: 150.2 kB / 0.5352 GB, free: 7.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00543/0.3631, allocations: 4.174 MB / 0.5393 GB, free: 4.969 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.3636, allocations: 0.8531 MB / 0.5401 GB, free: 4.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002821/0.3639, allocations: 88.39 kB / 0.5402 GB, free: 4.145 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002538/0.3641, allocations: 166.9 kB / 0.5403 GB, free: 4.016 MB / 398.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3641, allocations: 0 / 0.5403 GB, free: 4.016 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.037/0.4012, allocations: 12.47 MB / 0.5525 GB, free: 8.695 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.487/8.888, allocations: 4 kB / 0.5525 GB, free: 8.691 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