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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.578/2.578, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.789e-05/2.79e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4098/0.4099, allocations: 54.85 MB / 358.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.192/1.602, allocations: 329.6 MB / 0.6716 GB, free: 114.8 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003724/1.603, allocations: 80.89 kB / 0.6717 GB, free: 114.8 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8466/2.45, allocations: 140.4 MB / 0.8088 GB, free: 112.2 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.565e-06/2.45, allocations: 0.5625 kB / 0.8088 GB, free: 112.2 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001221/2.45, allocations: 20.84 kB / 0.8088 GB, free: 112.2 MB / 474.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.004562/2.454, allocations: 1.182 MB / 0.81 GB, free: 111.7 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.69e-05/2.454, allocations: 13.61 kB / 0.81 GB, free: 111.7 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008076/2.455, allocations: 108 kB / 0.8101 GB, free: 111.6 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002671/2.458, allocations: 0.7075 MB / 0.8108 GB, free: 111.4 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/2.458, allocations: 88.31 kB / 0.8109 GB, free: 111.3 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002059/2.458, allocations: 35.03 kB / 0.8109 GB, free: 111.3 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002554/2.461, allocations: 0.8163 MB / 0.8117 GB, free: 111.3 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002422/2.463, allocations: 0.9249 MB / 0.8126 GB, free: 111.2 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.485e-05/2.463, allocations: 2.656 kB / 0.8126 GB, free: 111.2 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001243/2.464, allocations: 5.188 kB / 0.8126 GB, free: 111.2 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001241/2.464, allocations: 51.73 kB / 0.8126 GB, free: 111.2 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009559/2.473, allocations: 3.876 MB / 0.8164 GB, free: 109.5 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/2.475, allocations: 0.6 MB / 0.817 GB, free: 109.5 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007437/2.475, allocations: 378.9 kB / 0.8174 GB, free: 109.5 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004588/2.48, allocations: 2.338 MB / 0.8197 GB, free: 108 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008329/2.481, allocations: 425.2 kB / 0.8201 GB, free: 108 MB / 474.7 MB Notification: Performance of pre-optimization done (n=47): time 4.599e-06/2.481, allocations: 0 / 0.8201 GB, free: 108 MB / 474.7 MB Notification: Performance of matching and sorting (n=52): time 0.01093/2.492, allocations: 2.381 MB / 0.8224 GB, free: 107.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.049e-05/2.492, allocations: 173.1 kB / 0.8226 GB, free: 107.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009482/2.493, allocations: 0.5476 MB / 0.8231 GB, free: 107.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/2.493, allocations: 29.67 kB / 0.8231 GB, free: 107.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003259/2.493, allocations: 466 kB / 0.8236 GB, free: 106.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/2.494, allocations: 170.5 kB / 0.8237 GB, free: 106.9 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.962e-05/2.494, allocations: 0 / 0.8237 GB, free: 106.9 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.417e-05/2.494, allocations: 347.3 kB / 0.8241 GB, free: 106.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007409/2.495, allocations: 341 kB / 0.8244 GB, free: 106.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009187/2.496, allocations: 0.6117 MB / 0.825 GB, free: 106.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007191/2.503, allocations: 1.047 MB / 0.826 GB, free: 106.2 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.787e-05/2.503, allocations: 3.594 kB / 0.826 GB, free: 106.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.009487/2.512, allocations: 1.707 MB / 0.8277 GB, free: 106.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008668/2.513, allocations: 3.428 MB / 0.831 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.428e-05/2.513, allocations: 10.92 kB / 0.831 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001212/2.514, allocations: 327.9 kB / 0.8313 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/2.516, allocations: 167.4 kB / 0.8315 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003108/2.519, allocations: 1.626 MB / 0.8331 GB, free: 101.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/2.52, allocations: 40.05 kB / 0.8331 GB, free: 101.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001587/2.521, allocations: 47.64 kB / 0.8332 GB, free: 101.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/2.521, allocations: 3.5 kB / 0.8332 GB, free: 101.5 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007721/2.528, allocations: 1.428 MB / 0.8346 GB, free: 101.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-05/2.528, allocations: 9.969 kB / 0.8346 GB, free: 101.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008629/2.529, allocations: 246.3 kB / 0.8348 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/2.53, allocations: 164.8 kB / 0.835 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/2.533, allocations: 2.281 MB / 0.8372 GB, free: 99.65 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009821/2.534, allocations: 33.47 kB / 0.8372 GB, free: 99.65 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/2.534, allocations: 47 kB / 0.8373 GB, free: 99.65 MB / 474.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 () * 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.0003992/2.534, allocations: 174.3 kB / 0.8374 GB, free: 99.51 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00431/2.539, allocations: 1.029 MB / 0.8385 GB, free: 99.41 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001733/2.539, allocations: 76.19 kB / 0.8385 GB, free: 99.38 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004637/2.543, allocations: 1.149 MB / 0.8396 GB, free: 99.29 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/2.543, allocations: 10.89 kB / 0.8397 GB, free: 99.29 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/2.544, allocations: 0 / 0.8397 GB, free: 99.29 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/2.544, allocations: 0 / 0.8397 GB, free: 99.29 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005897/2.549, allocations: 1.879 MB / 0.8415 GB, free: 98.99 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/2.549, allocations: 0 / 0.8415 GB, free: 98.99 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007219/2.55, allocations: 79.61 kB / 0.8416 GB, free: 98.99 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001076/2.551, allocations: 307.9 kB / 0.8419 GB, free: 98.98 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.712e-05/2.551, allocations: 7.844 kB / 0.8419 GB, free: 98.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002962/2.554, allocations: 1.601 MB / 0.8434 GB, free: 97.93 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/2.554, allocations: 0 / 0.8434 GB, free: 97.93 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005227/2.56, allocations: 1.6 MB / 0.845 GB, free: 97.72 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007436/2.56, allocations: 240.8 kB / 0.8452 GB, free: 97.58 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001889/2.561, allocations: 3.844 kB / 0.8452 GB, free: 97.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009104/2.562, allocations: 32.31 kB / 0.8453 GB, free: 97.58 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/2.562, allocations: 60.33 kB / 0.8453 GB, free: 97.58 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.935e-05/2.562, allocations: 25.38 kB / 0.8453 GB, free: 97.58 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007261/2.563, allocations: 418 kB / 0.8457 GB, free: 97.49 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.4e-07/2.563, allocations: 0 / 0.8457 GB, free: 97.49 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003373/2.566, allocations: 0.62 MB / 0.8463 GB, free: 97.39 MB / 474.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) * 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.007568/2.574, allocations: 2.585 MB / 0.8489 GB, free: 96.55 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004045/2.578, allocations: 1.521 MB / 0.8504 GB, free: 96.31 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/2.578, allocations: 0 / 0.8504 GB, free: 96.31 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/2.579, allocations: 464.2 kB / 0.8508 GB, free: 96.24 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002389/2.582, allocations: 265.3 kB / 0.8511 GB, free: 96.24 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006494/2.588, allocations: 1.666 MB / 0.8527 GB, free: 95.76 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006398/2.589, allocations: 1.031 MB / 0.8537 GB, free: 95.05 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007584/2.59, allocations: 300.8 kB / 0.854 GB, free: 95.04 MB / 474.7 MB Notification: Performance of SimCode: time 1.522e-06/2.59, allocations: 0 / 0.854 GB, free: 95.04 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.351/5.941, allocations: 25.29 MB / 0.8787 GB, free: 93.85 MB / 474.7 MB