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.SeriesPipes13.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.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.974/1.974, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005196/0.0005196, allocations: 16 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.3635, allocations: 48.7 MB / 331.4 MB, free: 6.418 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.706/8.07, allocations: 2.548 GB / 2.871 GB, free: 94.08 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002415/8.07, allocations: 79.31 kB / 2.871 GB, free: 94.08 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.855/12.92, allocations: 0.8422 GB / 3.713 GB, free: 28.27 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.895e-06/12.92, allocations: 0 / 3.713 GB, free: 28.27 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003982/12.93, allocations: 65.64 kB / 3.714 GB, free: 28.27 MB / 474.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.02264/12.95, allocations: 4.021 MB / 3.717 GB, free: 26.58 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.005e-05/12.95, allocations: 10.12 kB / 3.717 GB, free: 26.58 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001819/12.95, allocations: 291.5 kB / 3.718 GB, free: 26.53 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009674/12.96, allocations: 0.8168 MB / 3.719 GB, free: 26.4 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009726/12.97, allocations: 2.11 MB / 3.721 GB, free: 25.95 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004941/12.97, allocations: 178.5 kB / 3.721 GB, free: 25.95 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001425/12.97, allocations: 197.2 kB / 3.721 GB, free: 25.95 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01755/12.99, allocations: 3.579 MB / 3.724 GB, free: 25.42 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001416/12.99, allocations: 6.188 kB / 3.724 GB, free: 25.42 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009643/12.99, allocations: 89.11 kB / 3.725 GB, free: 25.42 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000488/12.99, allocations: 168.2 kB / 3.725 GB, free: 25.41 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02001/13.01, allocations: 3.285 MB / 3.728 GB, free: 25.4 MB / 474.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.06609/13.08, allocations: 15.02 MB / 3.743 GB, free: 16.41 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008991/13.09, allocations: 2.309 MB / 3.745 GB, free: 16.37 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05843/13.14, allocations: 18.78 MB / 3.763 GB, free: 20.63 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006958/13.15, allocations: 1.629 MB / 3.765 GB, free: 20.54 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 8.426e-06/13.15, allocations: 0 / 3.765 GB, free: 20.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.03354/13.19, allocations: 8.189 MB / 3.773 GB, free: 19.52 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002025/13.19, allocations: 279.3 kB / 3.773 GB, free: 19.21 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003208/13.19, allocations: 1.41 MB / 3.774 GB, free: 19.03 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006561/13.19, allocations: 55.92 kB / 3.774 GB, free: 19 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00107/13.19, allocations: 0.9259 MB / 3.775 GB, free: 18.53 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001104/13.19, allocations: 0.5791 MB / 3.776 GB, free: 18.16 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000263/13.19, allocations: 45.03 kB / 3.776 GB, free: 18.16 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002708/13.19, allocations: 397.8 kB / 3.776 GB, free: 17.84 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003773/13.2, allocations: 1.141 MB / 3.777 GB, free: 17.84 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004313/13.2, allocations: 1.648 MB / 3.779 GB, free: 17.28 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004359/13.2, allocations: 1.378 MB / 3.78 GB, free: 17.23 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.247e-05/13.2, allocations: 5.906 kB / 3.78 GB, free: 17.23 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01249/13.22, allocations: 3.83 MB / 3.784 GB, free: 17.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002466/13.22, allocations: 5.174 MB / 3.789 GB, free: 11.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-05/13.22, allocations: 14.03 kB / 3.789 GB, free: 11.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02545/13.25, allocations: 2.92 MB / 3.792 GB, free: 11.67 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002269/13.25, allocations: 316.8 kB / 3.792 GB, free: 11.67 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009833/13.26, allocations: 3.5 MB / 3.796 GB, free: 11.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004175/13.26, allocations: 260.1 kB / 3.796 GB, free: 11.08 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005467/13.26, allocations: 105.2 kB / 3.796 GB, free: 11.08 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/13.26, allocations: 6.5 kB / 3.796 GB, free: 11.08 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01123/13.27, allocations: 3.534 MB / 3.8 GB, free: 11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.481e-05/13.27, allocations: 13.69 kB / 3.8 GB, free: 11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01124/13.28, allocations: 1.724 MB / 3.801 GB, free: 10.97 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00266/13.29, allocations: 353.1 kB / 3.802 GB, free: 10.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006836/13.29, allocations: 2.748 MB / 3.804 GB, free: 10.42 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003161/13.3, allocations: 256.7 kB / 3.805 GB, free: 10.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00043/13.3, allocations: 103.4 kB / 3.805 GB, free: 10.4 MB / 490.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.002393/13.3, allocations: 0.7238 MB / 3.805 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007519/13.3, allocations: 200.1 kB / 3.806 GB, free: 10.06 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01762/13.32, allocations: 7.778 MB / 3.813 GB, free: 9.305 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.996e-05/13.32, allocations: 91.62 kB / 3.813 GB, free: 9.305 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/13.32, allocations: 2.438 kB / 3.813 GB, free: 9.305 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01384/13.33, allocations: 6.673 MB / 3.82 GB, free: 8.48 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0237/13.36, allocations: 10.91 MB / 3.83 GB, free: 7.723 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-05/13.36, allocations: 0.9062 kB / 3.83 GB, free: 7.723 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003372/13.36, allocations: 398 kB / 3.831 GB, free: 7.723 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002374/13.36, allocations: 379.5 kB / 3.831 GB, free: 7.684 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005215/13.36, allocations: 66.06 kB / 3.831 GB, free: 7.684 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002372/13.37, allocations: 2.574 MB / 3.834 GB, free: 5.605 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/13.37, allocations: 0 / 3.834 GB, free: 5.605 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01709/13.38, allocations: 7.218 MB / 3.841 GB, free: 4.488 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002874/13.39, allocations: 0.7534 MB / 3.842 GB, free: 20.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009345/13.39, allocations: 50.77 kB / 3.842 GB, free: 19.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003307/13.39, allocations: 196.4 kB / 3.842 GB, free: 19.95 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006522/13.39, allocations: 144.3 kB / 3.842 GB, free: 19.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002525/13.39, allocations: 69.3 kB / 3.842 GB, free: 19.92 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002893/13.39, allocations: 1.183 MB / 3.843 GB, free: 19.46 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.02e-07/13.39, allocations: 0 / 3.843 GB, free: 19.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01387/13.41, allocations: 2.758 MB / 3.846 GB, free: 18.87 MB / 0.4948 GB 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.03332/13.44, allocations: 10.47 MB / 3.856 GB, free: 14.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01739/13.46, allocations: 5.32 MB / 3.861 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/13.46, allocations: 3.906 kB / 3.861 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006373/13.47, allocations: 2.416 MB / 3.864 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008205/13.47, allocations: 0.8671 MB / 3.864 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8605/14.33, allocations: 139.8 MB / 4.001 GB, free: 33.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003089/14.34, allocations: 2.26 MB / 4.003 GB, free: 32.82 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00304/14.34, allocations: 1.32 MB / 4.004 GB, free: 32.81 MB / 0.4948 GB Notification: Performance of SimCode: time 9.42e-07/14.34, allocations: 0 / 4.004 GB, free: 32.81 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.845/20.19, allocations: 108.4 MB / 4.11 GB, free: 44.87 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat does not exist to compare? outputFormat=mat