Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.947/1.947, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006815/0.0006817, allocations: 16 kB / 282.7 MB, free: 9.527 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3478, allocations: 48.69 MB / 331.4 MB, free: 6.543 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.382/7.73, allocations: 2.486 GB / 2.81 GB, free: 36.13 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003125/7.731, allocations: 86.52 kB / 2.81 GB, free: 36.09 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775/10.51, allocations: 0.538 GB / 3.348 GB, free: 10.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.655e-06/10.51, allocations: 0 / 3.348 GB, free: 10.98 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.279e-05/10.51, allocations: 30.11 kB / 3.348 GB, free: 10.96 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.009164/10.52, allocations: 2.074 MB / 3.35 GB, free: 8.879 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/10.52, allocations: 8.031 kB / 3.35 GB, free: 8.871 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003469/10.52, allocations: 153.9 kB / 3.35 GB, free: 8.715 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003134/10.52, allocations: 313.7 kB / 3.35 GB, free: 8.41 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001793/10.52, allocations: 0.6904 MB / 3.351 GB, free: 7.691 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002272/10.52, allocations: 308.2 kB / 3.351 GB, free: 7.344 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001942/10.52, allocations: 83.91 kB / 3.351 GB, free: 7.262 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005053/10.53, allocations: 1.501 MB / 3.353 GB, free: 5.676 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.654e-05/10.53, allocations: 0.6875 kB / 3.353 GB, free: 5.676 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001702/10.53, allocations: 42.72 kB / 3.353 GB, free: 5.637 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.969e-05/10.53, allocations: 45.02 kB / 3.353 GB, free: 5.594 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005468/10.53, allocations: 1.366 MB / 3.354 GB, free: 4.23 MB / 442.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.01348/10.55, allocations: 6.368 MB / 3.36 GB, free: 13.44 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004992/10.55, allocations: 0.9794 MB / 3.361 GB, free: 12.45 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4179/10.97, allocations: 18.54 MB / 3.379 GB, free: 45.38 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.55e-05/10.97, allocations: 42.22 kB / 3.379 GB, free: 45.34 MB / 458.7 MB Notification: Performance of pre-optimization done (n=59): time 2.996e-06/10.97, allocations: 1.031 kB / 3.379 GB, free: 45.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=64): time 0.01454/10.98, allocations: 2.985 MB / 3.382 GB, free: 44.9 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.615e-05/10.98, allocations: 163.6 kB / 3.382 GB, free: 44.71 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001411/10.99, allocations: 0.7022 MB / 3.383 GB, free: 44.59 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002241/10.99, allocations: 47.77 kB / 3.383 GB, free: 44.56 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003803/10.99, allocations: 475.3 kB / 3.384 GB, free: 44.3 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002827/10.99, allocations: 216.2 kB / 3.384 GB, free: 44.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.678e-05/10.99, allocations: 18.31 kB / 3.384 GB, free: 44.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.676e-05/10.99, allocations: 353.4 kB / 3.384 GB, free: 43.89 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001654/10.99, allocations: 450.5 kB / 3.385 GB, free: 43.89 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001847/10.99, allocations: 0.7167 MB / 3.385 GB, free: 43.57 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/10.99, allocations: 488.6 kB / 3.386 GB, free: 43.56 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.415e-06/10.99, allocations: 3.5 kB / 3.386 GB, free: 43.56 MB / 458.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004457/11, allocations: 1.228 MB / 3.387 GB, free: 43.49 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/11, allocations: 8.375 kB / 3.387 GB, free: 43.49 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/11, allocations: 7.406 kB / 3.387 GB, free: 43.49 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005682/11, allocations: 101.5 kB / 3.387 GB, free: 43.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007234/11, allocations: 423.7 kB / 3.388 GB, free: 43.48 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009035/11.01, allocations: 6.468 MB / 3.394 GB, free: 37.69 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002121/11.02, allocations: 146.1 kB / 3.394 GB, free: 37.69 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001511/11.02, allocations: 46.14 kB / 3.394 GB, free: 37.69 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 21 (tank.heatTransfer.states[1].phase,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[4],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],$PRE.tank.aboveLevel[2],tank.aboveLevel[2],$PRE.tank.aboveLevel[3],tank.aboveLevel[3],$PRE.tank.aboveLevel[4],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase,Boundary_fixed.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008705/11.02, allocations: 342 kB / 3.394 GB, free: 37.57 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002822/11.02, allocations: 87.66 kB / 3.394 GB, free: 37.53 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005426/11.02, allocations: 2.201 MB / 3.397 GB, free: 37.31 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-05/11.02, allocations: 19.42 kB / 3.397 GB, free: 37.31 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/11.02, allocations: 5.234 kB / 3.397 GB, free: 37.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.66e-05/11.02, allocations: 13.23 kB / 3.397 GB, free: 37.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008673/11.03, allocations: 3.427 MB / 3.4 GB, free: 36.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.316e-05/11.03, allocations: 0 / 3.4 GB, free: 36.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00869/11.04, allocations: 367.1 kB / 3.4 GB, free: 36.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000767/11.04, allocations: 107.3 kB / 3.4 GB, free: 36.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002226/11.04, allocations: 14.47 kB / 3.4 GB, free: 36.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0115/11.05, allocations: 6.451 MB / 3.407 GB, free: 31.11 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/11.05, allocations: 0 / 3.407 GB, free: 31.11 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007583/11.06, allocations: 2.238 MB / 3.409 GB, free: 30.66 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009284/11.06, allocations: 310.1 kB / 3.409 GB, free: 30.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004529/11.06, allocations: 28.72 kB / 3.409 GB, free: 30.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002141/11.06, allocations: 121.2 kB / 3.409 GB, free: 30.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005467/11.06, allocations: 125.3 kB / 3.409 GB, free: 30.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/11.06, allocations: 31.97 kB / 3.409 GB, free: 30.49 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001995/11.07, allocations: 0.7783 MB / 3.41 GB, free: 30.38 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.31e-07/11.07, allocations: 1.875 kB / 3.41 GB, free: 30.38 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00853/11.07, allocations: 1.293 MB / 3.412 GB, free: 30.38 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 20 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,tank.heatTransfer.states[1].phase,tank.ports_m_flow_out[1],tank.ports_m_flow_out[2],tank.ports_m_flow_out[3],tank.ports_m_flow_out[4],tank.aboveLevel[1],tank.aboveLevel[2],tank.aboveLevel[3],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],tank.aboveLevel[2],tank.ports_m_flow_out[2],tank.aboveLevel[3],tank.ports_m_flow_out[3],tank.aboveLevel[4],tank.ports_m_flow_out[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.02134/11.1, allocations: 4.897 MB / 3.416 GB, free: 28.97 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01106/11.11, allocations: 1.323 MB / 3.418 GB, free: 28.96 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.611e-05/11.11, allocations: 6.281 kB / 3.418 GB, free: 28.96 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007683/11.11, allocations: 0.9053 MB / 3.418 GB, free: 28.95 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004704/11.12, allocations: 0.5048 MB / 3.419 GB, free: 28.94 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0237/11.14, allocations: 12.91 MB / 3.432 GB, free: 21.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008088/11.14, allocations: 1.225 MB / 3.433 GB, free: 20.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001061/11.15, allocations: 478.8 kB / 3.433 GB, free: 20.59 MB / 458.7 MB Notification: Performance of SimCode: time 2.214e-06/11.15, allocations: 0 / 3.433 GB, free: 20.59 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.31/15.46, allocations: 68.56 MB / 3.5 GB, free: 16.95 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat