Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.295/2.295, allocations: 234.9 MB / 250.5 MB, free: 9.688 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004314/0.0004316, allocations: 16 kB / 314.4 MB, free: 9.637 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4119/0.4124, allocations: 54.85 MB / 369.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank): time 0.02327/0.4357, allocations: 14.23 MB / 383.5 MB, free: 14.5 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01349/0.4493, allocations: 6.091 MB / 389.6 MB, free: 8.395 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001112/0.4504, allocations: 31.69 kB / 389.6 MB, free: 8.363 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001428/0.4519, allocations: 330.5 kB / 389.9 MB, free: 8.039 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003366/0.4553, allocations: 0.8296 MB / 390.8 MB, free: 7.207 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00633/0.4617, allocations: 1.504 MB / 392.3 MB, free: 5.699 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003039/0.4647, allocations: 1.344 MB / 393.6 MB, free: 4.352 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001171/0.4659, allocations: 0.5377 MB / 394.2 MB, free: 3.801 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001841/0.4678, allocations: 0.6816 MB / 394.8 MB, free: 3.117 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001265/0.4691, allocations: 0.5529 MB / 395.4 MB, free: 2.562 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001992/0.4693, allocations: 40 kB / 395.4 MB, free: 2.523 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003327/0.4726, allocations: 1.147 MB / 396.6 MB, free: 1.375 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005515/0.4732, allocations: 263.3 kB / 396.8 MB, free: 1.117 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003797/0.4736, allocations: 193.2 kB / 397 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003295/0.4769, allocations: 1.369 MB / 398.4 MB, free: 15.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.477, allocations: 0 / 398.4 MB, free: 15.55 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.477, allocations: 0 / 398.4 MB, free: 15.55 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.561e-05/0.477, allocations: 0 / 398.4 MB, free: 15.55 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.003889/0.4809, allocations: 1.213 MB / 399.6 MB, free: 14.28 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.481, allocations: 12.03 kB / 399.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000247/0.4812, allocations: 110.5 kB / 399.7 MB, free: 14.15 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005066/0.4817, allocations: 110.8 kB / 399.8 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001493/0.4833, allocations: 0.605 MB / 400.4 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001604/0.4834, allocations: 108.7 kB / 400.6 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001605/0.4836, allocations: 55.98 kB / 400.6 MB, free: 13.22 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002506/0.4861, allocations: 0.9988 MB / 401.6 MB, free: 12.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.053e-05/0.4862, allocations: 3.938 kB / 401.6 MB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/0.4863, allocations: 35.91 kB / 401.6 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001189/0.4865, allocations: 53.28 kB / 401.7 MB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0025/0.489, allocations: 0.9028 MB / 402.6 MB, free: 11.18 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.01015/0.4991, allocations: 4.105 MB / 406.7 MB, free: 6.863 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001701/0.5009, allocations: 0.6254 MB / 407.3 MB, free: 6.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005196/0.5061, allocations: 2.315 MB / 409.6 MB, free: 3.664 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001073/0.5072, allocations: 439.1 kB / 410.1 MB, free: 3.219 MB / 330.7 MB Notification: Performance of pre-optimization done (n=47): time 3.116e-06/0.5072, allocations: 0 / 410.1 MB, free: 3.219 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.008789/0.516, allocations: 2.532 MB / 412.6 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.5162, allocations: 174.5 kB / 412.8 MB, free: 356 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001502/0.5177, allocations: 0.7701 MB / 413.5 MB, free: 15.56 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001412/0.5179, allocations: 33.7 kB / 413.6 MB, free: 15.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004458/0.5183, allocations: 457.7 kB / 414 MB, free: 15.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000254/0.5186, allocations: 181.5 kB / 414.2 MB, free: 14.89 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.725e-05/0.5187, allocations: 16 kB / 414.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.5189, allocations: 338.8 kB / 414.5 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009991/0.5199, allocations: 345.8 kB / 414.9 MB, free: 14.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.5211, allocations: 0.6398 MB / 415.5 MB, free: 13.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.5223, allocations: 451.6 kB / 416 MB, free: 12.98 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.5224, allocations: 4 kB / 416 MB, free: 12.97 MB / 346.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.003424/0.5258, allocations: 1.178 MB / 417.1 MB, free: 11.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003757/0.5262, allocations: 386.6 kB / 417.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/0.5262, allocations: 11.94 kB / 417.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001584/0.5278, allocations: 353.5 kB / 417.9 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.5291, allocations: 171.7 kB / 418.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002245/0.5313, allocations: 1.452 MB / 419.5 MB, free: 9.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/0.5327, allocations: 48.09 kB / 419.5 MB, free: 9.184 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001399/0.5328, allocations: 40 kB / 419.6 MB, free: 9.145 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.5329, allocations: 4 kB / 419.6 MB, free: 9.141 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00311/0.536, allocations: 1.067 MB / 420.7 MB, free: 8.062 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.477e-05/0.536, allocations: 11.98 kB / 420.7 MB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/0.5371, allocations: 265.9 kB / 420.9 MB, free: 7.785 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.5383, allocations: 171.7 kB / 421.1 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003334/0.5417, allocations: 2.371 MB / 423.5 MB, free: 5.086 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009057/0.5427, allocations: 52.11 kB / 423.5 MB, free: 5.035 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.5428, allocations: 39.98 kB / 423.6 MB, free: 4.996 MB / 346.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: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * 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.0008402/0.5436, allocations: 402.3 kB / 424 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002475/0.5439, allocations: 86.97 kB / 424 MB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00327/0.5472, allocations: 1.017 MB / 425.1 MB, free: 3.461 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/0.5472, allocations: 8 kB / 425.1 MB, free: 3.453 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.5473, allocations: 0 / 425.1 MB, free: 3.453 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.5473, allocations: 3.984 kB / 425.1 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004864/0.5521, allocations: 1.839 MB / 426.9 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/0.5522, allocations: 0 / 426.9 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007756/0.553, allocations: 79.89 kB / 427 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001405/0.5544, allocations: 345.5 kB / 427.3 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/0.5545, allocations: 19.98 kB / 427.3 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002186/0.5567, allocations: 1.444 MB / 428.8 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.5568, allocations: 0 / 428.8 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003974/0.5608, allocations: 1.46 MB / 430.2 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000686/0.5615, allocations: 244 kB / 430.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002282/0.5618, allocations: 16.19 kB / 430.5 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009682/0.5627, allocations: 39.97 kB / 430.5 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002196/0.563, allocations: 48.39 kB / 430.6 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.635e-05/0.5631, allocations: 23.98 kB / 430.6 MB, free: 13.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00112/0.5642, allocations: 0.5263 MB / 431.1 MB, free: 13.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-07/0.5642, allocations: 7.938 kB / 431.1 MB, free: 13.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002513/0.5668, allocations: 0.5896 MB / 431.7 MB, free: 12.61 MB / 362.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: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,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.005823/0.5726, allocations: 2.39 MB / 434.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005088/0.5778, allocations: 1.65 MB / 435.8 MB, free: 8.508 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.5778, allocations: 0 / 435.8 MB, free: 8.508 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001844/0.5797, allocations: 487.5 kB / 436.2 MB, free: 8.023 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002292/0.582, allocations: 271 kB / 436.5 MB, free: 7.754 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008721/0.5908, allocations: 3.003 MB / 439.5 MB, free: 4.578 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001092/0.5919, allocations: 1.021 MB / 440.5 MB, free: 3.527 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001068/0.593, allocations: 299.3 kB / 440.8 MB, free: 3.234 MB / 362.7 MB Notification: Performance of SimCode: time 1.463e-06/0.593, allocations: 3.938 kB / 440.8 MB, free: 3.23 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.175/3.768, allocations: 25.12 MB / 465.9 MB, free: 10.12 MB / 394.7 MB