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.SeriesPipes1.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: 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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.236/2.236, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004393/0.0004397, allocations: 8 kB / 283.1 MB, free: 9.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3497, allocations: 48.7 MB / 331.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.399/7.748, allocations: 2.547 GB / 2.871 GB, free: 91.73 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/7.749, allocations: 86.41 kB / 2.872 GB, free: 91.72 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.199/11.95, allocations: 0.7799 GB / 3.652 GB, free: 21.74 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.695e-06/11.95, allocations: 6.812 kB / 3.652 GB, free: 21.74 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003857/11.95, allocations: 63.33 kB / 3.652 GB, free: 21.73 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.02401/11.97, allocations: 4.019 MB / 3.655 GB, free: 19.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/11.97, allocations: 11.69 kB / 3.656 GB, free: 19.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01276/11.99, allocations: 0.8166 MB / 3.656 GB, free: 19.29 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01109/12, allocations: 2.1 MB / 3.658 GB, free: 18.34 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003886/12, allocations: 187.5 kB / 3.659 GB, free: 18.27 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001035/12, allocations: 201.5 kB / 3.659 GB, free: 18.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01715/12.02, allocations: 3.583 MB / 3.662 GB, free: 16.74 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.412e-05/12.02, allocations: 6.656 kB / 3.662 GB, free: 16.73 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004363/12.02, allocations: 94.45 kB / 3.662 GB, free: 16.68 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003173/12.02, allocations: 161.1 kB / 3.662 GB, free: 16.65 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01303/12.03, allocations: 3.286 MB / 3.666 GB, free: 15.69 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.03025/12.06, allocations: 15.05 MB / 3.68 GB, free: 20.23 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008945/12.07, allocations: 2.307 MB / 3.683 GB, free: 18.35 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.443/12.51, allocations: 18.78 MB / 3.701 GB, free: 39.02 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00737/12.52, allocations: 1.632 MB / 3.703 GB, free: 38.93 MB / 474.7 MB Notification: Performance of pre-optimization done (n=153): time 6.482e-06/12.52, allocations: 0 / 3.703 GB, free: 38.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=169): time 0.04381/12.56, allocations: 8.869 MB / 3.711 GB, free: 38.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/12.56, allocations: 281.7 kB / 3.711 GB, free: 37.88 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003912/12.57, allocations: 1.601 MB / 3.713 GB, free: 37.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005972/12.57, allocations: 57.83 kB / 3.713 GB, free: 37.66 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001104/12.57, allocations: 0.9268 MB / 3.714 GB, free: 37.29 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001105/12.57, allocations: 0.5795 MB / 3.715 GB, free: 37 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002732/12.57, allocations: 40.97 kB / 3.715 GB, free: 37 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001909/12.57, allocations: 389.4 kB / 3.715 GB, free: 36.68 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003888/12.57, allocations: 1.148 MB / 3.716 GB, free: 36.68 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004579/12.58, allocations: 1.652 MB / 3.718 GB, free: 36.12 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004154/12.58, allocations: 1.368 MB / 3.719 GB, free: 36.07 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.651e-05/12.58, allocations: 4.406 kB / 3.719 GB, free: 36.07 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01029/12.59, allocations: 3.223 MB / 3.722 GB, free: 35.89 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000331/12.59, allocations: 0.5128 MB / 3.723 GB, free: 35.31 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.373e-05/12.59, allocations: 15.5 kB / 3.723 GB, free: 35.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00146/12.6, allocations: 279.5 kB / 3.723 GB, free: 35.28 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004254/12.6, allocations: 0.5201 MB / 3.724 GB, free: 35.28 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/12.6, allocations: 2.494 MB / 3.726 GB, free: 33.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004013/12.61, allocations: 263.8 kB / 3.726 GB, free: 33.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003637/12.61, allocations: 106.9 kB / 3.726 GB, free: 33.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/12.61, allocations: 3.875 kB / 3.726 GB, free: 33.2 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009249/12.62, allocations: 3.071 MB / 3.729 GB, free: 33.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.211e-05/12.62, allocations: 16.09 kB / 3.729 GB, free: 33.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001396/12.62, allocations: 276 kB / 3.73 GB, free: 33.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003948/12.62, allocations: 0.5109 MB / 3.73 GB, free: 33.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/12.62, allocations: 2.505 MB / 3.733 GB, free: 30.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003168/12.63, allocations: 255.8 kB / 3.733 GB, free: 30.97 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003057/12.63, allocations: 107 kB / 3.733 GB, free: 30.97 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 (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.002155/12.63, allocations: 0.7168 MB / 3.734 GB, free: 30.75 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006989/12.63, allocations: 198.3 kB / 3.734 GB, free: 30.65 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01622/12.65, allocations: 7.781 MB / 3.741 GB, free: 29.96 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.6e-05/12.65, allocations: 90.84 kB / 3.741 GB, free: 29.96 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/12.65, allocations: 0 / 3.741 GB, free: 29.96 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01324/12.66, allocations: 6.679 MB / 3.748 GB, free: 29.14 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02383/12.68, allocations: 10.91 MB / 3.759 GB, free: 28.39 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.736e-05/12.68, allocations: 3.609 kB / 3.759 GB, free: 28.39 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003326/12.69, allocations: 401.4 kB / 3.759 GB, free: 28.39 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002352/12.69, allocations: 384 kB / 3.759 GB, free: 28.35 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000473/12.69, allocations: 65.47 kB / 3.759 GB, free: 28.35 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001744/12.69, allocations: 2.57 MB / 3.762 GB, free: 26.27 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/12.69, allocations: 0 / 3.762 GB, free: 26.27 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01682/12.71, allocations: 7.225 MB / 3.769 GB, free: 25.64 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002448/12.71, allocations: 0.7495 MB / 3.77 GB, free: 25.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009611/12.71, allocations: 50.69 kB / 3.77 GB, free: 25.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003384/12.71, allocations: 198.8 kB / 3.77 GB, free: 25.29 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006138/12.71, allocations: 151.1 kB / 3.77 GB, free: 25.29 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002466/12.72, allocations: 67.77 kB / 3.77 GB, free: 25.29 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002747/12.72, allocations: 1.184 MB / 3.771 GB, free: 25.14 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.62e-07/12.72, allocations: 2.734 kB / 3.771 GB, free: 25.14 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0135/12.73, allocations: 2.743 MB / 3.774 GB, free: 25.02 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.01549/12.75, allocations: 2.82 MB / 3.777 GB, free: 24.73 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01519/12.76, allocations: 5.231 MB / 3.782 GB, free: 24.45 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/12.76, allocations: 0 / 3.782 GB, free: 24.45 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005818/12.77, allocations: 2.415 MB / 3.784 GB, free: 24.37 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008185/12.78, allocations: 0.8561 MB / 3.785 GB, free: 24.35 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7992/13.58, allocations: 128.7 MB / 3.911 GB, free: 48.48 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00262/13.58, allocations: 2.261 MB / 3.913 GB, free: 47.73 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001479/13.58, allocations: 207.8 kB / 3.913 GB, free: 47.73 MB / 490.7 MB Notification: Performance of SimCode: time 1.312e-06/13.58, allocations: 0 / 3.913 GB, free: 47.73 MB / 490.7 MB Notification: Performance of Templates: time 0.1975/13.78, allocations: 117.2 MB / 4.028 GB, free: 8.766 MB / 490.7 MB