Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.937/1.937, allocations: 209.2 MB / 224.8 MB, free: 440 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006019/0.0006018, allocations: 8 kB / 282.7 MB, free: 9.531 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3602, allocations: 48.7 MB / 331.4 MB, free: 6.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.928/8.288, allocations: 2.548 GB / 2.871 GB, free: 91.99 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/8.288, allocations: 78.94 kB / 2.871 GB, free: 91.99 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 4.33/12.62, allocations: 0.7811 GB / 3.652 GB, free: 20.91 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.615e-06/12.62, allocations: 0 / 3.652 GB, free: 20.91 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003517/12.62, allocations: 71.22 kB / 3.652 GB, free: 20.9 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01921/12.64, allocations: 4.014 MB / 3.656 GB, free: 18.68 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/12.64, allocations: 11.25 kB / 3.656 GB, free: 18.68 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001453/12.64, allocations: 293.4 kB / 3.657 GB, free: 18.52 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008907/12.65, allocations: 0.8254 MB / 3.657 GB, free: 18.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008378/12.66, allocations: 2.104 MB / 3.66 GB, free: 17.35 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000301/12.66, allocations: 182.9 kB / 3.66 GB, free: 17.28 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009653/12.66, allocations: 198.3 kB / 3.66 GB, free: 17.22 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01203/12.67, allocations: 3.577 MB / 3.663 GB, free: 15.75 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.345e-05/12.67, allocations: 3.406 kB / 3.663 GB, free: 15.75 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003868/12.67, allocations: 92.66 kB / 3.663 GB, free: 15.69 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000308/12.67, allocations: 163.1 kB / 3.664 GB, free: 15.67 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01251/12.68, allocations: 3.282 MB / 3.667 GB, free: 14.7 MB / 458.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.02933/12.71, allocations: 15.03 MB / 3.682 GB, free: 18.73 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008848/12.72, allocations: 2.308 MB / 3.684 GB, free: 16.84 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4457/13.17, allocations: 18.77 MB / 3.702 GB, free: 36.49 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01008/13.18, allocations: 1.631 MB / 3.704 GB, free: 36.4 MB / 474.7 MB Notification: Performance of pre-optimization done (n=153): time 8.325e-06/13.18, allocations: 1.25 kB / 3.704 GB, free: 36.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=169): time 0.04972/13.23, allocations: 8.168 MB / 3.712 GB, free: 35.66 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001623/13.23, allocations: 287.7 kB / 3.712 GB, free: 35.34 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005036/13.23, allocations: 1.41 MB / 3.713 GB, free: 35.18 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006632/13.23, allocations: 59.23 kB / 3.713 GB, free: 35.14 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001403/13.24, allocations: 0.9252 MB / 3.714 GB, free: 34.77 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001394/13.24, allocations: 0.5773 MB / 3.715 GB, free: 34.48 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003435/13.24, allocations: 39.22 kB / 3.715 GB, free: 34.48 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002383/13.24, allocations: 392.4 kB / 3.715 GB, free: 34.17 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005494/13.24, allocations: 1.146 MB / 3.716 GB, free: 34.16 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006072/13.25, allocations: 1.649 MB / 3.718 GB, free: 33.61 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005152/13.25, allocations: 1.372 MB / 3.719 GB, free: 33.56 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-05/13.25, allocations: 3.688 kB / 3.719 GB, free: 33.56 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01284/13.27, allocations: 3.839 MB / 3.723 GB, free: 33.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001193/13.27, allocations: 5.183 MB / 3.728 GB, free: 28.01 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.342e-05/13.27, allocations: 14.03 kB / 3.728 GB, free: 28.01 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02443/13.29, allocations: 2.924 MB / 3.731 GB, free: 27.99 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002264/13.3, allocations: 317.9 kB / 3.731 GB, free: 27.99 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009529/13.3, allocations: 3.494 MB / 3.735 GB, free: 27.41 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004117/13.31, allocations: 255.9 kB / 3.735 GB, free: 27.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006295/13.31, allocations: 106 kB / 3.735 GB, free: 27.41 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/13.31, allocations: 5.094 kB / 3.735 GB, free: 27.41 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01171/13.32, allocations: 3.541 MB / 3.739 GB, free: 27.32 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.175e-05/13.32, allocations: 15.25 kB / 3.739 GB, free: 27.32 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01148/13.33, allocations: 1.719 MB / 3.74 GB, free: 27.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0026/13.34, allocations: 355.1 kB / 3.741 GB, free: 27.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006651/13.34, allocations: 2.747 MB / 3.743 GB, free: 26.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003268/13.35, allocations: 254.4 kB / 3.743 GB, free: 26.74 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005007/13.35, allocations: 99.23 kB / 3.744 GB, free: 26.74 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 22 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 158 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.002479/13.35, allocations: 0.7169 MB / 3.744 GB, free: 26.52 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007237/13.35, allocations: 201.8 kB / 3.744 GB, free: 26.41 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01678/13.37, allocations: 7.769 MB / 3.752 GB, free: 25.73 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001039/13.37, allocations: 94.56 kB / 3.752 GB, free: 25.72 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/13.37, allocations: 0 / 3.752 GB, free: 25.72 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01333/13.38, allocations: 6.67 MB / 3.759 GB, free: 24.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02331/13.4, allocations: 10.92 MB / 3.769 GB, free: 24.14 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.449e-05/13.4, allocations: 0 / 3.769 GB, free: 24.14 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00332/13.41, allocations: 400.5 kB / 3.77 GB, free: 24.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00233/13.41, allocations: 386.6 kB / 3.77 GB, free: 24.11 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005181/13.41, allocations: 64.16 kB / 3.77 GB, free: 24.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001717/13.41, allocations: 2.573 MB / 3.773 GB, free: 22.03 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/13.41, allocations: 0 / 3.773 GB, free: 22.03 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01726/13.43, allocations: 7.221 MB / 3.78 GB, free: 21.39 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002397/13.43, allocations: 0.7429 MB / 3.78 GB, free: 21.06 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000926/13.43, allocations: 56.41 kB / 3.78 GB, free: 21.06 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003278/13.44, allocations: 198.4 kB / 3.781 GB, free: 21.05 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006527/13.44, allocations: 143.3 kB / 3.781 GB, free: 21.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002467/13.44, allocations: 67.31 kB / 3.781 GB, free: 21.05 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002769/13.44, allocations: 1.187 MB / 3.782 GB, free: 20.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.91e-07/13.44, allocations: 2.469 kB / 3.782 GB, free: 20.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01363/13.45, allocations: 2.749 MB / 3.785 GB, free: 20.78 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse27.region3boundary,$cse28.region3boundary,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03173/13.48, allocations: 10.48 MB / 3.795 GB, free: 19.41 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02214/13.51, allocations: 5.319 MB / 3.8 GB, free: 18.24 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.489e-05/13.51, allocations: 0 / 3.8 GB, free: 18.24 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008677/13.52, allocations: 2.419 MB / 3.803 GB, free: 17.22 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01153/13.53, allocations: 0.869 MB / 3.803 GB, free: 17.03 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9473/14.47, allocations: 141.4 MB / 3.941 GB, free: 35.43 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003271/14.48, allocations: 2.255 MB / 3.944 GB, free: 34.65 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003145/14.48, allocations: 1.315 MB / 3.945 GB, free: 34.64 MB / 490.7 MB Notification: Performance of SimCode: time 1.523e-06/14.48, allocations: 0 / 3.945 GB, free: 34.64 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.318/19.8, allocations: 108.4 MB / 4.051 GB, free: 5.602 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat does not exist to compare? outputFormat=mat