Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002035/0.002035, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002327/0.002327, allocations: 208.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.587/1.587, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2501/0.2501, allocations: 46.13 MB / 344.4 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00233/0.00233, allocations: 79.86 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4953/0.4977, allocations: 62.43 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.006731/0.5045, allocations: 2.33 MB / 0.5329 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005099/0.5096, allocations: 1.69 MB / 0.5345 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004738/0.5102, allocations: 6.688 kB / 0.5345 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007201/0.511, allocations: 144.8 kB / 0.5347 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001256/0.5122, allocations: 291.5 kB / 0.5349 GB, free: 9.914 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002696/0.515, allocations: 0.5317 MB / 0.5355 GB, free: 9.555 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00134/0.5163, allocations: 0.5675 MB / 0.536 GB, free: 9.207 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003099/0.5167, allocations: 69.52 kB / 0.5361 GB, free: 9.172 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006197/0.5173, allocations: 228.7 kB / 0.5363 GB, free: 9.035 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004872/0.5178, allocations: 231.7 kB / 0.5365 GB, free: 8.895 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.5179, allocations: 26.75 kB / 0.5365 GB, free: 8.895 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007773/0.5187, allocations: 181.6 kB / 0.5367 GB, free: 8.816 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003022/0.5191, allocations: 132.8 kB / 0.5368 GB, free: 8.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004056/0.5195, allocations: 203.2 kB / 0.537 GB, free: 8.574 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001339/0.5208, allocations: 0.6024 MB / 0.5376 GB, free: 8.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.5209, allocations: 0 / 0.5376 GB, free: 8.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5209, allocations: 1.031 kB / 0.5376 GB, free: 8.16 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.819e-06/0.5209, allocations: 0 / 0.5376 GB, free: 8.16 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.002242/0.5232, allocations: 0.9332 MB / 0.5385 GB, free: 7.297 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.5232, allocations: 9.844 kB / 0.5385 GB, free: 7.297 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.815e-05/0.5233, allocations: 48.3 kB / 0.5386 GB, free: 7.246 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001783/0.5235, allocations: 58.47 kB / 0.5386 GB, free: 7.215 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001195/0.5247, allocations: 484.2 kB / 0.5391 GB, free: 6.805 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.962e-05/0.5248, allocations: 11.89 kB / 0.5391 GB, free: 6.801 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.323e-05/0.5249, allocations: 20.8 kB / 0.5391 GB, free: 6.789 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008341/0.5257, allocations: 261.3 kB / 0.5394 GB, free: 6.562 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.5258, allocations: 5 kB / 0.5394 GB, free: 6.559 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.727e-05/0.5258, allocations: 14.86 kB / 0.5394 GB, free: 6.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.5258, allocations: 3.25 kB / 0.5394 GB, free: 6.547 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005789/0.5264, allocations: 105.1 kB / 0.5395 GB, free: 6.496 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002008/0.5285, allocations: 0.8908 MB / 0.5404 GB, free: 5.691 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/0.5298, allocations: 289 kB / 0.5407 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004591/0.5303, allocations: 106.7 kB / 0.5408 GB, free: 5.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.655e-05/0.5304, allocations: 12.39 kB / 0.5408 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007766/0.5312, allocations: 229.9 kB / 0.541 GB, free: 5.227 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.995e-06/0.5312, allocations: 0 / 0.541 GB, free: 5.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.002026/0.5332, allocations: 403.4 kB / 0.5414 GB, free: 5.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003227/0.5336, allocations: 351.2 kB / 0.5417 GB, free: 4.602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001589/0.5352, allocations: 0.6706 MB / 0.5424 GB, free: 4.238 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.836e-05/0.5353, allocations: 34.11 kB / 0.5424 GB, free: 4.203 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003458/0.5356, allocations: 235.9 kB / 0.5426 GB, free: 3.996 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.5358, allocations: 70.73 kB / 0.5427 GB, free: 3.938 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/0.536, allocations: 63.5 kB / 0.5427 GB, free: 3.895 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003132/0.5363, allocations: 366 kB / 0.5431 GB, free: 3.543 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004168/0.5367, allocations: 85.8 kB / 0.5432 GB, free: 3.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006422/0.5374, allocations: 244 kB / 0.5434 GB, free: 3.277 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009093/0.5383, allocations: 233.6 kB / 0.5436 GB, free: 3.117 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.5383, allocations: 0 / 0.5436 GB, free: 3.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001378/0.5397, allocations: 322.7 kB / 0.5439 GB, free: 2.941 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.5398, allocations: 5.938 kB / 0.5439 GB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.5398, allocations: 1.156 kB / 0.5439 GB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.73e-05/0.5398, allocations: 7.469 kB / 0.544 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004907/0.5403, allocations: 57.69 kB / 0.544 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.5404, allocations: 2.406 kB / 0.544 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004378/0.5408, allocations: 28 kB / 0.544 GB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.63e-05/0.5409, allocations: 17.58 kB / 0.5441 GB, free: 2.898 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.0005164/0.5414, allocations: 221.7 kB / 0.5443 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001742/0.5416, allocations: 62.11 kB / 0.5443 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001822/0.5418, allocations: 67.59 kB / 0.5444 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.5418, allocations: 3.281 kB / 0.5444 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.5418, allocations: 5.219 kB / 0.5444 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.5419, allocations: 1.031 kB / 0.5444 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007998/0.5427, allocations: 413.7 kB / 0.5448 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.5427, allocations: 1.031 kB / 0.5448 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.5429, allocations: 34.84 kB / 0.5448 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.543, allocations: 2.094 kB / 0.5448 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.054e-05/0.543, allocations: 12.45 kB / 0.5448 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.017e-05/0.543, allocations: 6.328 kB / 0.5448 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.543, allocations: 1.156 kB / 0.5448 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.5443, allocations: 366.8 kB / 0.5452 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000233/0.5446, allocations: 131.7 kB / 0.5453 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.5447, allocations: 13.16 kB / 0.5453 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003036/0.545, allocations: 15.7 kB / 0.5454 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.5452, allocations: 42.2 kB / 0.5454 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.829e-05/0.5453, allocations: 14.83 kB / 0.5454 GB, free: 1.848 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001104/0.5464, allocations: 492.2 kB / 0.5459 GB, free: 1.469 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.5464, allocations: 0 / 0.5459 GB, free: 1.469 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008303/0.5473, allocations: 99.86 kB / 0.546 GB, free: 1.371 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.004427/0.5517, allocations: 1.257 MB / 0.5472 GB, free: 228 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001208/0.553, allocations: 231.9 kB / 0.5474 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.553, allocations: 8.188 kB / 0.5474 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006655/0.5537, allocations: 176.3 kB / 0.5476 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.555, allocations: 135.5 kB / 0.5477 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01095/0.566, allocations: 4.289 MB / 0.5519 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007337/0.5668, allocations: 0.8584 MB / 0.5528 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000454/0.5673, allocations: 83.25 kB / 0.5528 GB, free: 10.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004191/0.5677, allocations: 175.4 kB / 0.553 GB, free: 10.11 MB / 414.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5677, allocations: 0 / 0.553 GB, free: 10.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04793/0.6157, allocations: 12.79 MB / 0.5655 GB, free: 13.42 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.974/9.59, allocations: 14.88 kB / 0.5655 GB, free: 13.41 MB / 430.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_1_0-beta_om_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe 2>&1)