Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 1.84/1.84, allocations: 209.3 MB / 224.9 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004364/0.0004366, allocations: 12 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.28, allocations: 48.7 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.048/6.328, allocations: 2.567 GB / 2.891 GB, free: 98.33 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/6.328, allocations: 74.23 kB / 2.891 GB, free: 98.33 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.5/10.83, allocations: 0.9848 GB / 3.875 GB, free: 8.965 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.453e-06/10.83, allocations: 0 / 3.875 GB, free: 8.965 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000307/10.83, allocations: 79.53 kB / 3.875 GB, free: 8.891 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.01813/10.85, allocations: 4.389 MB / 3.88 GB, free: 4.426 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/10.85, allocations: 12.03 kB / 3.88 GB, free: 4.414 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009054/10.86, allocations: 0.916 MB / 3.881 GB, free: 3.496 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008735/10.86, allocations: 2.196 MB / 3.883 GB, free: 1.25 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004098/10.87, allocations: 196.2 kB / 3.883 GB, free: 1.055 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001024/10.87, allocations: 232.5 kB / 3.883 GB, free: 0.8281 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3547/11.22, allocations: 3.887 MB / 3.887 GB, free: 30.18 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-05/11.22, allocations: 10.3 kB / 3.887 GB, free: 30.18 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006059/11.22, allocations: 96.83 kB / 3.887 GB, free: 30.18 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002984/11.22, allocations: 171.2 kB / 3.887 GB, free: 30.17 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01958/11.24, allocations: 3.598 MB / 3.891 GB, free: 30.14 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.04893/11.29, allocations: 16.71 MB / 3.907 GB, free: 20.25 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01727/11.31, allocations: 3.142 MB / 3.91 GB, free: 19.66 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04473/11.35, allocations: 18.55 MB / 3.928 GB, free: 24.11 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006859/11.36, allocations: 1.847 MB / 3.93 GB, free: 23.98 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=188): time 7.082e-06/11.36, allocations: 1.094 kB / 3.93 GB, free: 23.98 MB / 0.4948 GB Notification: Performance of matching and sorting (n=208): time 0.04013/11.4, allocations: 10.27 MB / 3.94 GB, free: 22.76 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001989/11.4, allocations: 264.7 kB / 3.94 GB, free: 22.48 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002923/11.4, allocations: 1.442 MB / 3.942 GB, free: 22.26 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006018/11.4, allocations: 68.22 kB / 3.942 GB, free: 22.23 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009817/11.4, allocations: 0.9805 MB / 3.943 GB, free: 21.84 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001009/11.41, allocations: 0.6947 MB / 3.943 GB, free: 21.46 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002567/11.41, allocations: 48.09 kB / 3.944 GB, free: 21.46 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002921/11.41, allocations: 411.8 kB / 3.944 GB, free: 21.14 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00368/11.41, allocations: 1.258 MB / 3.945 GB, free: 21.14 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004342/11.41, allocations: 1.811 MB / 3.947 GB, free: 20.57 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004328/11.42, allocations: 1.521 MB / 3.948 GB, free: 20.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.674e-05/11.42, allocations: 7.031 kB / 3.948 GB, free: 20.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=305) (initialization): time 0.01079/11.43, allocations: 3.639 MB / 3.952 GB, free: 20.27 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002845/11.43, allocations: 5.47 MB / 3.957 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.116e-05/11.43, allocations: 15.97 kB / 3.957 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001806/11.43, allocations: 347.7 kB / 3.958 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003494/11.44, allocations: 0.6019 MB / 3.958 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003036/11.44, allocations: 3.099 MB / 3.961 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004128/11.45, allocations: 334.7 kB / 3.962 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007217/11.45, allocations: 119.7 kB / 3.962 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/11.45, allocations: 8.594 kB / 3.962 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01042/11.46, allocations: 3.471 MB / 3.965 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.67e-05/11.46, allocations: 15.19 kB / 3.965 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001704/11.46, allocations: 355.1 kB / 3.965 GB, free: 11.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003681/11.46, allocations: 0.5897 MB / 3.966 GB, free: 11.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002931/11.46, allocations: 3.094 MB / 3.969 GB, free: 9.148 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003566/11.47, allocations: 335.7 kB / 3.969 GB, free: 9.129 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005144/11.47, allocations: 123.8 kB / 3.97 GB, free: 9.129 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.medium.phase,junctionVolume.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 () * Number of clocked 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,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002178/11.47, allocations: 0.7818 MB / 3.97 GB, free: 8.871 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006169/11.47, allocations: 223.6 kB / 3.97 GB, free: 8.758 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01634/11.49, allocations: 8.236 MB / 3.979 GB, free: 23.98 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.395e-05/11.49, allocations: 97.39 kB / 3.979 GB, free: 23.98 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/11.49, allocations: 0 / 3.979 GB, free: 23.98 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01344/11.5, allocations: 7.151 MB / 3.986 GB, free: 23.05 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0263/11.53, allocations: 13.15 MB / 3.998 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.479e-05/11.53, allocations: 7.609 kB / 3.998 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002756/11.53, allocations: 486.4 kB / 3.999 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002557/11.53, allocations: 478.3 kB / 3.999 GB, free: 21.36 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005274/11.53, allocations: 77.39 kB / 3.999 GB, free: 21.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003002/11.54, allocations: 3.225 MB / 4.003 GB, free: 18.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.006e-06/11.54, allocations: 10.34 kB / 4.003 GB, free: 18.77 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01607/11.55, allocations: 8.479 MB / 4.011 GB, free: 17.34 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002344/11.56, allocations: 0.7923 MB / 4.012 GB, free: 17 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007563/11.56, allocations: 62.23 kB / 4.012 GB, free: 17 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002901/11.56, allocations: 236.4 kB / 4.012 GB, free: 16.98 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005353/11.56, allocations: 189.3 kB / 4.012 GB, free: 16.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002696/11.56, allocations: 92.14 kB / 4.012 GB, free: 16.98 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00234/11.56, allocations: 1.196 MB / 4.013 GB, free: 16.83 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.34e-07/11.56, allocations: 0 / 4.013 GB, free: 16.83 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01203/11.57, allocations: 2.892 MB / 4.016 GB, free: 16.72 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 57 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase,junctionVolume.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (237): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * 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.01252/11.59, allocations: 3.001 MB / 4.019 GB, free: 16.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01503/11.6, allocations: 5.841 MB / 4.025 GB, free: 16.05 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/11.6, allocations: 9 kB / 4.025 GB, free: 16.05 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006293/11.61, allocations: 2.976 MB / 4.028 GB, free: 15.91 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007209/11.62, allocations: 1.124 MB / 4.029 GB, free: 15.88 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7153/12.33, allocations: 131.5 MB / 4.157 GB, free: 51.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003223/12.33, allocations: 2.331 MB / 4.16 GB, free: 50.71 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001406/12.34, allocations: 240.5 kB / 4.16 GB, free: 50.71 MB / 0.5105 GB Notification: Performance of SimCode: time 2.022e-06/12.34, allocations: 0 / 4.16 GB, free: 50.71 MB / 0.5105 GB Notification: Performance of Templates: time 0.5437/12.88, allocations: 137.3 MB / 4.294 GB, free: 71.54 MB / 0.5261 GB