Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.245/2.245, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.301e-05/3.314e-05, allocations: 4 kB / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3278, allocations: 54.85 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.386/6.713, allocations: 2.658 GB / 3.014 GB, free: 114.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/6.714, allocations: 73.97 kB / 3.014 GB, free: 114.2 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2/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.532/10.25, allocations: 0.7972 GB / 3.811 GB, free: 30 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.777e-06/10.25, allocations: 0 / 3.811 GB, free: 30 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002316/10.25, allocations: 68.02 kB / 3.811 GB, free: 29.99 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01342/10.26, allocations: 3.843 MB / 3.815 GB, free: 28.14 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/10.26, allocations: 7.625 kB / 3.815 GB, free: 28.14 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007877/10.27, allocations: 0.8493 MB / 3.816 GB, free: 28 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00664/10.27, allocations: 2.096 MB / 3.818 GB, free: 27.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002507/10.27, allocations: 183.1 kB / 3.818 GB, free: 27.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006528/10.28, allocations: 194.1 kB / 3.818 GB, free: 27.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009203/10.28, allocations: 3.556 MB / 3.822 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.831e-05/10.28, allocations: 3.094 kB / 3.822 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003584/10.29, allocations: 94.91 kB / 3.822 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002452/10.29, allocations: 156.9 kB / 3.822 GB, free: 26.92 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009342/10.29, allocations: 3.17 MB / 3.825 GB, free: 26.87 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.02264/10.32, allocations: 15.07 MB / 3.84 GB, free: 17.76 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006099/10.32, allocations: 2.223 MB / 3.842 GB, free: 17.59 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001846/10.33, allocations: 1.043 MB / 3.843 GB, free: 17.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03957/10.37, allocations: 18.87 MB / 3.861 GB, free: 20.53 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005186/10.37, allocations: 1.652 MB / 3.863 GB, free: 20 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.47e-06/10.37, allocations: 0 / 3.863 GB, free: 20 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.02699/10.4, allocations: 7.544 MB / 3.87 GB, free: 17.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001975/10.4, allocations: 280.5 kB / 3.871 GB, free: 16.86 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002555/10.4, allocations: 1.409 MB / 3.872 GB, free: 15.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000418/10.4, allocations: 57.7 kB / 3.872 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007597/10.4, allocations: 0.9134 MB / 3.873 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006509/10.4, allocations: 0.5887 MB / 3.874 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001923/10.4, allocations: 40 kB / 3.874 GB, free: 14.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002567/10.4, allocations: 390.6 kB / 3.874 GB, free: 13.74 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002012/10.4, allocations: 1.038 MB / 3.875 GB, free: 12.81 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002331/10.41, allocations: 1.54 MB / 3.877 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002402/10.41, allocations: 1.279 MB / 3.878 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/10.41, allocations: 7.938 kB / 3.878 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.007519/10.42, allocations: 2.987 MB / 3.881 GB, free: 7.473 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002953/10.42, allocations: 5.181 MB / 3.886 GB, free: 1.906 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.133e-05/10.42, allocations: 12 kB / 3.886 GB, free: 1.895 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001221/10.42, allocations: 254.6 kB / 3.886 GB, free: 1.684 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003216/10.42, allocations: 0.5167 MB / 3.887 GB, free: 1.242 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002546/10.43, allocations: 2.515 MB / 3.889 GB, free: 14.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003132/10.43, allocations: 253.9 kB / 3.889 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004598/10.43, allocations: 103.5 kB / 3.889 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/10.43, allocations: 7.938 kB / 3.889 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00697/10.44, allocations: 2.826 MB / 3.892 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.943e-05/10.44, allocations: 19.88 kB / 3.892 GB, free: 11.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/10.44, allocations: 263.1 kB / 3.892 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002963/10.44, allocations: 0.5126 MB / 3.893 GB, free: 11.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002389/10.44, allocations: 2.506 MB / 3.895 GB, free: 8.789 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002452/10.45, allocations: 262.3 kB / 3.896 GB, free: 8.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003368/10.45, allocations: 98.75 kB / 3.896 GB, free: 8.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 23 (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,valveOpening1.nextEventScaled,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (251): * Single equations (assignments): 244 * 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: 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 prepare postOptimizeDAE: time 0.0007514/10.45, allocations: 263.4 kB / 3.896 GB, free: 8.23 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006123/10.45, allocations: 209.5 kB / 3.896 GB, free: 8.023 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01421/10.46, allocations: 7.682 MB / 3.904 GB, free: 1.145 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001007/10.46, allocations: 89.47 kB / 3.904 GB, free: 1.09 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/10.46, allocations: 0 / 3.904 GB, free: 1.09 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.3983/10.86, allocations: 6.771 MB / 3.91 GB, free: 59.09 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02037/10.88, allocations: 10.81 MB / 3.921 GB, free: 58.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.604e-05/10.88, allocations: 0 / 3.921 GB, free: 58.49 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002549/10.88, allocations: 403.2 kB / 3.921 GB, free: 58.49 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001737/10.89, allocations: 359 kB / 3.922 GB, free: 58.46 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004745/10.89, allocations: 58.78 kB / 3.922 GB, free: 58.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001635/10.89, allocations: 2.571 MB / 3.924 GB, free: 56.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.959e-06/10.89, allocations: 1.844 kB / 3.924 GB, free: 56.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01208/10.9, allocations: 6.903 MB / 3.931 GB, free: 55.95 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002038/10.9, allocations: 0.7466 MB / 3.932 GB, free: 55.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006135/10.9, allocations: 49.36 kB / 3.932 GB, free: 55.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00236/10.91, allocations: 206.2 kB / 3.932 GB, free: 55.79 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004345/10.91, allocations: 143.5 kB / 3.932 GB, free: 55.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000244/10.91, allocations: 65.31 kB / 3.932 GB, free: 55.79 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002256/10.91, allocations: 1.175 MB / 3.933 GB, free: 55.63 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.18e-07/10.91, allocations: 0 / 3.933 GB, free: 55.63 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01013/10.92, allocations: 2.761 MB / 3.936 GB, free: 55.63 MB / 0.5261 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: 54 ($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,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * 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.01153/10.93, allocations: 2.841 MB / 3.939 GB, free: 55.45 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01056/10.94, allocations: 5.019 MB / 3.944 GB, free: 55.18 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/10.94, allocations: 3.688 kB / 3.944 GB, free: 55.18 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004438/10.95, allocations: 2.358 MB / 3.946 GB, free: 55.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005799/10.95, allocations: 0.8761 MB / 3.947 GB, free: 55.08 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2766/11.23, allocations: 128 MB / 4.072 GB, free: 25.08 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001989/11.23, allocations: 2.256 MB / 4.074 GB, free: 23.32 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00114/11.23, allocations: 207.3 kB / 4.074 GB, free: 23.12 MB / 0.5261 GB Notification: Performance of SimCode: time 1.798e-06/11.23, allocations: 0 / 4.074 GB, free: 23.12 MB / 0.5261 GB Notification: Performance of Templates: time 0.5127/11.74, allocations: 117.2 MB / 4.189 GB, free: 44.49 MB / 0.5261 GB