Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,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_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.204/2.204, allocations: 235 MB / 247.2 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.314e-05/3.352e-05, allocations: 4 kB / 304.9 MB, free: 5.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3302, allocations: 54.85 MB / 359.8 MB, free: 3.129 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.89/6.221, allocations: 2.658 GB / 3.009 GB, free: 14.71 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/6.221, allocations: 71.97 kB / 3.01 GB, free: 14.64 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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 4.169/10.39, allocations: 0.8604 GB / 3.87 GB, free: 36.79 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.34e-06/10.39, allocations: 4.656 kB / 3.87 GB, free: 36.79 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.00022/10.39, allocations: 63.69 kB / 3.87 GB, free: 36.78 MB / 0.5105 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.01311/10.4, allocations: 3.848 MB / 3.874 GB, free: 34.92 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/10.4, allocations: 9.312 kB / 3.874 GB, free: 34.92 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009441/10.41, allocations: 0.843 MB / 3.875 GB, free: 34.79 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007023/10.42, allocations: 2.091 MB / 3.877 GB, free: 34.33 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002538/10.42, allocations: 184.4 kB / 3.877 GB, free: 34.33 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006501/10.42, allocations: 199.5 kB / 3.877 GB, free: 34.32 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01005/10.43, allocations: 3.541 MB / 3.881 GB, free: 33.78 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.146e-05/10.43, allocations: 11.91 kB / 3.881 GB, free: 33.78 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00036/10.43, allocations: 91.14 kB / 3.881 GB, free: 33.78 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002355/10.43, allocations: 158.4 kB / 3.881 GB, free: 33.77 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009042/10.44, allocations: 3.131 MB / 3.884 GB, free: 33.76 MB / 0.5105 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.022/10.46, allocations: 15.05 MB / 3.899 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006045/10.47, allocations: 2.204 MB / 3.901 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001968/10.47, allocations: 1.04 MB / 3.902 GB, free: 24.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04171/10.51, allocations: 18.88 MB / 3.92 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005208/10.52, allocations: 1.635 MB / 3.922 GB, free: 12.78 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.204e-06/10.52, allocations: 0 / 3.922 GB, free: 12.78 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.0218/10.54, allocations: 6.948 MB / 3.928 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005433/10.54, allocations: 280.5 kB / 3.929 GB, free: 27.51 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002672/10.54, allocations: 1.395 MB / 3.93 GB, free: 27.32 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000438/10.54, allocations: 57.95 kB / 3.93 GB, free: 27.29 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009186/10.54, allocations: 0.9776 MB / 3.931 GB, free: 26.88 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007333/10.55, allocations: 0.5816 MB / 3.932 GB, free: 26.52 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000207/10.55, allocations: 37.91 kB / 3.932 GB, free: 26.52 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.00025/10.55, allocations: 389.9 kB / 3.932 GB, free: 26.21 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002101/10.55, allocations: 1.051 MB / 3.933 GB, free: 26.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002494/10.55, allocations: 1.52 MB / 3.935 GB, free: 25.64 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002512/10.55, allocations: 1.285 MB / 3.936 GB, free: 25.56 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.346e-05/10.55, allocations: 3.75 kB / 3.936 GB, free: 25.56 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.007781/10.56, allocations: 3.612 MB / 3.939 GB, free: 25.33 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0025/10.56, allocations: 5.326 MB / 3.945 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.031e-05/10.56, allocations: 20.55 kB / 3.945 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01848/10.58, allocations: 2.75 MB / 3.947 GB, free: 19.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001801/10.58, allocations: 315.1 kB / 3.948 GB, free: 19.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006272/10.59, allocations: 3.293 MB / 3.951 GB, free: 19.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00299/10.59, allocations: 262.3 kB / 3.951 GB, free: 18.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003566/10.59, allocations: 103.8 kB / 3.951 GB, free: 18.98 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/10.59, allocations: 10.08 kB / 3.951 GB, free: 18.97 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006983/10.6, allocations: 3.209 MB / 3.954 GB, free: 18.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.163e-05/10.6, allocations: 14.91 kB / 3.954 GB, free: 18.87 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008502/10.61, allocations: 1.626 MB / 3.956 GB, free: 18.82 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001967/10.61, allocations: 358.8 kB / 3.956 GB, free: 18.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004164/10.62, allocations: 2.578 MB / 3.959 GB, free: 18.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002841/10.62, allocations: 256.9 kB / 3.959 GB, free: 18.22 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003469/10.62, allocations: 101.4 kB / 3.959 GB, free: 18.22 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 (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.000686/10.62, allocations: 264 kB / 3.959 GB, free: 18.07 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004497/10.62, allocations: 201.2 kB / 3.96 GB, free: 17.97 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01159/10.63, allocations: 7.694 MB / 3.967 GB, free: 16.05 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.053e-05/10.63, allocations: 91.89 kB / 3.967 GB, free: 16.02 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/10.63, allocations: 0 / 3.967 GB, free: 16.02 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009425/10.64, allocations: 6.593 MB / 3.974 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0181/10.66, allocations: 10.81 MB / 3.984 GB, free: 3.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/10.66, allocations: 0 / 3.984 GB, free: 3.93 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002491/10.66, allocations: 408.3 kB / 3.985 GB, free: 3.617 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001697/10.66, allocations: 346.4 kB / 3.985 GB, free: 3.348 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003233/10.66, allocations: 67.06 kB / 3.985 GB, free: 3.293 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002374/10.67, allocations: 2.572 MB / 3.987 GB, free: 0.7344 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.789e-06/10.67, allocations: 3.75 kB / 3.987 GB, free: 0.7344 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01333/10.68, allocations: 6.907 MB / 3.994 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002168/10.68, allocations: 0.7463 MB / 3.995 GB, free: 9.715 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006105/10.68, allocations: 51.56 kB / 3.995 GB, free: 9.668 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002406/10.68, allocations: 202.2 kB / 3.995 GB, free: 9.516 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005808/10.69, allocations: 153.7 kB / 3.995 GB, free: 9.422 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003225/10.69, allocations: 63.41 kB / 3.995 GB, free: 9.367 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003226/10.69, allocations: 1.168 MB / 3.997 GB, free: 8.289 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.293e-06/10.69, allocations: 0 / 3.997 GB, free: 8.289 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01263/10.7, allocations: 2.764 MB / 3.999 GB, free: 5.582 MB / 0.5417 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.01289/10.71, allocations: 2.849 MB / 4.002 GB, free: 3.406 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.3557/11.07, allocations: 5.372 MB / 4.007 GB, free: 66.24 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.411e-06/11.07, allocations: 1.656 kB / 4.007 GB, free: 66.24 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005126/11.08, allocations: 2.36 MB / 4.01 GB, free: 66.17 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006102/11.08, allocations: 0.8616 MB / 4.01 GB, free: 66.16 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.278/11.36, allocations: 127.9 MB / 4.135 GB, free: 55.27 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002127/11.36, allocations: 2.312 MB / 4.138 GB, free: 54.46 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005441/11.37, allocations: 1.92 MB / 4.139 GB, free: 54.36 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006994/11.37, allocations: 147.8 kB / 4.14 GB, free: 54.36 MB / 0.5417 GB Notification: Performance of SimCode: time 1.729e-06/11.37, allocations: 0 / 4.14 GB, free: 54.36 MB / 0.5417 GB Notification: Performance of Templates: time 0.5222/11.89, allocations: 96.99 MB / 4.234 GB, free: 60.31 MB / 0.5417 GB