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.532/2.532, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.366e-05/3.378e-05, allocations: 4 kB / 309.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4378/0.4378, allocations: 54.85 MB / 364.6 MB, free: 5.426 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.216/8.654, allocations: 2.597 GB / 2.953 GB, free: 111.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003104/8.654, allocations: 82.09 kB / 2.953 GB, free: 111.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.57/11.22, allocations: 0.5503 GB / 3.503 GB, free: 5.328 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.655e-06/11.22, allocations: 0 / 3.503 GB, free: 5.328 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.94e-05/11.22, allocations: 27.5 kB / 3.503 GB, free: 5.305 MB / 0.4948 GB 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.01055/11.24, allocations: 2.039 MB / 3.505 GB, free: 3.227 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.69e-05/11.24, allocations: 8.031 kB / 3.505 GB, free: 3.219 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000568/11.24, allocations: 139.2 kB / 3.505 GB, free: 3.074 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003648/11.24, allocations: 320.6 kB / 3.506 GB, free: 2.762 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002605/11.24, allocations: 0.695 MB / 3.506 GB, free: 2.039 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003551/11.24, allocations: 307.9 kB / 3.506 GB, free: 1.688 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003377/11.24, allocations: 84 kB / 3.507 GB, free: 1.605 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005538/11.25, allocations: 1.469 MB / 3.508 GB, free: 56 kB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.174e-05/11.25, allocations: 4 kB / 3.508 GB, free: 52 kB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002158/11.25, allocations: 40 kB / 3.508 GB, free: 12 kB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.4119/11.66, allocations: 36.28 kB / 3.508 GB, free: 52.05 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005761/11.67, allocations: 1.265 MB / 3.509 GB, free: 52.04 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.0146/11.68, allocations: 6.369 MB / 3.516 GB, free: 48.05 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003832/11.68, allocations: 0.8848 MB / 3.516 GB, free: 48 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/11.69, allocations: 374.5 kB / 3.517 GB, free: 47.98 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06225/11.75, allocations: 18.69 MB / 3.535 GB, free: 36.45 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.025e-05/11.75, allocations: 38.59 kB / 3.535 GB, free: 36.41 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=59): time 3.166e-06/11.75, allocations: 0 / 3.535 GB, free: 36.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=64): time 0.009663/11.76, allocations: 2.48 MB / 3.537 GB, free: 35.89 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.173e-05/11.76, allocations: 164.2 kB / 3.538 GB, free: 35.71 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001236/11.76, allocations: 0.697 MB / 3.538 GB, free: 35.57 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000184/11.76, allocations: 50.69 kB / 3.538 GB, free: 35.54 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003619/11.76, allocations: 464.3 kB / 3.539 GB, free: 35.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002651/11.76, allocations: 220.9 kB / 3.539 GB, free: 35.19 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.614e-05/11.76, allocations: 18.44 kB / 3.539 GB, free: 35.19 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.952e-05/11.76, allocations: 353.2 kB / 3.539 GB, free: 34.88 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009655/11.76, allocations: 384.4 kB / 3.54 GB, free: 34.88 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/11.76, allocations: 0.6455 MB / 3.54 GB, free: 34.56 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/11.76, allocations: 430.2 kB / 3.541 GB, free: 34.55 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/11.76, allocations: 0 / 3.541 GB, free: 34.55 MB / 0.4948 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002941/11.77, allocations: 1.102 MB / 3.542 GB, free: 34.47 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.898e-05/11.77, allocations: 12.41 kB / 3.542 GB, free: 34.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/11.77, allocations: 10.75 kB / 3.542 GB, free: 34.47 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005331/11.77, allocations: 90.66 kB / 3.542 GB, free: 34.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007315/11.77, allocations: 425.1 kB / 3.542 GB, free: 34.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008064/11.78, allocations: 6.408 MB / 3.549 GB, free: 28.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00214/11.78, allocations: 144 kB / 3.549 GB, free: 28.67 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/11.79, allocations: 44.33 kB / 3.549 GB, free: 28.67 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 () * 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.0003693/11.79, allocations: 184 kB / 3.549 GB, free: 28.56 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000239/11.79, allocations: 86.16 kB / 3.549 GB, free: 28.52 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003833/11.79, allocations: 2.086 MB / 3.551 GB, free: 28.29 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.023e-05/11.79, allocations: 21.38 kB / 3.551 GB, free: 28.29 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/11.79, allocations: 0 / 3.551 GB, free: 28.29 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/11.79, allocations: 3.328 kB / 3.551 GB, free: 28.29 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006944/11.8, allocations: 3.306 MB / 3.554 GB, free: 27.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/11.8, allocations: 5.531 kB / 3.554 GB, free: 27.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006953/11.8, allocations: 372.5 kB / 3.555 GB, free: 27.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005617/11.8, allocations: 96.75 kB / 3.555 GB, free: 27.88 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001634/11.8, allocations: 20.88 kB / 3.555 GB, free: 27.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007906/11.81, allocations: 6.388 MB / 3.561 GB, free: 22.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/11.81, allocations: 3.281 kB / 3.561 GB, free: 22.09 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004085/11.82, allocations: 2.044 MB / 3.563 GB, free: 21.64 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007316/11.82, allocations: 311.3 kB / 3.563 GB, free: 21.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003136/11.82, allocations: 30.34 kB / 3.563 GB, free: 21.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001564/11.82, allocations: 110.4 kB / 3.563 GB, free: 21.48 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004298/11.82, allocations: 136.1 kB / 3.564 GB, free: 21.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-05/11.82, allocations: 25.58 kB / 3.564 GB, free: 21.48 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001467/11.82, allocations: 0.7704 MB / 3.564 GB, free: 21.36 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.31e-07/11.82, allocations: 0 / 3.564 GB, free: 21.36 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006988/11.83, allocations: 1.294 MB / 3.566 GB, free: 21.36 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]) * 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.01513/11.84, allocations: 4.718 MB / 3.57 GB, free: 19.94 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007285/11.85, allocations: 1.189 MB / 3.571 GB, free: 19.92 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/11.85, allocations: 0 / 3.571 GB, free: 19.92 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005989/11.86, allocations: 0.8425 MB / 3.572 GB, free: 19.92 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004511/11.86, allocations: 0.5038 MB / 3.573 GB, free: 19.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009318/11.87, allocations: 2.559 MB / 3.575 GB, free: 19.33 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008135/11.87, allocations: 1.223 MB / 3.576 GB, free: 18.62 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009775/11.87, allocations: 474 kB / 3.577 GB, free: 18.61 MB / 0.4948 GB Notification: Performance of SimCode: time 1.343e-06/11.87, allocations: 0 / 3.577 GB, free: 18.61 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.472/16.34, allocations: 69.12 MB / 3.644 GB, free: 14.82 MB / 0.4948 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