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.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 2.155/2.155, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.565e-05/2.575e-05, allocations: 4 kB / 309.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.4091, allocations: 54.85 MB / 364.5 MB, free: 5.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.236/6.645, allocations: 2.677 GB / 3.033 GB, free: 98.62 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001949/6.645, allocations: 74.53 kB / 3.033 GB, free: 98.59 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.064/10.71, allocations: 0.9022 GB / 3.935 GB, free: 31.29 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.02e-06/10.71, allocations: 0.5625 kB / 3.935 GB, free: 31.29 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002436/10.71, allocations: 67.08 kB / 3.935 GB, free: 31.28 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01433/10.72, allocations: 3.96 MB / 3.939 GB, free: 29.58 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/10.72, allocations: 10.06 kB / 3.939 GB, free: 29.58 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008441/10.73, allocations: 0.8721 MB / 3.94 GB, free: 29.44 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006753/10.74, allocations: 2.097 MB / 3.942 GB, free: 28.99 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002268/10.74, allocations: 185.1 kB / 3.942 GB, free: 28.99 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005692/10.74, allocations: 203.1 kB / 3.942 GB, free: 28.98 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009443/10.75, allocations: 3.628 MB / 3.946 GB, free: 28.43 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-05/10.75, allocations: 11.09 kB / 3.946 GB, free: 28.43 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003606/10.75, allocations: 89.59 kB / 3.946 GB, free: 28.43 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002377/10.75, allocations: 161.8 kB / 3.946 GB, free: 28.43 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009002/10.76, allocations: 3.207 MB / 3.949 GB, free: 28.41 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.02173/10.78, allocations: 15.46 MB / 3.964 GB, free: 18.98 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00646/10.79, allocations: 2.685 MB / 3.967 GB, free: 18.38 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002163/10.79, allocations: 1.137 MB / 3.968 GB, free: 18.37 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04232/10.83, allocations: 18.77 MB / 3.987 GB, free: 22.62 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005383/10.84, allocations: 1.706 MB / 3.988 GB, free: 22.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=173): time 5.853e-06/10.84, allocations: 0 / 3.988 GB, free: 22.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=189): time 0.02588/10.86, allocations: 7.712 MB / 3.996 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001767/10.86, allocations: 260.4 kB / 3.996 GB, free: 21.14 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002446/10.87, allocations: 1.341 MB / 3.997 GB, free: 20.96 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003905/10.87, allocations: 59.45 kB / 3.997 GB, free: 20.93 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007888/10.87, allocations: 0.9252 MB / 3.998 GB, free: 20.46 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006857/10.87, allocations: 0.6242 MB / 3.999 GB, free: 20.07 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001934/10.87, allocations: 47.81 kB / 3.999 GB, free: 20.06 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002399/10.87, allocations: 393.6 kB / 3.999 GB, free: 19.75 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00218/10.87, allocations: 1.019 MB / 4 GB, free: 19.74 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002477/10.87, allocations: 1.512 MB / 4.002 GB, free: 19.24 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002463/10.88, allocations: 1.279 MB / 4.003 GB, free: 19.16 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/10.88, allocations: 3.531 kB / 4.003 GB, free: 19.16 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.006685/10.88, allocations: 2.959 MB / 4.006 GB, free: 18.94 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002294/10.88, allocations: 4.862 MB / 4.011 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.801e-05/10.88, allocations: 10.44 kB / 4.011 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/10.89, allocations: 238 kB / 4.011 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003084/10.89, allocations: 0.527 MB / 4.011 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002129/10.89, allocations: 2.428 MB / 4.014 GB, free: 11.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003419/10.89, allocations: 305.5 kB / 4.014 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004044/10.9, allocations: 110.2 kB / 4.014 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/10.9, allocations: 9.953 kB / 4.014 GB, free: 11.76 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006114/10.9, allocations: 2.802 MB / 4.017 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.395e-05/10.9, allocations: 9.75 kB / 4.017 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/10.9, allocations: 239 kB / 4.017 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002796/10.91, allocations: 0.5214 MB / 4.018 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002058/10.91, allocations: 2.431 MB / 4.02 GB, free: 9.516 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002612/10.91, allocations: 307.2 kB / 4.02 GB, free: 9.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002969/10.91, allocations: 103.9 kB / 4.02 GB, free: 9.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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,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 (254): * Single equations (assignments): 248 * 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: 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 prepare postOptimizeDAE: time 0.0007701/10.91, allocations: 317.8 kB / 4.021 GB, free: 9.316 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005185/10.91, allocations: 208.7 kB / 4.021 GB, free: 9.211 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0116/10.92, allocations: 7.462 MB / 4.028 GB, free: 8.434 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.61e-05/10.92, allocations: 87.8 kB / 4.028 GB, free: 8.434 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/10.92, allocations: 1.031 kB / 4.028 GB, free: 8.434 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009523/10.93, allocations: 6.472 MB / 4.035 GB, free: 7.496 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02836/10.96, allocations: 12.08 MB / 4.046 GB, free: 21.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.861e-05/10.96, allocations: 3.5 kB / 4.046 GB, free: 21.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004187/10.97, allocations: 437.7 kB / 4.047 GB, free: 21.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002799/10.97, allocations: 341.1 kB / 4.047 GB, free: 21.84 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004019/10.97, allocations: 75.25 kB / 4.047 GB, free: 21.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003146/10.97, allocations: 2.522 MB / 4.05 GB, free: 19.77 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-05/10.97, allocations: 9.906 kB / 4.05 GB, free: 19.77 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01877/10.99, allocations: 7.433 MB / 4.057 GB, free: 17.87 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002806/10.99, allocations: 0.7467 MB / 4.058 GB, free: 17.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008455/10.99, allocations: 70.11 kB / 4.058 GB, free: 17.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005293/11, allocations: 219.3 kB / 4.058 GB, free: 17.34 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007211/11, allocations: 172.7 kB / 4.058 GB, free: 17.31 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000457/11, allocations: 88.14 kB / 4.058 GB, free: 17.29 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003825/11.01, allocations: 1.123 MB / 4.059 GB, free: 16.84 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.912e-06/11.01, allocations: 3.938 kB / 4.059 GB, free: 16.83 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01167/11.02, allocations: 2.743 MB / 4.062 GB, free: 16.29 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (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) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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) * 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 (212): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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.01022/11.03, allocations: 2.863 MB / 4.065 GB, free: 15.65 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00977/11.04, allocations: 5.068 MB / 4.07 GB, free: 13.72 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/11.04, allocations: 3.938 kB / 4.07 GB, free: 13.72 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004686/11.04, allocations: 2.666 MB / 4.072 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005612/11.05, allocations: 0.9898 MB / 4.073 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6153/11.66, allocations: 128.1 MB / 4.198 GB, free: 67.99 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002058/11.66, allocations: 2.246 MB / 4.201 GB, free: 67.2 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001209/11.67, allocations: 216.5 kB / 4.201 GB, free: 67.2 MB / 0.5573 GB Notification: Performance of SimCode: time 1.65e-06/11.67, allocations: 0 / 4.201 GB, free: 67.2 MB / 0.5573 GB Notification: Performance of Templates: time 0.1455/11.81, allocations: 117.5 MB / 4.316 GB, free: 11.11 MB / 0.5573 GB