Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) 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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 1.931/1.931, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.107e-05/2.12e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2692, allocations: 48.69 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.182/6.452, allocations: 2.547 GB / 2.859 GB, free: 94.83 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001968/6.452, allocations: 75.36 kB / 2.859 GB, free: 94.83 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.058/10.51, allocations: 0.8332 GB / 3.693 GB, free: 33.14 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.395e-06/10.51, allocations: 0 / 3.693 GB, free: 33.14 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002888/10.51, allocations: 65.17 kB / 3.693 GB, free: 33.13 MB / 474.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.01372/10.52, allocations: 3.745 MB / 3.696 GB, free: 31.41 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/10.52, allocations: 9.531 kB / 3.696 GB, free: 31.41 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008208/10.53, allocations: 0.8142 MB / 3.697 GB, free: 31.27 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006767/10.54, allocations: 2.088 MB / 3.699 GB, free: 30.82 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002186/10.54, allocations: 90.94 kB / 3.699 GB, free: 30.82 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007302/10.54, allocations: 116.1 kB / 3.699 GB, free: 30.82 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006347/10.55, allocations: 2.527 MB / 3.702 GB, free: 30.8 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006649/10.55, allocations: 2.783 MB / 3.705 GB, free: 30.29 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.422e-05/10.55, allocations: 15.69 kB / 3.705 GB, free: 30.29 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003265/10.55, allocations: 5.875 kB / 3.705 GB, free: 30.29 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002339/10.55, allocations: 159.9 kB / 3.705 GB, free: 30.28 MB / 474.7 MB 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.2014/10.76, allocations: 78.58 MB / 3.781 GB, free: 20.77 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003489/10.76, allocations: 1.641 MB / 3.783 GB, free: 20.73 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001935/10.76, allocations: 0.9633 MB / 3.784 GB, free: 20.71 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04625/10.81, allocations: 17.45 MB / 3.801 GB, free: 9.25 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002333/10.81, allocations: 1.163 MB / 3.802 GB, free: 9.109 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=145): time 7.312e-06/10.81, allocations: 0 / 3.802 GB, free: 9.109 MB / 0.4948 GB Notification: Performance of matching and sorting (n=161): time 0.0315/10.84, allocations: 7.974 MB / 3.81 GB, free: 7.402 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002639/10.84, allocations: 387.1 kB / 3.81 GB, free: 6.965 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002372/10.84, allocations: 1.126 MB / 3.811 GB, free: 6.785 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004332/10.84, allocations: 29.42 kB / 3.811 GB, free: 6.754 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008987/10.85, allocations: 0.9806 MB / 3.812 GB, free: 6.219 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007825/10.85, allocations: 0.5356 MB / 3.813 GB, free: 5.867 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002319/10.85, allocations: 1.312 kB / 3.813 GB, free: 5.867 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002787/10.85, allocations: 392.2 kB / 3.813 GB, free: 5.555 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002129/10.85, allocations: 1.009 MB / 3.814 GB, free: 5.547 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002583/10.85, allocations: 1.497 MB / 3.816 GB, free: 4.996 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01741/10.87, allocations: 3.295 MB / 3.819 GB, free: 4.84 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.731e-05/10.87, allocations: 4 kB / 3.819 GB, free: 4.836 MB / 0.4948 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.02291/10.89, allocations: 5.458 MB / 3.824 GB, free: 1.746 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002687/10.89, allocations: 5.177 MB / 3.829 GB, free: 12.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.75e-05/10.89, allocations: 12 kB / 3.829 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009805/10.9, allocations: 2.034 MB / 3.831 GB, free: 11.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001643/10.91, allocations: 314.5 kB / 3.832 GB, free: 10.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009221/10.92, allocations: 3.656 MB / 3.835 GB, free: 8.711 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003395/10.92, allocations: 267.2 kB / 3.836 GB, free: 8.516 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006122/10.92, allocations: 100.3 kB / 3.836 GB, free: 8.445 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/10.92, allocations: 5.406 kB / 3.836 GB, free: 8.441 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02131/10.94, allocations: 4.962 MB / 3.84 GB, free: 5.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.52e-05/10.94, allocations: 15.38 kB / 3.84 GB, free: 5.648 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007057/10.95, allocations: 1.496 MB / 3.842 GB, free: 4.746 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002434/10.95, allocations: 355.3 kB / 3.842 GB, free: 4.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005021/10.96, allocations: 2.675 MB / 3.845 GB, free: 2.867 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00261/10.96, allocations: 234.8 kB / 3.845 GB, free: 2.695 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004533/10.96, allocations: 100 kB / 3.845 GB, free: 2.625 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: 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,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,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.0007187/10.96, allocations: 187.8 kB / 3.845 GB, free: 2.457 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006086/10.96, allocations: 192.6 kB / 3.846 GB, free: 2.273 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.329/11.29, allocations: 6.831 MB / 3.852 GB, free: 77.86 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.692e-05/11.29, allocations: 76.11 kB / 3.852 GB, free: 77.86 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/11.29, allocations: 1.125 kB / 3.852 GB, free: 77.86 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01071/11.3, allocations: 5.66 MB / 3.858 GB, free: 77.18 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01784/11.32, allocations: 9.251 MB / 3.867 GB, free: 76.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.917e-05/11.32, allocations: 0 / 3.867 GB, free: 76.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002062/11.32, allocations: 358 kB / 3.867 GB, free: 76.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001167/11.32, allocations: 340 kB / 3.868 GB, free: 76.72 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003545/11.32, allocations: 39.81 kB / 3.868 GB, free: 76.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001812/11.32, allocations: 2.68 MB / 3.87 GB, free: 74.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.13e-06/11.32, allocations: 5.625 kB / 3.87 GB, free: 74.66 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01231/11.34, allocations: 6.411 MB / 3.876 GB, free: 74.22 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001802/11.34, allocations: 0.6882 MB / 3.877 GB, free: 74.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006078/11.34, allocations: 22.44 kB / 3.877 GB, free: 74.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002208/11.34, allocations: 156.4 kB / 3.877 GB, free: 74.09 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003886/11.34, allocations: 137.2 kB / 3.877 GB, free: 74.09 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002067/11.34, allocations: 67.44 kB / 3.878 GB, free: 74.09 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001964/11.34, allocations: 1.031 MB / 3.879 GB, free: 73.98 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.84e-07/11.34, allocations: 0 / 3.879 GB, free: 73.98 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0105/11.35, allocations: 2.609 MB / 3.881 GB, free: 73.98 MB / 0.5105 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: 43 ($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,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,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.01199/11.37, allocations: 2.971 MB / 3.884 GB, free: 73.83 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009659/11.38, allocations: 4.663 MB / 3.889 GB, free: 73.57 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.403e-06/11.38, allocations: 2.375 kB / 3.889 GB, free: 73.57 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004068/11.38, allocations: 2.126 MB / 3.891 GB, free: 73.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005157/11.38, allocations: 0.7739 MB / 3.891 GB, free: 73.48 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/11.4, allocations: 5.698 MB / 3.897 GB, free: 72.38 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002037/11.4, allocations: 2.168 MB / 3.899 GB, free: 71.64 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009294/11.4, allocations: 176.2 kB / 3.899 GB, free: 71.63 MB / 0.5105 GB Notification: Performance of SimCode: time 1.984e-06/11.4, allocations: 2.953 kB / 3.899 GB, free: 71.63 MB / 0.5105 GB Notification: Performance of Templates: time 0.1331/11.53, allocations: 94.11 MB / 3.991 GB, free: 57.32 MB / 0.5105 GB