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.SeriesPipes13.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.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_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.216/2.216, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.923e-05/2.947e-05, allocations: 4 kB / 309.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3261, allocations: 54.86 MB / 364.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.355/6.681, allocations: 2.658 GB / 3.014 GB, free: 114.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/6.681, allocations: 77.7 kB / 3.014 GB, free: 114.7 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.927/10.61, allocations: 0.8606 GB / 3.875 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.785e-06/10.61, allocations: 0 / 3.875 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002701/10.61, allocations: 66.12 kB / 3.875 GB, free: 12.41 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.0145/10.62, allocations: 3.844 MB / 3.879 GB, free: 8.527 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/10.62, allocations: 12.02 kB / 3.879 GB, free: 8.516 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007923/10.63, allocations: 0.836 MB / 3.879 GB, free: 7.68 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006584/10.64, allocations: 2.1 MB / 3.881 GB, free: 5.566 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003159/10.64, allocations: 175.6 kB / 3.882 GB, free: 5.402 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008982/10.64, allocations: 202 kB / 3.882 GB, free: 5.215 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009448/10.65, allocations: 3.56 MB / 3.885 GB, free: 1.477 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-05/10.65, allocations: 11.94 kB / 3.885 GB, free: 1.465 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003729/10.65, allocations: 90.5 kB / 3.885 GB, free: 1.387 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002423/10.65, allocations: 171.2 kB / 3.886 GB, free: 1.223 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009757/10.66, allocations: 3.168 MB / 3.889 GB, free: 14.05 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.3687/11.03, allocations: 15.03 MB / 3.903 GB, free: 30.91 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006844/11.04, allocations: 2.217 MB / 3.905 GB, free: 30.88 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002245/11.04, allocations: 1.041 MB / 3.907 GB, free: 30.88 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04187/11.08, allocations: 18.87 MB / 3.925 GB, free: 19.15 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005431/11.08, allocations: 1.648 MB / 3.927 GB, free: 19.07 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.465e-06/11.08, allocations: 0 / 3.927 GB, free: 19.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.02243/11.11, allocations: 6.942 MB / 3.933 GB, free: 18.36 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.194e-05/11.11, allocations: 278.9 kB / 3.934 GB, free: 18.04 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002676/11.11, allocations: 1.399 MB / 3.935 GB, free: 17.86 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004188/11.11, allocations: 56.98 kB / 3.935 GB, free: 17.83 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008077/11.11, allocations: 0.926 MB / 3.936 GB, free: 17.45 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007757/11.11, allocations: 0.5802 MB / 3.936 GB, free: 17.16 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001994/11.11, allocations: 41.78 kB / 3.937 GB, free: 17.16 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001499/11.11, allocations: 393.1 kB / 3.937 GB, free: 16.85 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002205/11.11, allocations: 1.039 MB / 3.938 GB, free: 16.84 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002712/11.12, allocations: 1.541 MB / 3.939 GB, free: 16.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002763/11.12, allocations: 1.282 MB / 3.941 GB, free: 16.24 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-05/11.12, allocations: 2.969 kB / 3.941 GB, free: 16.24 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.007954/11.13, allocations: 3.543 MB / 3.944 GB, free: 16.08 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001921/11.13, allocations: 5.175 MB / 3.949 GB, free: 26.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.703e-05/11.13, allocations: 17.86 kB / 3.949 GB, free: 26.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01825/11.15, allocations: 2.763 MB / 3.952 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001692/11.15, allocations: 313.4 kB / 3.952 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006263/11.16, allocations: 3.297 MB / 3.955 GB, free: 26.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002958/11.16, allocations: 264.2 kB / 3.956 GB, free: 26.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003775/11.16, allocations: 105.3 kB / 3.956 GB, free: 26.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/11.16, allocations: 3.219 kB / 3.956 GB, free: 26.1 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007107/11.17, allocations: 3.253 MB / 3.959 GB, free: 26.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-05/11.17, allocations: 14.44 kB / 3.959 GB, free: 26.01 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007444/11.17, allocations: 1.585 MB / 3.961 GB, free: 25.99 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002001/11.18, allocations: 359.8 kB / 3.961 GB, free: 25.99 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004446/11.18, allocations: 2.557 MB / 3.963 GB, free: 25.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00246/11.18, allocations: 263.2 kB / 3.964 GB, free: 25.42 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003472/11.18, allocations: 102.6 kB / 3.964 GB, free: 25.42 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.000713/11.18, allocations: 256.2 kB / 3.964 GB, free: 25.29 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005463/11.19, allocations: 200.2 kB / 3.964 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01258/11.2, allocations: 7.695 MB / 3.972 GB, free: 24.47 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.654e-05/11.2, allocations: 88.62 kB / 3.972 GB, free: 24.47 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/11.2, allocations: 6.5 kB / 3.972 GB, free: 24.47 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01019/11.21, allocations: 6.594 MB / 3.978 GB, free: 23.61 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01823/11.23, allocations: 10.82 MB / 3.989 GB, free: 22.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/11.23, allocations: 0 / 3.989 GB, free: 22.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002344/11.23, allocations: 402.4 kB / 3.989 GB, free: 22.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001776/11.23, allocations: 354.3 kB / 3.989 GB, free: 22.88 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004277/11.23, allocations: 63.17 kB / 3.99 GB, free: 22.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002199/11.23, allocations: 2.574 MB / 3.992 GB, free: 20.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.015e-06/11.23, allocations: 0 / 3.992 GB, free: 20.8 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/11.25, allocations: 6.898 MB / 3.999 GB, free: 20.16 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001927/11.25, allocations: 0.7528 MB / 4 GB, free: 19.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005477/11.25, allocations: 52.83 kB / 4 GB, free: 19.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002124/11.25, allocations: 198.2 kB / 4 GB, free: 19.82 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003702/11.25, allocations: 148.2 kB / 4 GB, free: 19.82 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002222/11.25, allocations: 69.92 kB / 4 GB, free: 19.82 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002296/11.25, allocations: 1.162 MB / 4.001 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.052e-06/11.25, allocations: 0 / 4.001 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01028/11.26, allocations: 2.772 MB / 4.004 GB, free: 19.54 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.01209/11.28, allocations: 2.831 MB / 4.007 GB, free: 19.24 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01074/11.29, allocations: 5.056 MB / 4.011 GB, free: 18.94 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.517e-06/11.29, allocations: 3.75 kB / 4.011 GB, free: 18.94 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004213/11.29, allocations: 2.358 MB / 4.014 GB, free: 18.86 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005352/11.3, allocations: 0.8748 MB / 4.015 GB, free: 18.84 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6298/11.93, allocations: 128 MB / 4.14 GB, free: 63.76 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00235/11.93, allocations: 2.256 MB / 4.142 GB, free: 63.01 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00139/11.93, allocations: 186.1 kB / 4.142 GB, free: 63.01 MB / 0.5417 GB Notification: Performance of SimCode: time 5.739e-06/11.93, allocations: 0 / 4.142 GB, free: 63.01 MB / 0.5417 GB Notification: Performance of Templates: time 0.1355/12.06, allocations: 97.46 MB / 4.237 GB, free: 51 MB / 0.5417 GB