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.TestTankWithTopPorts.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.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.314/2.314, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006212/0.0006211, allocations: 16 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.426/0.4267, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.166/8.593, allocations: 2.597 GB / 2.957 GB, free: 99.86 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003077/8.593, allocations: 91.44 kB / 2.957 GB, free: 99.8 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.041/11.63, allocations: 0.5519 GB / 3.509 GB, free: 44.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.204e-06/11.63, allocations: 0 / 3.509 GB, free: 44.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.471e-05/11.63, allocations: 27.02 kB / 3.509 GB, free: 44.3 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.009642/11.64, allocations: 2.129 MB / 3.511 GB, free: 43.28 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/11.64, allocations: 7.5 kB / 3.511 GB, free: 43.28 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004713/11.64, allocations: 145.9 kB / 3.512 GB, free: 43.24 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003408/11.65, allocations: 320.1 kB / 3.512 GB, free: 43.19 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/11.65, allocations: 0.6958 MB / 3.513 GB, free: 42.92 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002534/11.65, allocations: 299.1 kB / 3.513 GB, free: 42.66 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002159/11.65, allocations: 89.67 kB / 3.513 GB, free: 42.66 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005094/11.66, allocations: 1.507 MB / 3.514 GB, free: 42.39 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.942e-05/11.66, allocations: 2.625 kB / 3.514 GB, free: 42.39 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001773/11.66, allocations: 36.88 kB / 3.514 GB, free: 42.39 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.676e-05/11.66, allocations: 37.52 kB / 3.514 GB, free: 42.39 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005263/11.66, allocations: 1.366 MB / 3.516 GB, free: 42.39 MB / 490.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.01248/11.67, allocations: 6.369 MB / 3.522 GB, free: 38.32 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004566/11.68, allocations: 0.9781 MB / 3.523 GB, free: 38.27 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05547/11.73, allocations: 18.65 MB / 3.541 GB, free: 26.46 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/11.73, allocations: 42.34 kB / 3.541 GB, free: 26.42 MB / 490.7 MB Notification: Performance of pre-optimization done (n=59): time 4.107e-06/11.73, allocations: 0 / 3.541 GB, free: 26.42 MB / 490.7 MB Notification: Performance of matching and sorting (n=64): time 0.01303/11.75, allocations: 2.992 MB / 3.544 GB, free: 25.84 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.81e-05/11.75, allocations: 163.6 kB / 3.544 GB, free: 25.65 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001265/11.75, allocations: 0.6985 MB / 3.545 GB, free: 25.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001819/11.75, allocations: 51.27 kB / 3.545 GB, free: 25.48 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003519/11.75, allocations: 475 kB / 3.545 GB, free: 25.19 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002675/11.75, allocations: 213.8 kB / 3.546 GB, free: 25.07 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-05/11.75, allocations: 18.59 kB / 3.546 GB, free: 25.07 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.649e-05/11.75, allocations: 352.9 kB / 3.546 GB, free: 24.75 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001609/11.75, allocations: 451.4 kB / 3.546 GB, free: 24.75 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001745/11.75, allocations: 0.7193 MB / 3.547 GB, free: 24.41 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001591/11.75, allocations: 484.9 kB / 3.548 GB, free: 24.39 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/11.75, allocations: 0 / 3.548 GB, free: 24.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004049/11.76, allocations: 1.24 MB / 3.549 GB, free: 24.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/11.76, allocations: 7 kB / 3.549 GB, free: 24.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/11.76, allocations: 6.469 kB / 3.549 GB, free: 24.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005264/11.76, allocations: 99.75 kB / 3.549 GB, free: 24.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007211/11.77, allocations: 422 kB / 3.549 GB, free: 24.29 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009838/11.78, allocations: 6.473 MB / 3.556 GB, free: 34.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002088/11.78, allocations: 143.3 kB / 3.556 GB, free: 34.46 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001374/11.78, allocations: 44.55 kB / 3.556 GB, free: 34.46 MB / 0.4948 GB 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.0008907/11.78, allocations: 351.5 kB / 3.556 GB, free: 34.33 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000256/11.78, allocations: 83.16 kB / 3.556 GB, free: 34.29 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005112/11.79, allocations: 2.2 MB / 3.558 GB, free: 34 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.052e-05/11.79, allocations: 17.27 kB / 3.558 GB, free: 34 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/11.79, allocations: 0 / 3.558 GB, free: 34 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/11.79, allocations: 7.234 kB / 3.558 GB, free: 34 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008198/11.79, allocations: 3.433 MB / 3.562 GB, free: 33.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/11.79, allocations: 3.812 kB / 3.562 GB, free: 33.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006887/11.8, allocations: 369.2 kB / 3.562 GB, free: 33.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005654/11.8, allocations: 103.7 kB / 3.562 GB, free: 33.53 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000179/11.8, allocations: 22.69 kB / 3.562 GB, free: 33.53 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00958/11.81, allocations: 6.453 MB / 3.569 GB, free: 27.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/11.81, allocations: 2.438 kB / 3.569 GB, free: 27.68 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005679/11.82, allocations: 2.228 MB / 3.571 GB, free: 27.22 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007087/11.82, allocations: 314.8 kB / 3.571 GB, free: 27.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003276/11.82, allocations: 28.56 kB / 3.571 GB, free: 27.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001558/11.82, allocations: 116.1 kB / 3.571 GB, free: 27.02 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004381/11.82, allocations: 134.8 kB / 3.571 GB, free: 27.01 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.474e-05/11.82, allocations: 30.02 kB / 3.571 GB, free: 27.01 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001539/11.82, allocations: 0.7779 MB / 3.572 GB, free: 26.85 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.31e-07/11.82, allocations: 0 / 3.572 GB, free: 26.85 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006963/11.83, allocations: 1.295 MB / 3.573 GB, free: 26.6 MB / 0.4948 GB 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.01895/11.85, allocations: 4.915 MB / 3.578 GB, free: 24.24 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008546/11.86, allocations: 1.323 MB / 3.579 GB, free: 23.87 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.868e-06/11.86, allocations: 4.531 kB / 3.579 GB, free: 23.87 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006644/11.86, allocations: 0.9086 MB / 3.58 GB, free: 23.59 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004609/11.87, allocations: 0.5102 MB / 3.581 GB, free: 23.46 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02374/11.89, allocations: 12.91 MB / 3.593 GB, free: 13.46 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009837/11.89, allocations: 1.226 MB / 3.595 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001031/11.89, allocations: 471.4 kB / 3.595 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of SimCode: time 1.623e-06/11.89, allocations: 0 / 3.595 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.955/16.85, allocations: 69.24 MB / 3.663 GB, free: 72.47 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat