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.37/2.37, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006103/0.0006105, allocations: 12 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3995/0.4001, allocations: 54.87 MB / 369.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.335/1.736, allocations: 330.3 MB / 0.6833 GB, free: 127.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000357/1.736, allocations: 86.86 kB / 0.6834 GB, free: 127.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.527/2.263, allocations: 142 MB / 0.8221 GB, free: 17.17 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.775e-06/2.263, allocations: 4 kB / 0.8221 GB, free: 17.17 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001082/2.263, allocations: 23.98 kB / 0.8221 GB, free: 17.14 MB / 490.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.004757/2.268, allocations: 1.291 MB / 0.8234 GB, free: 15.79 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/2.268, allocations: 8.031 kB / 0.8234 GB, free: 15.79 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005389/2.269, allocations: 106.5 kB / 0.8235 GB, free: 15.67 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006802/2.269, allocations: 106.9 kB / 0.8236 GB, free: 15.57 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00252/2.272, allocations: 0.7218 MB / 0.8243 GB, free: 14.8 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001607/2.272, allocations: 104.7 kB / 0.8244 GB, free: 14.69 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000293/2.272, allocations: 56 kB / 0.8244 GB, free: 14.64 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002813/2.275, allocations: 1.011 MB / 0.8254 GB, free: 13.58 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.899e-05/2.275, allocations: 3.938 kB / 0.8254 GB, free: 13.57 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001587/2.275, allocations: 24 kB / 0.8255 GB, free: 13.55 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/2.276, allocations: 53.28 kB / 0.8255 GB, free: 13.5 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002631/2.278, allocations: 0.9028 MB / 0.8264 GB, free: 12.59 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/2.289, allocations: 4.014 MB / 0.8303 GB, free: 8.387 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001669/2.29, allocations: 0.6253 MB / 0.8309 GB, free: 7.75 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004841/2.295, allocations: 2.319 MB / 0.8332 GB, free: 5.184 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00105/2.296, allocations: 447.1 kB / 0.8336 GB, free: 4.727 MB / 490.7 MB Notification: Performance of pre-optimization done (n=47): time 4.288e-06/2.296, allocations: 4 kB / 0.8336 GB, free: 4.723 MB / 490.7 MB Notification: Performance of matching and sorting (n=52): time 0.008766/2.305, allocations: 2.594 MB / 0.8361 GB, free: 1.992 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/2.305, allocations: 166.5 kB / 0.8363 GB, free: 1.793 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001345/2.307, allocations: 0.6912 MB / 0.837 GB, free: 1.098 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001983/2.307, allocations: 33.7 kB / 0.837 GB, free: 1.059 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000336/2.307, allocations: 457.7 kB / 0.8374 GB, free: 0.6055 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002681/2.308, allocations: 173.5 kB / 0.8376 GB, free: 444 kB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.829e-05/2.308, allocations: 16 kB / 0.8376 GB, free: 428 kB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.435e-05/2.308, allocations: 342.8 kB / 0.838 GB, free: 76 kB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3819/2.69, allocations: 356.3 kB / 0.8383 GB, free: 120.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001733/2.691, allocations: 0.637 MB / 0.8389 GB, free: 119.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001505/2.693, allocations: 460.4 kB / 0.8394 GB, free: 119.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.326e-05/2.693, allocations: 2.75 kB / 0.8394 GB, free: 119.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004097/2.697, allocations: 1.193 MB / 0.8405 GB, free: 119.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000973/2.698, allocations: 3.431 MB / 0.8439 GB, free: 116.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.281e-05/2.698, allocations: 12.25 kB / 0.8439 GB, free: 116.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001753/2.7, allocations: 342.2 kB / 0.8442 GB, free: 116.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/2.701, allocations: 158.5 kB / 0.8444 GB, free: 116.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002272/2.704, allocations: 1.437 MB / 0.8458 GB, free: 115.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001575/2.705, allocations: 50.55 kB / 0.8458 GB, free: 115.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003049/2.706, allocations: 44.62 kB / 0.8459 GB, free: 115.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/2.706, allocations: 4.438 kB / 0.8459 GB, free: 115.2 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003833/2.71, allocations: 1.084 MB / 0.8469 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-05/2.71, allocations: 13.58 kB / 0.8469 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/2.711, allocations: 249.7 kB / 0.8472 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/2.712, allocations: 162.3 kB / 0.8473 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003082/2.715, allocations: 2.347 MB / 0.8496 GB, free: 113.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001115/2.717, allocations: 58.34 kB / 0.8497 GB, free: 113.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001515/2.717, allocations: 42.47 kB / 0.8497 GB, free: 113.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (89): * Single equations (assignments): 86 * 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.001083/2.718, allocations: 398.2 kB / 0.8501 GB, free: 113.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000328/2.718, allocations: 85.84 kB / 0.8502 GB, free: 113.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003902/2.722, allocations: 1.047 MB / 0.8512 GB, free: 113 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/2.722, allocations: 3.844 kB / 0.8512 GB, free: 113 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/2.722, allocations: 3.219 kB / 0.8512 GB, free: 113 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.528e-05/2.722, allocations: 0 / 0.8512 GB, free: 113 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004931/2.727, allocations: 1.86 MB / 0.853 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/2.727, allocations: 3.562 kB / 0.853 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007309/2.728, allocations: 79.42 kB / 0.8531 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/2.729, allocations: 335.4 kB / 0.8534 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000154/2.73, allocations: 22.3 kB / 0.8534 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001701/2.731, allocations: 1.429 MB / 0.8548 GB, free: 111.6 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/2.731, allocations: 0 / 0.8548 GB, free: 111.6 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003711/2.735, allocations: 1.507 MB / 0.8563 GB, free: 111.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000693/2.736, allocations: 250.3 kB / 0.8565 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002106/2.736, allocations: 13.53 kB / 0.8566 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009256/2.737, allocations: 41.66 kB / 0.8566 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/2.737, allocations: 52.59 kB / 0.8566 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.671e-05/2.737, allocations: 31.19 kB / 0.8567 GB, free: 111.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0009973/2.738, allocations: 0.5257 MB / 0.8572 GB, free: 111.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.61e-07/2.738, allocations: 0 / 0.8572 GB, free: 111.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003164/2.741, allocations: 0.6575 MB / 0.8578 GB, free: 111.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * 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.006449/2.748, allocations: 2.519 MB / 0.8603 GB, free: 110.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004657/2.753, allocations: 1.612 MB / 0.8619 GB, free: 110.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.216e-06/2.753, allocations: 3.531 kB / 0.8619 GB, free: 110.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001496/2.754, allocations: 485.3 kB / 0.8623 GB, free: 110 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002184/2.756, allocations: 271.2 kB / 0.8626 GB, free: 110 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008361/2.765, allocations: 8.762 MB / 0.8711 GB, free: 103 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006147/2.766, allocations: 1.028 MB / 0.8722 GB, free: 102.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007485/2.766, allocations: 305.5 kB / 0.8724 GB, free: 102.2 MB / 490.7 MB Notification: Performance of SimCode: time 9.42e-07/2.766, allocations: 0 / 0.8724 GB, free: 102.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.302/6.068, allocations: 25.52 MB / 0.8974 GB, free: 101.3 MB / 490.7 MB