Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.362/2.362, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004548/0.0004549, allocations: 16 kB / 314.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.352, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.839/8.191, allocations: 2.652 GB / 3.013 GB, free: 38.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002879/8.191, allocations: 88.64 kB / 3.013 GB, free: 38.05 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.009/12.2, allocations: 0.7424 GB / 3.756 GB, free: 38.65 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.414e-06/12.2, allocations: 3.781 kB / 3.756 GB, free: 38.65 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000134/12.2, allocations: 35.78 kB / 3.756 GB, free: 38.64 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01306/12.21, allocations: 2.91 MB / 3.759 GB, free: 37 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/12.21, allocations: 10.41 kB / 3.759 GB, free: 37 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005318/12.21, allocations: 158.7 kB / 3.759 GB, free: 36.91 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004429/12.22, allocations: 482.5 kB / 3.759 GB, free: 36.79 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003736/12.22, allocations: 1.134 MB / 3.76 GB, free: 36.15 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001762/12.22, allocations: 140.3 kB / 3.76 GB, free: 36.05 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002694/12.22, allocations: 100.6 kB / 3.76 GB, free: 36.02 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005518/12.23, allocations: 1.895 MB / 3.762 GB, free: 35.15 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.768e-05/12.23, allocations: 7.594 kB / 3.762 GB, free: 35.15 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002012/12.23, allocations: 42.61 kB / 3.762 GB, free: 35.12 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001462/12.23, allocations: 80.09 kB / 3.762 GB, free: 35.11 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005917/12.23, allocations: 1.774 MB / 3.764 GB, free: 34.53 MB / 0.4948 GB 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.01579/12.25, allocations: 8.533 MB / 3.773 GB, free: 28.13 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004817/12.26, allocations: 1.406 MB / 3.774 GB, free: 27.47 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6659/12.92, allocations: 63.25 MB / 3.836 GB, free: 50.18 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004688/12.93, allocations: 0.8927 MB / 3.837 GB, free: 50.05 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=82): time 4.839e-06/12.93, allocations: 0 / 3.837 GB, free: 50.05 MB / 0.5105 GB Notification: Performance of matching and sorting (n=86): time 0.01952/12.95, allocations: 4.621 MB / 3.841 GB, free: 48.99 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/12.95, allocations: 406.9 kB / 3.841 GB, free: 48.52 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001946/12.95, allocations: 0.9329 MB / 3.842 GB, free: 48.36 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003043/12.95, allocations: 49.05 kB / 3.842 GB, free: 48.33 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005268/12.95, allocations: 0.5601 MB / 3.843 GB, free: 48.05 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004564/12.95, allocations: 303 kB / 3.843 GB, free: 47.91 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/12.95, allocations: 27.56 kB / 3.843 GB, free: 47.91 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001219/12.95, allocations: 357.5 kB / 3.844 GB, free: 47.59 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/12.95, allocations: 0.5376 MB / 3.844 GB, free: 47.59 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002093/12.95, allocations: 1.009 MB / 3.845 GB, free: 47.04 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00223/12.96, allocations: 0.7027 MB / 3.846 GB, free: 47.03 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.456e-05/12.96, allocations: 4.375 kB / 3.846 GB, free: 47.03 MB / 0.5105 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006432/12.96, allocations: 1.865 MB / 3.848 GB, free: 46.95 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001334/12.96, allocations: 5.404 MB / 3.853 GB, free: 41.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.003e-05/12.96, allocations: 13.12 kB / 3.853 GB, free: 41.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01027/12.97, allocations: 1.104 MB / 3.854 GB, free: 41.31 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002557/12.98, allocations: 257.8 kB / 3.854 GB, free: 41.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004103/12.98, allocations: 1.491 MB / 3.856 GB, free: 40.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002732/12.98, allocations: 133.8 kB / 3.856 GB, free: 40.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004684/12.98, allocations: 70.55 kB / 3.856 GB, free: 40.77 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/12.98, allocations: 4.516 kB / 3.856 GB, free: 40.77 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006999/12.99, allocations: 1.688 MB / 3.858 GB, free: 40.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001114/12.99, allocations: 13.75 kB / 3.858 GB, free: 40.74 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003022/12.99, allocations: 373.6 kB / 3.858 GB, free: 40.73 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002135/13, allocations: 281.7 kB / 3.858 GB, free: 40.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002159/13, allocations: 1.054 MB / 3.859 GB, free: 40.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002058/13, allocations: 126.1 kB / 3.859 GB, free: 40.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003704/13, allocations: 67.61 kB / 3.859 GB, free: 40.2 MB / 0.5105 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.001572/13, allocations: 471.5 kB / 3.86 GB, free: 40.01 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004794/13, allocations: 130.2 kB / 3.86 GB, free: 39.95 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009322/13.01, allocations: 4.064 MB / 3.864 GB, free: 39.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-05/13.01, allocations: 47.5 kB / 3.864 GB, free: 39.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/13.01, allocations: 0 / 3.864 GB, free: 39.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-05/13.01, allocations: 6.766 kB / 3.864 GB, free: 39.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01204/13.02, allocations: 5.543 MB / 3.869 GB, free: 39.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.01e-05/13.02, allocations: 0 / 3.869 GB, free: 39.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/13.03, allocations: 176.1 kB / 3.87 GB, free: 39.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01071/13.04, allocations: 1.538 MB / 3.871 GB, free: 38.96 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002894/13.04, allocations: 32.39 kB / 3.871 GB, free: 38.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002393/13.04, allocations: 2.089 MB / 3.873 GB, free: 37.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/13.04, allocations: 3.344 kB / 3.873 GB, free: 37.89 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00892/13.05, allocations: 3.994 MB / 3.877 GB, free: 37.32 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001623/13.05, allocations: 0.5265 MB / 3.878 GB, free: 37.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006524/13.05, allocations: 25.52 kB / 3.878 GB, free: 37.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002289/13.05, allocations: 99.36 kB / 3.878 GB, free: 37.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003929/13.05, allocations: 78.7 kB / 3.878 GB, free: 37.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001561/13.05, allocations: 39.25 kB / 3.878 GB, free: 37.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002605/13.06, allocations: 1.057 MB / 3.879 GB, free: 36.99 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.82e-07/13.06, allocations: 0 / 3.879 GB, free: 36.99 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01144/13.07, allocations: 2.056 MB / 3.881 GB, free: 36.89 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 1 * 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 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.02257/13.09, allocations: 6.79 MB / 3.887 GB, free: 35.19 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008582/13.1, allocations: 2.469 MB / 3.89 GB, free: 35.14 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.191e-05/13.1, allocations: 0 / 3.89 GB, free: 35.14 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00286/13.1, allocations: 1.049 MB / 3.891 GB, free: 35.13 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005866/13.11, allocations: 0.618 MB / 3.892 GB, free: 35.12 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01852/13.13, allocations: 15.48 MB / 3.907 GB, free: 23.11 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/13.13, allocations: 1.472 MB / 3.908 GB, free: 22.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001425/13.13, allocations: 0.7202 MB / 3.909 GB, free: 22.39 MB / 0.5105 GB Notification: Performance of SimCode: time 1.001e-06/13.13, allocations: 0 / 3.909 GB, free: 22.39 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.45/17.58, allocations: 65.42 MB / 3.973 GB, free: 17.41 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat does not exist to compare? outputFormat=mat