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.BranchingPipes18.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.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|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.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 2.121/2.121, allocations: 235.1 MB / 243 MB, free: 9.492 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.454e-05/1.46e-05, allocations: 0 / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2769, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.401/6.678, allocations: 2.677 GB / 3.027 GB, free: 125.8 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/6.678, allocations: 75.66 kB / 3.027 GB, free: 125.8 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.548/11.23, allocations: 0.9989 GB / 4.026 GB, free: 33.01 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.022e-06/11.23, allocations: 0 / 4.026 GB, free: 33.01 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003102/11.23, allocations: 66.19 kB / 4.026 GB, free: 33 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01641/11.24, allocations: 4.246 MB / 4.03 GB, free: 30.98 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/11.24, allocations: 8.906 kB / 4.03 GB, free: 30.98 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008908/11.25, allocations: 0.9305 MB / 4.031 GB, free: 30.83 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007716/11.26, allocations: 2.21 MB / 4.033 GB, free: 30.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002599/11.26, allocations: 101.1 kB / 4.033 GB, free: 30.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009441/11.26, allocations: 138.5 kB / 4.033 GB, free: 30.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00725/11.27, allocations: 2.791 MB / 4.036 GB, free: 30.28 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008579/11.28, allocations: 3.015 MB / 4.039 GB, free: 29.66 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.49e-05/11.28, allocations: 11.88 kB / 4.039 GB, free: 29.65 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004871/11.28, allocations: 7.688 kB / 4.039 GB, free: 29.65 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002723/11.28, allocations: 170.1 kB / 4.039 GB, free: 29.64 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.1163/11.39, allocations: 49.69 MB / 4.087 GB, free: 10.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005368/11.4, allocations: 2.328 MB / 4.09 GB, free: 8.172 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002805/11.4, allocations: 1.182 MB / 4.091 GB, free: 7.105 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4036/11.81, allocations: 17.29 MB / 4.108 GB, free: 43.95 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003048/11.81, allocations: 1.353 MB / 4.109 GB, free: 43.79 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=186): time 6.212e-06/11.81, allocations: 0 / 4.109 GB, free: 43.79 MB / 0.5261 GB Notification: Performance of matching and sorting (n=206): time 0.05336/11.86, allocations: 10.28 MB / 4.119 GB, free: 42.19 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/11.86, allocations: 368.1 kB / 4.119 GB, free: 41.78 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002411/11.87, allocations: 1.151 MB / 4.121 GB, free: 41.61 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005536/11.87, allocations: 33.36 kB / 4.121 GB, free: 41.57 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001005/11.87, allocations: 1.031 MB / 4.122 GB, free: 41.15 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001039/11.87, allocations: 0.6603 MB / 4.122 GB, free: 40.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000288/11.87, allocations: 5.188 kB / 4.122 GB, free: 40.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001886/11.87, allocations: 402.1 kB / 4.123 GB, free: 40.49 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002408/11.87, allocations: 1.098 MB / 4.124 GB, free: 40.48 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003102/11.87, allocations: 1.634 MB / 4.125 GB, free: 39.93 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01282/11.89, allocations: 2.084 MB / 4.127 GB, free: 39.91 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.963e-05/11.89, allocations: 3.562 kB / 4.127 GB, free: 39.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.01819/11.9, allocations: 3.88 MB / 4.131 GB, free: 39.74 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001145/11.91, allocations: 5.464 MB / 4.136 GB, free: 34.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.092e-05/11.91, allocations: 14.97 kB / 4.136 GB, free: 34.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001186/11.91, allocations: 313.6 kB / 4.137 GB, free: 34.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003748/11.91, allocations: 0.6039 MB / 4.137 GB, free: 34.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002429/11.91, allocations: 3.134 MB / 4.14 GB, free: 31.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004125/11.92, allocations: 323.4 kB / 4.141 GB, free: 31.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007725/11.92, allocations: 127 kB / 4.141 GB, free: 31.41 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/11.92, allocations: 10.48 kB / 4.141 GB, free: 31.41 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01555/11.93, allocations: 3.482 MB / 4.144 GB, free: 31.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.442e-05/11.93, allocations: 15.84 kB / 4.144 GB, free: 31.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0011/11.94, allocations: 319.8 kB / 4.145 GB, free: 31.28 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003647/11.94, allocations: 0.5923 MB / 4.145 GB, free: 31.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002376/11.94, allocations: 3.13 MB / 4.148 GB, free: 28.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003268/11.94, allocations: 304.3 kB / 4.149 GB, free: 28.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006803/11.95, allocations: 127.4 kB / 4.149 GB, free: 28.67 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,junctionVolume.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001047/11.95, allocations: 254.3 kB / 4.149 GB, free: 28.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006558/11.95, allocations: 204.8 kB / 4.149 GB, free: 28.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02352/11.97, allocations: 8.007 MB / 4.157 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001001/11.97, allocations: 83.61 kB / 4.157 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/11.97, allocations: 3.781 kB / 4.157 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01961/11.99, allocations: 6.909 MB / 4.164 GB, free: 26.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03268/12.02, allocations: 12.47 MB / 4.176 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.599e-05/12.02, allocations: 7.375 kB / 4.176 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00245/12.03, allocations: 447.8 kB / 4.176 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001464/12.03, allocations: 431.5 kB / 4.177 GB, free: 25.41 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004638/12.03, allocations: 49.61 kB / 4.177 GB, free: 25.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002487/12.03, allocations: 3.368 MB / 4.18 GB, free: 22.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.218e-05/12.03, allocations: 9.688 kB / 4.18 GB, free: 22.79 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02242/12.05, allocations: 8.373 MB / 4.188 GB, free: 21.32 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002336/12.06, allocations: 0.7841 MB / 4.189 GB, free: 21 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008777/12.06, allocations: 31.09 kB / 4.189 GB, free: 21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003006/12.06, allocations: 182.7 kB / 4.189 GB, free: 20.98 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000588/12.06, allocations: 186.5 kB / 4.189 GB, free: 20.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002939/12.06, allocations: 93.55 kB / 4.19 GB, free: 20.98 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002112/12.06, allocations: 1.08 MB / 4.191 GB, free: 20.83 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.01e-06/12.06, allocations: 0 / 4.191 GB, free: 20.83 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0118/12.07, allocations: 2.757 MB / 4.193 GB, free: 20.72 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 51 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse49.phase,$cse49.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,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (228): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 21 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01288/12.09, allocations: 3.24 MB / 4.196 GB, free: 20.39 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01165/12.1, allocations: 5.29 MB / 4.202 GB, free: 20.09 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/12.1, allocations: 0 / 4.202 GB, free: 20.09 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005431/12.1, allocations: 2.683 MB / 4.204 GB, free: 19.95 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006453/12.11, allocations: 1.011 MB / 4.205 GB, free: 19.91 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1688/12.28, allocations: 59.58 MB / 4.263 GB, free: 7.25 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003988/12.28, allocations: 2.294 MB / 4.266 GB, free: 5.469 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001913/12.29, allocations: 233 kB / 4.266 GB, free: 5.258 MB / 0.5261 GB Notification: Performance of SimCode: time 2.49e-06/12.29, allocations: 0 / 4.266 GB, free: 5.258 MB / 0.5261 GB Notification: Performance of Templates: time 0.6252/12.91, allocations: 135.1 MB / 4.398 GB, free: 46.73 MB / 0.5417 GB