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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.335/2.335, allocations: 235 MB / 248.1 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.118e-05/3.146e-05, allocations: 4 kB / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3315, allocations: 54.86 MB / 364.5 MB, free: 5.508 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.972/6.304, allocations: 2.658 GB / 3.014 GB, free: 12.38 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/6.304, allocations: 77.16 kB / 3.014 GB, free: 12.3 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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 3.923/10.23, allocations: 0.7984 GB / 3.813 GB, free: 37.88 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.917e-06/10.23, allocations: 1 kB / 3.813 GB, free: 37.88 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003067/10.23, allocations: 70.73 kB / 3.813 GB, free: 37.88 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.01573/10.24, allocations: 3.845 MB / 3.816 GB, free: 36.22 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/10.24, allocations: 12.44 kB / 3.816 GB, free: 36.22 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008362/10.25, allocations: 0.8472 MB / 3.817 GB, free: 36.08 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00737/10.26, allocations: 2.089 MB / 3.819 GB, free: 35.64 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003366/10.26, allocations: 182 kB / 3.819 GB, free: 35.64 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009133/10.26, allocations: 198.5 kB / 3.82 GB, free: 35.63 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01114/10.27, allocations: 3.567 MB / 3.823 GB, free: 35.08 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.633e-05/10.27, allocations: 3.75 kB / 3.823 GB, free: 35.08 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004326/10.27, allocations: 93.77 kB / 3.823 GB, free: 35.08 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002613/10.27, allocations: 158 kB / 3.823 GB, free: 35.08 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01014/10.28, allocations: 3.166 MB / 3.826 GB, free: 35.06 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.02594/10.31, allocations: 15.06 MB / 3.841 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006763/10.32, allocations: 2.217 MB / 3.843 GB, free: 26 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002165/10.32, allocations: 1.046 MB / 3.844 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04314/10.36, allocations: 18.86 MB / 3.863 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00553/10.37, allocations: 1.646 MB / 3.864 GB, free: 14.15 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.529e-06/10.37, allocations: 0 / 3.864 GB, free: 14.15 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.0231/10.39, allocations: 6.947 MB / 3.871 GB, free: 29.23 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001855/10.39, allocations: 284.3 kB / 3.871 GB, free: 28.91 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002641/10.39, allocations: 1.393 MB / 3.873 GB, free: 28.73 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003922/10.39, allocations: 62.73 kB / 3.873 GB, free: 28.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007658/10.39, allocations: 0.9269 MB / 3.874 GB, free: 28.22 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006437/10.39, allocations: 0.5791 MB / 3.874 GB, free: 27.86 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002011/10.39, allocations: 43.03 kB / 3.874 GB, free: 27.86 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002458/10.39, allocations: 390.1 kB / 3.875 GB, free: 27.54 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002179/10.4, allocations: 1.042 MB / 3.876 GB, free: 27.54 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002557/10.4, allocations: 1.534 MB / 3.877 GB, free: 26.98 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002658/10.4, allocations: 1.281 MB / 3.879 GB, free: 26.93 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.34e-05/10.4, allocations: 7 kB / 3.879 GB, free: 26.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.007965/10.41, allocations: 3.535 MB / 3.882 GB, free: 26.77 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002458/10.41, allocations: 5.187 MB / 3.887 GB, free: 21.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.055e-05/10.41, allocations: 20.84 kB / 3.887 GB, free: 21.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01875/10.43, allocations: 2.761 MB / 3.89 GB, free: 21.37 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001734/10.43, allocations: 314.6 kB / 3.89 GB, free: 21.37 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006382/10.44, allocations: 3.298 MB / 3.893 GB, free: 20.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003402/10.44, allocations: 259.6 kB / 3.894 GB, free: 20.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005384/10.44, allocations: 101.5 kB / 3.894 GB, free: 20.79 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/10.44, allocations: 7.625 kB / 3.894 GB, free: 20.79 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007618/10.45, allocations: 3.248 MB / 3.897 GB, free: 20.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.301e-05/10.45, allocations: 16.62 kB / 3.897 GB, free: 20.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008244/10.46, allocations: 1.587 MB / 3.898 GB, free: 20.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002063/10.46, allocations: 357.6 kB / 3.899 GB, free: 20.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004421/10.47, allocations: 2.558 MB / 3.901 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002615/10.47, allocations: 263.9 kB / 3.901 GB, free: 20.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003707/10.47, allocations: 104 kB / 3.902 GB, free: 20.09 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.0007193/10.47, allocations: 252.7 kB / 3.902 GB, free: 19.95 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005589/10.47, allocations: 200.1 kB / 3.902 GB, free: 19.84 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01253/10.48, allocations: 7.694 MB / 3.91 GB, free: 19.04 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.124e-05/10.48, allocations: 86.25 kB / 3.91 GB, free: 19.04 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/10.48, allocations: 3.469 kB / 3.91 GB, free: 19.04 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01008/10.49, allocations: 6.604 MB / 3.916 GB, free: 18.18 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01858/10.51, allocations: 10.82 MB / 3.927 GB, free: 17.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/10.51, allocations: 0 / 3.927 GB, free: 17.42 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002652/10.51, allocations: 399.2 kB / 3.927 GB, free: 17.42 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001836/10.52, allocations: 351 kB / 3.927 GB, free: 17.38 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004317/10.52, allocations: 63.47 kB / 3.927 GB, free: 17.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002223/10.52, allocations: 2.573 MB / 3.93 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.32e-06/10.52, allocations: 3.953 kB / 3.93 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01217/10.53, allocations: 6.896 MB / 3.937 GB, free: 14.67 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002124/10.53, allocations: 0.7534 MB / 3.937 GB, free: 14.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007623/10.53, allocations: 58.97 kB / 3.937 GB, free: 14.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002719/10.54, allocations: 197.1 kB / 3.938 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000481/10.54, allocations: 147.2 kB / 3.938 GB, free: 14.31 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002309/10.54, allocations: 70.53 kB / 3.938 GB, free: 14.31 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002422/10.54, allocations: 1.164 MB / 3.939 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.86e-07/10.54, allocations: 0 / 3.939 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01139/10.55, allocations: 2.765 MB / 3.942 GB, free: 13.75 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) * 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.01261/10.56, allocations: 2.835 MB / 3.944 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01107/10.58, allocations: 5.056 MB / 3.949 GB, free: 11.69 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.638e-06/10.58, allocations: 3.938 kB / 3.949 GB, free: 11.69 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004443/10.58, allocations: 2.371 MB / 3.952 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005846/10.59, allocations: 0.8664 MB / 3.953 GB, free: 10.46 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6382/11.22, allocations: 128.3 MB / 4.078 GB, free: 59.51 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002354/11.23, allocations: 2.26 MB / 4.08 GB, free: 58.72 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009958/11.23, allocations: 189.7 kB / 4.08 GB, free: 58.71 MB / 0.5417 GB Notification: Performance of SimCode: time 1.951e-06/11.23, allocations: 0 / 4.08 GB, free: 58.71 MB / 0.5417 GB Notification: Performance of Templates: time 0.1414/11.37, allocations: 97.46 MB / 4.175 GB, free: 24.2 MB / 0.5417 GB