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.BranchingPipes1.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.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.321/2.321, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.153e-05/3.184e-05, allocations: 7.984 kB / 303.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.287, allocations: 54.85 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.551/6.838, allocations: 2.655 GB / 3.005 GB, free: 139.7 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/6.838, allocations: 71.7 kB / 3.005 GB, free: 139.7 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.491/10.33, allocations: 0.7879 GB / 3.793 GB, free: 36.74 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.253e-06/10.33, allocations: 0 / 3.793 GB, free: 36.74 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002659/10.33, allocations: 71.12 kB / 3.793 GB, free: 36.73 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01561/10.35, allocations: 3.944 MB / 3.797 GB, free: 34.78 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/10.35, allocations: 11.56 kB / 3.797 GB, free: 34.78 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007701/10.35, allocations: 0.8312 MB / 3.798 GB, free: 34.64 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007075/10.36, allocations: 2.086 MB / 3.8 GB, free: 34.18 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002074/10.36, allocations: 98.11 kB / 3.8 GB, free: 34.18 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008168/10.36, allocations: 115.4 kB / 3.8 GB, free: 34.18 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007056/10.37, allocations: 2.874 MB / 3.803 GB, free: 34.17 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007486/10.38, allocations: 2.879 MB / 3.805 GB, free: 33.62 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.248e-05/10.38, allocations: 2.25 kB / 3.805 GB, free: 33.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003486/10.38, allocations: 11.88 kB / 3.805 GB, free: 33.61 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002313/10.38, allocations: 170.7 kB / 3.806 GB, free: 33.61 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.6264/11, allocations: 108.9 MB / 3.912 GB, free: 62.29 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003414/11.01, allocations: 1.581 MB / 3.914 GB, free: 62.26 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002093/11.01, allocations: 0.9798 MB / 3.914 GB, free: 62.25 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03721/11.05, allocations: 17.54 MB / 3.932 GB, free: 51.28 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002652/11.05, allocations: 1.225 MB / 3.933 GB, free: 51.13 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001483/11.05, allocations: 164.7 kB / 3.933 GB, free: 51.13 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=152): time 1.022e-05/11.05, allocations: 0.6094 kB / 3.933 GB, free: 51.13 MB / 0.5261 GB Notification: Performance of matching and sorting (n=164): time 0.03045/11.08, allocations: 7.904 MB / 3.941 GB, free: 49.56 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/11.08, allocations: 0.5095 MB / 3.941 GB, free: 48.97 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002504/11.08, allocations: 1.188 MB / 3.942 GB, free: 48.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000471/11.08, allocations: 29.39 kB / 3.942 GB, free: 48.77 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009965/11.08, allocations: 0.9895 MB / 3.943 GB, free: 48.36 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008603/11.09, allocations: 0.5361 MB / 3.944 GB, free: 48.08 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002213/11.09, allocations: 0 / 3.944 GB, free: 48.08 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001633/11.09, allocations: 397.4 kB / 3.944 GB, free: 47.77 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002283/11.09, allocations: 1.039 MB / 3.945 GB, free: 47.76 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002724/11.09, allocations: 1.498 MB / 3.947 GB, free: 47.26 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01453/11.11, allocations: 2.846 MB / 3.949 GB, free: 47.24 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.662e-05/11.11, allocations: 4.656 kB / 3.949 GB, free: 47.24 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01946/11.13, allocations: 4.611 MB / 3.954 GB, free: 47.09 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009217/11.13, allocations: 4.428 MB / 3.958 GB, free: 42.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.186e-05/11.13, allocations: 15.41 kB / 3.958 GB, free: 42.49 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004836/11.13, allocations: 0.8038 MB / 3.959 GB, free: 42.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002857/11.13, allocations: 474.9 kB / 3.96 GB, free: 42.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004153/11.14, allocations: 3.329 MB / 3.963 GB, free: 40.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0036/11.14, allocations: 232.9 kB / 3.963 GB, free: 40.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006828/11.14, allocations: 107.4 kB / 3.963 GB, free: 40.36 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/11.14, allocations: 4.594 kB / 3.963 GB, free: 40.36 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01964/11.16, allocations: 4.2 MB / 3.967 GB, free: 40.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.549e-05/11.16, allocations: 14.62 kB / 3.967 GB, free: 40.28 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/11.16, allocations: 327.1 kB / 3.968 GB, free: 40.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00269/11.17, allocations: 0.4938 MB / 3.968 GB, free: 40.24 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00444/11.17, allocations: 3.985 MB / 3.972 GB, free: 37.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002659/11.17, allocations: 203.2 kB / 3.972 GB, free: 37.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005082/11.17, allocations: 107.2 kB / 3.972 GB, free: 37.47 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0007497/11.18, allocations: 243.5 kB / 3.972 GB, free: 37.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006354/11.18, allocations: 191.5 kB / 3.973 GB, free: 37.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01307/11.19, allocations: 6.684 MB / 3.979 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.602e-05/11.19, allocations: 69.41 kB / 3.979 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.053e-06/11.19, allocations: 3.344 kB / 3.979 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01039/11.2, allocations: 5.668 MB / 3.985 GB, free: 35.93 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0177/11.22, allocations: 9.039 MB / 3.994 GB, free: 35.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.226e-05/11.22, allocations: 3.156 kB / 3.994 GB, free: 35.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001901/11.22, allocations: 292.9 kB / 3.994 GB, free: 35.34 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005131/11.22, allocations: 2.345 MB / 3.996 GB, free: 35.25 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004222/11.22, allocations: 37.64 kB / 3.996 GB, free: 35.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004827/11.23, allocations: 4.428 MB / 4.001 GB, free: 33.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-06/11.23, allocations: 1.969 kB / 4.001 GB, free: 33.12 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01349/11.24, allocations: 7.114 MB / 4.008 GB, free: 32.47 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001908/11.25, allocations: 0.6949 MB / 4.008 GB, free: 32.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007383/11.25, allocations: 24.67 kB / 4.008 GB, free: 32.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002648/11.25, allocations: 157.5 kB / 4.008 GB, free: 32.16 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005593/11.25, allocations: 131.3 kB / 4.008 GB, free: 32.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003052/11.25, allocations: 67.16 kB / 4.009 GB, free: 32.16 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002506/11.25, allocations: 1.076 MB / 4.01 GB, free: 32.01 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.161e-06/11.25, allocations: 1.469 kB / 4.01 GB, free: 32.01 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.012/11.26, allocations: 2.698 MB / 4.012 GB, free: 31.89 MB / 0.5261 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (151): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01319/11.28, allocations: 2.998 MB / 4.015 GB, free: 31.58 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01023/11.29, allocations: 4.957 MB / 4.02 GB, free: 31.05 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.154e-06/11.29, allocations: 6.859 kB / 4.02 GB, free: 31.05 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004142/11.29, allocations: 2.101 MB / 4.022 GB, free: 30.91 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005563/11.3, allocations: 0.7837 MB / 4.023 GB, free: 30.89 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01163/11.31, allocations: 5.417 MB / 4.028 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002331/11.31, allocations: 2.174 MB / 4.03 GB, free: 28.96 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001046/11.31, allocations: 184.3 kB / 4.03 GB, free: 28.96 MB / 0.5261 GB Notification: Performance of SimCode: time 1.82e-06/11.31, allocations: 2.906 kB / 4.03 GB, free: 28.96 MB / 0.5261 GB Notification: Performance of Templates: time 0.4999/11.81, allocations: 112.7 MB / 4.14 GB, free: 81.72 MB / 0.5417 GB