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.SeriesPipes12.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.327/2.327, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.735e-05/1.75e-05, allocations: 0 / 303.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2795, allocations: 54.86 MB / 358 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.679/6.959, allocations: 2.657 GB / 3.007 GB, free: 106.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/6.959, allocations: 83.3 kB / 3.007 GB, free: 106.1 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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.774/10.73, allocations: 0.7917 GB / 3.799 GB, free: 30.21 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.499e-06/10.73, allocations: 0 / 3.799 GB, free: 30.21 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002766/10.73, allocations: 72.45 kB / 3.799 GB, free: 30.2 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.01452/10.75, allocations: 3.843 MB / 3.803 GB, free: 28.36 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/10.75, allocations: 9.562 kB / 3.803 GB, free: 28.36 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007971/10.76, allocations: 0.8527 MB / 3.804 GB, free: 28.22 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006894/10.76, allocations: 2.097 MB / 3.806 GB, free: 27.76 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001911/10.76, allocations: 91.72 kB / 3.806 GB, free: 27.76 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005929/10.76, allocations: 113.6 kB / 3.806 GB, free: 27.76 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005996/10.77, allocations: 2.53 MB / 3.808 GB, free: 27.75 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00637/10.78, allocations: 2.79 MB / 3.811 GB, free: 27.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.459e-05/10.78, allocations: 11.5 kB / 3.811 GB, free: 27.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003322/10.78, allocations: 9.156 kB / 3.811 GB, free: 27.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002429/10.78, allocations: 163.1 kB / 3.811 GB, free: 27.2 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.1997/10.98, allocations: 78.63 MB / 3.888 GB, free: 17.52 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003386/10.98, allocations: 1.63 MB / 3.89 GB, free: 17.49 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00184/10.98, allocations: 0.9716 MB / 3.89 GB, free: 17.48 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04086/11.02, allocations: 17.46 MB / 3.908 GB, free: 21.45 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00234/11.03, allocations: 1.159 MB / 3.909 GB, free: 20.83 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=147): time 5.777e-06/11.03, allocations: 0 / 3.909 GB, free: 20.83 MB / 0.5417 GB Notification: Performance of matching and sorting (n=163): time 0.02997/11.06, allocations: 7.975 MB / 3.916 GB, free: 15.54 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002811/11.06, allocations: 391.7 kB / 3.917 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002809/11.06, allocations: 1.129 MB / 3.918 GB, free: 14.35 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006691/11.06, allocations: 27.3 kB / 3.918 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001223/11.06, allocations: 0.9818 MB / 3.919 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008769/11.06, allocations: 0.5323 MB / 3.919 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002333/11.06, allocations: 4 kB / 3.919 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002807/11.06, allocations: 394.7 kB / 3.92 GB, free: 12.92 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002025/11.06, allocations: 1.015 MB / 3.921 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002781/11.07, allocations: 1.507 MB / 3.922 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01712/11.08, allocations: 3.305 MB / 3.925 GB, free: 9.426 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.271e-05/11.08, allocations: 4 kB / 3.925 GB, free: 9.422 MB / 0.5417 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02353/11.11, allocations: 5.429 MB / 3.931 GB, free: 6.352 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.003009/11.11, allocations: 5.179 MB / 3.936 GB, free: 0.8867 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.92e-05/11.11, allocations: 19.47 kB / 3.936 GB, free: 0.8711 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3592/11.47, allocations: 2.072 MB / 3.938 GB, free: 75.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00178/11.47, allocations: 316.4 kB / 3.938 GB, free: 75.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009409/11.48, allocations: 3.664 MB / 3.942 GB, free: 74.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003269/11.48, allocations: 252.2 kB / 3.942 GB, free: 74.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005145/11.49, allocations: 99.5 kB / 3.942 GB, free: 74.96 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/11.49, allocations: 5.094 kB / 3.942 GB, free: 74.96 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02208/11.51, allocations: 4.949 MB / 3.947 GB, free: 74.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.427e-05/11.51, allocations: 14.88 kB / 3.947 GB, free: 74.92 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006881/11.51, allocations: 1.496 MB / 3.948 GB, free: 74.89 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001934/11.52, allocations: 355.2 kB / 3.949 GB, free: 74.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004583/11.52, allocations: 2.678 MB / 3.951 GB, free: 74.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00243/11.52, allocations: 229.7 kB / 3.952 GB, free: 74.35 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003077/11.52, allocations: 101.2 kB / 3.952 GB, free: 74.35 MB / 0.5417 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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.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.0006761/11.52, allocations: 200.8 kB / 3.952 GB, free: 74.21 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005467/11.52, allocations: 188.2 kB / 3.952 GB, free: 74.21 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01285/11.54, allocations: 6.824 MB / 3.959 GB, free: 73.79 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.396e-05/11.54, allocations: 76.98 kB / 3.959 GB, free: 73.79 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/11.54, allocations: 4.812 kB / 3.959 GB, free: 73.79 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01014/11.55, allocations: 5.648 MB / 3.964 GB, free: 73.11 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01904/11.57, allocations: 9.241 MB / 3.973 GB, free: 72.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.829e-05/11.57, allocations: 1.281 kB / 3.973 GB, free: 72.66 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002368/11.57, allocations: 358.7 kB / 3.974 GB, free: 72.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001296/11.57, allocations: 338.8 kB / 3.974 GB, free: 72.63 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004541/11.57, allocations: 38.47 kB / 3.974 GB, free: 72.63 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001914/11.57, allocations: 2.692 MB / 3.977 GB, free: 70.56 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.245e-06/11.57, allocations: 0 / 3.977 GB, free: 70.56 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01338/11.59, allocations: 6.413 MB / 3.983 GB, free: 69.99 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00191/11.59, allocations: 0.6961 MB / 3.984 GB, free: 69.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005573/11.59, allocations: 17.75 kB / 3.984 GB, free: 69.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002057/11.59, allocations: 161 kB / 3.984 GB, free: 69.73 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003601/11.59, allocations: 138.1 kB / 3.984 GB, free: 69.73 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000203/11.59, allocations: 60.56 kB / 3.984 GB, free: 69.73 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001987/11.59, allocations: 1.033 MB / 3.985 GB, free: 69.62 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.184e-06/11.59, allocations: 0 / 3.985 GB, free: 69.62 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01049/11.6, allocations: 2.633 MB / 3.988 GB, free: 69.62 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 44 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,pipe1.statesFM[2].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 (183): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 21 * 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.01229/11.62, allocations: 2.974 MB / 3.99 GB, free: 69.38 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01/11.63, allocations: 4.726 MB / 3.995 GB, free: 69.11 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.44e-06/11.63, allocations: 2.812 kB / 3.995 GB, free: 69.11 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0042/11.63, allocations: 2.161 MB / 3.997 GB, free: 69.04 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005372/11.64, allocations: 0.7747 MB / 3.998 GB, free: 69.02 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01157/11.65, allocations: 5.709 MB / 4.004 GB, free: 67.91 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002116/11.65, allocations: 2.173 MB / 4.006 GB, free: 67.16 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009826/11.65, allocations: 179.5 kB / 4.006 GB, free: 67.16 MB / 0.5417 GB Notification: Performance of SimCode: time 1.976e-06/11.65, allocations: 0 / 4.006 GB, free: 67.16 MB / 0.5417 GB Notification: Performance of Templates: time 0.1569/11.81, allocations: 94.48 MB / 4.098 GB, free: 45.02 MB / 0.5417 GB