Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 1.928/1.928, allocations: 209.2 MB / 224.8 MB, free: 1.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004408/0.0004409, allocations: 12 kB / 282.6 MB, free: 9.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08837/0.08883, allocations: 48.71 MB / 331.3 MB, free: 8.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.409/6.498, allocations: 2.548 GB / 2.871 GB, free: 61.37 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/6.499, allocations: 81.39 kB / 2.871 GB, free: 61.32 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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 3.775/10.27, allocations: 0.7812 GB / 3.652 GB, free: 30.63 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.631e-06/10.27, allocations: 0 / 3.652 GB, free: 30.63 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002436/10.27, allocations: 65.08 kB / 3.652 GB, free: 30.62 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.01551/10.29, allocations: 4.019 MB / 3.656 GB, free: 28.84 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/10.29, allocations: 10.31 kB / 3.656 GB, free: 28.84 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007963/10.3, allocations: 0.8137 MB / 3.657 GB, free: 28.71 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007477/10.3, allocations: 2.104 MB / 3.659 GB, free: 28.26 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003677/10.31, allocations: 178.6 kB / 3.659 GB, free: 28.26 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008826/10.31, allocations: 201.1 kB / 3.66 GB, free: 28.25 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01027/10.32, allocations: 3.584 MB / 3.663 GB, free: 27.73 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.307e-05/10.32, allocations: 6.969 kB / 3.663 GB, free: 27.73 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003802/10.32, allocations: 84.22 kB / 3.663 GB, free: 27.73 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002763/10.32, allocations: 160.9 kB / 3.663 GB, free: 27.72 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0109/10.33, allocations: 3.287 MB / 3.666 GB, free: 27.71 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.02474/10.35, allocations: 15.03 MB / 3.681 GB, free: 18.71 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007192/10.36, allocations: 2.306 MB / 3.683 GB, free: 18.68 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04298/10.4, allocations: 18.79 MB / 3.702 GB, free: 22.93 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005976/10.41, allocations: 1.626 MB / 3.703 GB, free: 22.84 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 7.824e-06/10.41, allocations: 5.375 kB / 3.703 GB, free: 22.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.02773/10.44, allocations: 8.179 MB / 3.711 GB, free: 21.82 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002049/10.44, allocations: 283.1 kB / 3.712 GB, free: 21.51 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002834/10.44, allocations: 1.412 MB / 3.713 GB, free: 21.34 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004463/10.44, allocations: 54.58 kB / 3.713 GB, free: 21.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008522/10.44, allocations: 0.9231 MB / 3.714 GB, free: 20.83 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007872/10.44, allocations: 0.5853 MB / 3.714 GB, free: 20.46 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002225/10.44, allocations: 40.59 kB / 3.715 GB, free: 20.46 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002632/10.44, allocations: 395.6 kB / 3.715 GB, free: 20.14 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003087/10.45, allocations: 1.144 MB / 3.716 GB, free: 20.14 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003336/10.45, allocations: 1.647 MB / 3.718 GB, free: 19.58 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003524/10.45, allocations: 1.375 MB / 3.719 GB, free: 19.53 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.932e-05/10.45, allocations: 3.75 kB / 3.719 GB, free: 19.53 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01108/10.46, allocations: 3.832 MB / 3.723 GB, free: 19.38 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002663/10.47, allocations: 5.178 MB / 3.728 GB, free: 13.99 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.047e-05/10.47, allocations: 16.38 kB / 3.728 GB, free: 13.99 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01888/10.49, allocations: 2.919 MB / 3.731 GB, free: 13.97 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001642/10.49, allocations: 314.3 kB / 3.731 GB, free: 13.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007664/10.49, allocations: 3.507 MB / 3.734 GB, free: 13.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003239/10.5, allocations: 255.1 kB / 3.735 GB, free: 13.38 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005809/10.5, allocations: 107.4 kB / 3.735 GB, free: 13.38 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/10.5, allocations: 3 kB / 3.735 GB, free: 13.38 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009948/10.51, allocations: 3.538 MB / 3.738 GB, free: 13.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.163e-05/10.51, allocations: 15.48 kB / 3.738 GB, free: 13.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008641/10.52, allocations: 1.72 MB / 3.74 GB, free: 13.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001926/10.52, allocations: 360.1 kB / 3.74 GB, free: 13.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00572/10.53, allocations: 2.736 MB / 3.743 GB, free: 12.72 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002521/10.53, allocations: 268.9 kB / 3.743 GB, free: 12.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005074/10.53, allocations: 99.92 kB / 3.743 GB, free: 12.7 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.002162/10.53, allocations: 0.721 MB / 3.744 GB, free: 12.46 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005696/10.53, allocations: 196.3 kB / 3.744 GB, free: 12.37 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01449/10.55, allocations: 7.774 MB / 3.752 GB, free: 11.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.614e-05/10.55, allocations: 89.02 kB / 3.752 GB, free: 11.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/10.55, allocations: 0 / 3.752 GB, free: 11.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01166/10.56, allocations: 6.68 MB / 3.758 GB, free: 10.77 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02064/10.58, allocations: 10.91 MB / 3.769 GB, free: 10.01 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-05/10.58, allocations: 5.438 kB / 3.769 GB, free: 10.01 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002522/10.58, allocations: 402.9 kB / 3.769 GB, free: 10.01 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002152/10.58, allocations: 379 kB / 3.77 GB, free: 9.973 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004786/10.58, allocations: 62.61 kB / 3.77 GB, free: 9.973 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002306/10.59, allocations: 2.575 MB / 3.772 GB, free: 7.898 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.257e-06/10.59, allocations: 6.75 kB / 3.772 GB, free: 7.895 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01463/10.6, allocations: 7.217 MB / 3.779 GB, free: 5.773 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002181/10.6, allocations: 0.7542 MB / 3.78 GB, free: 5.305 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008465/10.6, allocations: 48.55 kB / 3.78 GB, free: 5.273 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002782/10.61, allocations: 195.9 kB / 3.78 GB, free: 5.242 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005709/10.61, allocations: 146.6 kB / 3.78 GB, free: 5.223 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002549/10.61, allocations: 65.56 kB / 3.781 GB, free: 5.211 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002668/10.61, allocations: 1.188 MB / 3.782 GB, free: 4.754 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.91e-07/10.61, allocations: 0 / 3.782 GB, free: 4.754 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0121/10.62, allocations: 2.746 MB / 3.784 GB, free: 4.168 MB / 490.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.01286/10.64, allocations: 2.814 MB / 3.787 GB, free: 3.457 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01286/10.65, allocations: 5.32 MB / 3.792 GB, free: 1.562 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.837e-06/10.65, allocations: 4.062 kB / 3.792 GB, free: 1.559 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004716/10.65, allocations: 2.417 MB / 3.795 GB, free: 0.5312 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005468/10.66, allocations: 0.8733 MB / 3.796 GB, free: 316 kB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6134/11.27, allocations: 128.8 MB / 3.921 GB, free: 45.89 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002652/11.27, allocations: 2.256 MB / 3.924 GB, free: 45.11 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009979/11.28, allocations: 184.5 kB / 3.924 GB, free: 45.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.644e-06/11.28, allocations: 0 / 3.924 GB, free: 45.1 MB / 0.4948 GB Notification: Performance of Templates: time 0.4662/11.74, allocations: 97.46 MB / 4.019 GB, free: 53.08 MB / 0.4948 GB