Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.53/2.53, allocations: 234.9 MB / 251.1 MB, free: 9.707 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006099/0.0006101, allocations: 16 kB / 314.9 MB, free: 9.746 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.3682, allocations: 54.85 MB / 369.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.772/8.14, allocations: 2.658 GB / 3.019 GB, free: 61.43 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/8.141, allocations: 89.22 kB / 3.019 GB, free: 61.39 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.374/12.51, allocations: 0.8006 GB / 3.82 GB, free: 8.223 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.214e-06/12.51, allocations: 0 / 3.82 GB, free: 8.223 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002651/12.51, allocations: 68.59 kB / 3.82 GB, free: 8.16 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.01915/12.53, allocations: 4.128 MB / 3.824 GB, free: 3.965 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/12.53, allocations: 12.03 kB / 3.824 GB, free: 3.953 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00882/12.54, allocations: 0.8441 MB / 3.825 GB, free: 3.105 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008461/12.55, allocations: 2.114 MB / 3.827 GB, free: 0.9414 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003152/12.55, allocations: 175.7 kB / 3.827 GB, free: 0.7695 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009962/12.55, allocations: 207.9 kB / 3.827 GB, free: 0.5664 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01333/12.57, allocations: 3.589 MB / 3.831 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.7e-05/12.57, allocations: 7.938 kB / 3.831 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004372/12.57, allocations: 94.95 kB / 3.831 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003557/12.57, allocations: 167.5 kB / 3.831 GB, free: 12.51 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01514/12.58, allocations: 3.289 MB / 3.834 GB, free: 9.215 MB / 0.5105 GB 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.4473/13.03, allocations: 15.04 MB / 3.849 GB, free: 33.37 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008891/13.04, allocations: 2.3 MB / 3.851 GB, free: 33.34 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06391/13.1, allocations: 18.81 MB / 3.87 GB, free: 21.61 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008299/13.11, allocations: 1.635 MB / 3.871 GB, free: 21.53 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 1.162e-05/13.11, allocations: 0 / 3.871 GB, free: 21.53 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.03801/13.15, allocations: 8.187 MB / 3.879 GB, free: 20.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/13.15, allocations: 279.2 kB / 3.879 GB, free: 20.38 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003515/13.15, allocations: 1.603 MB / 3.881 GB, free: 20.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005585/13.15, allocations: 56.19 kB / 3.881 GB, free: 20.17 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001005/13.15, allocations: 0.9233 MB / 3.882 GB, free: 19.79 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001029/13.15, allocations: 0.5861 MB / 3.883 GB, free: 19.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002497/13.16, allocations: 40.75 kB / 3.883 GB, free: 19.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001615/13.16, allocations: 401.4 kB / 3.883 GB, free: 19.18 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003705/13.16, allocations: 1.146 MB / 3.884 GB, free: 19.18 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004327/13.16, allocations: 1.657 MB / 3.886 GB, free: 18.62 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00439/13.17, allocations: 1.381 MB / 3.887 GB, free: 18.57 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.356e-05/13.17, allocations: 5.688 kB / 3.887 GB, free: 18.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01248/13.18, allocations: 3.832 MB / 3.891 GB, free: 18.42 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003315/13.18, allocations: 0.4991 MB / 3.891 GB, free: 17.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.309e-05/13.18, allocations: 25.42 kB / 3.891 GB, free: 17.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02509/13.21, allocations: 2.932 MB / 3.894 GB, free: 17.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002255/13.21, allocations: 312.5 kB / 3.894 GB, free: 17.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009917/13.22, allocations: 3.5 MB / 3.898 GB, free: 17.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004054/13.22, allocations: 259.8 kB / 3.898 GB, free: 17.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006541/13.22, allocations: 103 kB / 3.898 GB, free: 17.23 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/13.22, allocations: 3.844 kB / 3.898 GB, free: 17.23 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01156/13.23, allocations: 3.538 MB / 3.902 GB, free: 17.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.353e-05/13.23, allocations: 15.44 kB / 3.902 GB, free: 17.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01175/13.25, allocations: 1.715 MB / 3.903 GB, free: 17.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002595/13.25, allocations: 359.4 kB / 3.904 GB, free: 17.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006955/13.26, allocations: 2.741 MB / 3.906 GB, free: 16.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003185/13.26, allocations: 255.4 kB / 3.907 GB, free: 16.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003957/13.26, allocations: 103.8 kB / 3.907 GB, free: 16.57 MB / 0.5105 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 () * 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.002269/13.26, allocations: 0.7281 MB / 3.907 GB, free: 16.34 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000664/13.26, allocations: 199.1 kB / 3.908 GB, free: 16.24 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01657/13.28, allocations: 7.774 MB / 3.915 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.699e-05/13.28, allocations: 91.3 kB / 3.915 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/13.28, allocations: 0 / 3.915 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01351/13.29, allocations: 6.668 MB / 3.922 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02343/13.32, allocations: 10.93 MB / 3.932 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.73e-05/13.32, allocations: 4.281 kB / 3.932 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003318/13.32, allocations: 399.2 kB / 3.933 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002378/13.32, allocations: 377.1 kB / 3.933 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005354/13.32, allocations: 69.66 kB / 3.933 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002668/13.33, allocations: 2.57 MB / 3.936 GB, free: 27.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/13.33, allocations: 0 / 3.936 GB, free: 27.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0164/13.34, allocations: 7.223 MB / 3.943 GB, free: 27.27 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002347/13.34, allocations: 0.7505 MB / 3.944 GB, free: 26.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008805/13.35, allocations: 48.8 kB / 3.944 GB, free: 26.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003209/13.35, allocations: 203.7 kB / 3.944 GB, free: 26.92 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005619/13.35, allocations: 146.7 kB / 3.944 GB, free: 26.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002726/13.35, allocations: 71.52 kB / 3.944 GB, free: 26.91 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00272/13.35, allocations: 1.184 MB / 3.945 GB, free: 26.77 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.91e-07/13.35, allocations: 0 / 3.945 GB, free: 26.77 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01301/13.37, allocations: 2.766 MB / 3.948 GB, free: 26.64 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) * 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.01892/13.38, allocations: 2.829 MB / 3.951 GB, free: 26.34 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02067/13.41, allocations: 5.381 MB / 3.956 GB, free: 26.02 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.18e-05/13.41, allocations: 3.438 kB / 3.956 GB, free: 26.02 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007519/13.41, allocations: 2.442 MB / 3.958 GB, free: 25.94 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01024/13.42, allocations: 0.8693 MB / 3.959 GB, free: 25.92 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8311/14.25, allocations: 130.9 MB / 4.087 GB, free: 62.64 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002263/14.26, allocations: 2.259 MB / 4.089 GB, free: 61.89 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001239/14.26, allocations: 185.2 kB / 4.089 GB, free: 61.89 MB / 0.5417 GB Notification: Performance of SimCode: time 1.363e-06/14.26, allocations: 0 / 4.089 GB, free: 61.89 MB / 0.5417 GB Notification: Performance of Templates: time 0.1758/14.43, allocations: 97.82 MB / 4.185 GB, free: 48.73 MB / 0.5417 GB