Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009769/0.009773, allocations: 164 kB / 15.12 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.842/1.842, allocations: 170.8 MB / 186.6 MB, free: 1.121 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001802/0.001802, allocations: 106 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4605/0.4605, allocations: 38.05 MB / 303.7 MB, free: 42.49 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000503/0.0005034, allocations: 12 kB / 363 MB, free: 5.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1152, allocations: 48.71 MB / 411.7 MB, free: 4.688 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank): time 0.02732/0.1426, allocations: 15.58 MB / 427.3 MB, free: 5.047 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.2929/0.4356, allocations: 6.487 MB / 433.8 MB, free: 31.07 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001231/0.4369, allocations: 29.72 kB / 433.8 MB, free: 31.07 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00145/0.4384, allocations: 313.8 kB / 434.1 MB, free: 31.07 MB / 330.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:826:36-827:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:824:36-825:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.00403/0.4424, allocations: 0.9798 MB / 435.1 MB, free: 31.04 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006832/0.4493, allocations: 1.508 MB / 436.6 MB, free: 30.99 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004513/0.4538, allocations: 2.521 MB / 439.1 MB, free: 30.84 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001488/0.4554, allocations: 0.5239 MB / 439.7 MB, free: 30.78 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002516/0.4579, allocations: 0.7112 MB / 440.4 MB, free: 30.64 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002237/0.4602, allocations: 0.7749 MB / 441.1 MB, free: 30.54 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003399/0.4606, allocations: 39.88 kB / 441.2 MB, free: 30.54 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003843/0.4645, allocations: 1.124 MB / 442.3 MB, free: 30.49 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000812/0.4653, allocations: 282.2 kB / 442.6 MB, free: 30.46 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004976/0.4658, allocations: 185.8 kB / 442.8 MB, free: 30.4 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003413/0.4693, allocations: 1.365 MB / 444.1 MB, free: 30.3 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.361e-06/0.4693, allocations: 0 / 444.1 MB, free: 30.3 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.4693, allocations: 0 / 444.1 MB, free: 30.3 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.203e-05/0.4694, allocations: 3.156 kB / 444.1 MB, free: 30.3 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.004131/0.4735, allocations: 1.208 MB / 445.3 MB, free: 29.53 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.4736, allocations: 9.719 kB / 445.3 MB, free: 29.53 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003748/0.474, allocations: 108.4 kB / 445.4 MB, free: 29.49 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005613/0.4746, allocations: 108.1 kB / 445.6 MB, free: 29.44 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001625/0.4762, allocations: 0.6035 MB / 446.2 MB, free: 29.16 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.4764, allocations: 107.9 kB / 446.3 MB, free: 29.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001665/0.4766, allocations: 58.45 kB / 446.3 MB, free: 29.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002581/0.4792, allocations: 0.9876 MB / 447.3 MB, free: 28.94 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.875e-05/0.4793, allocations: 4.219 kB / 447.3 MB, free: 28.94 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/0.4794, allocations: 25.09 kB / 447.3 MB, free: 28.94 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001172/0.4795, allocations: 57.47 kB / 447.4 MB, free: 28.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002608/0.4822, allocations: 0.906 MB / 448.3 MB, free: 28.91 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01001/0.4922, allocations: 4.048 MB / 452.3 MB, free: 27.05 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001599/0.4939, allocations: 0.6261 MB / 453 MB, free: 27.02 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008966/0.4948, allocations: 371.1 kB / 453.3 MB, free: 27.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005091/0.4999, allocations: 2.308 MB / 455.6 MB, free: 25.55 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001016/0.501, allocations: 427.1 kB / 456.1 MB, free: 25.47 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 6.162e-06/0.501, allocations: 3.25 kB / 456.1 MB, free: 25.47 MB / 330.7 MB Notification: Performance of matching and sorting (n=50): time 0.008483/0.5095, allocations: 2.476 MB / 458.5 MB, free: 24.72 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.192e-05/0.5097, allocations: 172.1 kB / 458.7 MB, free: 24.53 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001402/0.5111, allocations: 0.7704 MB / 459.5 MB, free: 24.38 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001885/0.5113, allocations: 39.02 kB / 459.5 MB, free: 24.35 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000424/0.5117, allocations: 436.9 kB / 459.9 MB, free: 24.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000237/0.512, allocations: 163 kB / 460.1 MB, free: 24.04 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.675e-05/0.5121, allocations: 16.97 kB / 460.1 MB, free: 24.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.5122, allocations: 397 kB / 460.5 MB, free: 23.73 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000902/0.5132, allocations: 348.2 kB / 460.8 MB, free: 23.72 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.5143, allocations: 0.6304 MB / 461.5 MB, free: 23.36 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.5154, allocations: 444 kB / 461.9 MB, free: 23.31 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.5154, allocations: 3.281 kB / 461.9 MB, free: 23.31 MB / 330.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003542/0.5189, allocations: 1.249 MB / 463.2 MB, free: 23.11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002801/0.5193, allocations: 381.1 kB / 463.5 MB, free: 22.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.011e-05/0.5193, allocations: 13.52 kB / 463.5 MB, free: 22.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00153/0.5208, allocations: 361.8 kB / 463.9 MB, free: 22.63 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.5221, allocations: 167.1 kB / 464.1 MB, free: 22.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002039/0.5242, allocations: 1.446 MB / 465.5 MB, free: 21.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.5256, allocations: 51.52 kB / 465.6 MB, free: 21.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000147/0.5258, allocations: 41.42 kB / 465.6 MB, free: 21.56 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.5258, allocations: 6.031 kB / 465.6 MB, free: 21.56 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002964/0.5288, allocations: 1.088 MB / 466.7 MB, free: 21.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/0.5289, allocations: 8.781 kB / 466.7 MB, free: 21.14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.53, allocations: 278.2 kB / 467 MB, free: 21.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.5312, allocations: 161 kB / 467.1 MB, free: 21.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002751/0.534, allocations: 2.351 MB / 469.5 MB, free: 18.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/0.5352, allocations: 48.98 kB / 469.5 MB, free: 18.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.5354, allocations: 41.08 kB / 469.6 MB, free: 18.95 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0008122/0.5362, allocations: 398.2 kB / 470 MB, free: 18.65 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002283/0.5364, allocations: 84.58 kB / 470 MB, free: 18.61 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003107/0.5396, allocations: 1.031 MB / 471.1 MB, free: 18.2 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.5396, allocations: 6.031 kB / 471.1 MB, free: 18.2 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/0.5397, allocations: 2.531 kB / 471.1 MB, free: 18.2 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.5397, allocations: 2.531 kB / 471.1 MB, free: 18.2 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004841/0.5445, allocations: 1.839 MB / 472.9 MB, free: 17.33 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.864e-06/0.5446, allocations: 0.8906 kB / 472.9 MB, free: 17.33 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008286/0.5454, allocations: 79.8 kB / 473 MB, free: 17.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001453/0.5469, allocations: 345.1 kB / 473.3 MB, free: 17.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/0.5471, allocations: 23.97 kB / 473.4 MB, free: 17.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001875/0.549, allocations: 1.448 MB / 474.8 MB, free: 16.03 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.549, allocations: 0 / 474.8 MB, free: 16.03 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003901/0.553, allocations: 1.477 MB / 476.3 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000764/0.5538, allocations: 240.2 kB / 476.5 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002037/0.554, allocations: 12.53 kB / 476.5 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.555, allocations: 36.83 kB / 476.6 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002487/0.5553, allocations: 50.03 kB / 476.6 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.5554, allocations: 25.89 kB / 476.6 MB, free: 15.17 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001128/0.5566, allocations: 0.5258 MB / 477.2 MB, free: 14.95 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.42e-07/0.5566, allocations: 0 / 477.2 MB, free: 14.95 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00317/0.5598, allocations: 0.5907 MB / 477.8 MB, free: 14.85 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.level,tank.medium.T) * Number of discrete variables: 9 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 5 (timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0058/0.5656, allocations: 2.387 MB / 480.1 MB, free: 13.58 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005152/0.5708, allocations: 1.583 MB / 481.7 MB, free: 12.89 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/0.5708, allocations: 1.125 kB / 481.7 MB, free: 12.89 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001843/0.5727, allocations: 463.5 kB / 482.2 MB, free: 12.7 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/0.5754, allocations: 289 kB / 482.5 MB, free: 12.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01565/0.5911, allocations: 5.846 MB / 488.3 MB, free: 9.051 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000642/0.5918, allocations: 1.025 MB / 489.3 MB, free: 8.191 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001923/0.5937, allocations: 302 kB / 489.6 MB, free: 8.047 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006055/0.5944, allocations: 294.9 kB / 489.9 MB, free: 7.809 MB / 330.7 MB Notification: Performance of SimCode: time 2.435e-06/0.5944, allocations: 0 / 489.9 MB, free: 7.809 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08237/0.6768, allocations: 26.45 MB / 0.5043 GB, free: 15.06 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000406/0.6772, allocations: 270.5 kB / 0.5045 GB, free: 14.7 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.939/4.616, allocations: 1.531 kB / 0.5045 GB, free: 14.7 MB / 362.7 MB