Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.613/2.613, allocations: 234.9 MB / 251.1 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006014/0.0006015, allocations: 12 kB / 314.9 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3747, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.993/8.368, allocations: 2.678 GB / 3.039 GB, free: 13.86 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/8.368, allocations: 83.27 kB / 3.039 GB, free: 13.82 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721/14.09, allocations: 1.01 GB / 4.049 GB, free: 38.17 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.615e-06/14.09, allocations: 0 / 4.049 GB, free: 38.17 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003958/14.09, allocations: 74.52 kB / 4.049 GB, free: 38.16 MB / 0.5261 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.02196/14.11, allocations: 4.536 MB / 4.054 GB, free: 36.18 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/14.11, allocations: 6.906 kB / 4.054 GB, free: 36.18 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009922/14.12, allocations: 0.9332 MB / 4.055 GB, free: 36.03 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009697/14.13, allocations: 2.229 MB / 4.057 GB, free: 35.56 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004016/14.13, allocations: 203.3 kB / 4.057 GB, free: 35.55 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001291/14.13, allocations: 223.3 kB / 4.057 GB, free: 35.55 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01471/14.15, allocations: 3.925 MB / 4.061 GB, free: 34.94 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-05/14.15, allocations: 6.219 kB / 4.061 GB, free: 34.94 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004912/14.15, allocations: 94.91 kB / 4.061 GB, free: 34.94 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003232/14.15, allocations: 175.9 kB / 4.061 GB, free: 34.93 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0148/14.16, allocations: 3.609 MB / 4.065 GB, free: 34.9 MB / 0.5261 GB 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.03592/14.2, allocations: 16.73 MB / 4.081 GB, free: 24.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01155/14.21, allocations: 3.144 MB / 4.084 GB, free: 24.19 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05759/14.27, allocations: 18.57 MB / 4.102 GB, free: 28.63 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007831/14.28, allocations: 1.882 MB / 4.104 GB, free: 28.49 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=192): time 7.213e-06/14.28, allocations: 0 / 4.104 GB, free: 28.49 MB / 0.5417 GB Notification: Performance of matching and sorting (n=212): time 0.04958/14.33, allocations: 10.28 MB / 4.114 GB, free: 27.18 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001899/14.33, allocations: 257.7 kB / 4.114 GB, free: 26.9 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003481/14.33, allocations: 1.652 MB / 4.116 GB, free: 26.66 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0007369/14.33, allocations: 72.12 kB / 4.116 GB, free: 26.62 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001164/14.33, allocations: 0.9797 MB / 4.117 GB, free: 26.14 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001282/14.33, allocations: 0.7042 MB / 4.118 GB, free: 25.69 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003018/14.33, allocations: 45.62 kB / 4.118 GB, free: 25.69 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002749/14.33, allocations: 406.7 kB / 4.118 GB, free: 25.38 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004364/14.34, allocations: 1.27 MB / 4.119 GB, free: 25.37 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005265/14.34, allocations: 1.825 MB / 4.121 GB, free: 24.81 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005295/14.35, allocations: 1.535 MB / 4.123 GB, free: 24.73 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.277e-05/14.35, allocations: 6.375 kB / 4.123 GB, free: 24.73 MB / 0.5417 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.01316/14.36, allocations: 3.599 MB / 4.126 GB, free: 24.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004571/14.36, allocations: 0.5633 MB / 4.127 GB, free: 23.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.653e-05/14.36, allocations: 14.91 kB / 4.127 GB, free: 23.86 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002042/14.37, allocations: 342 kB / 4.127 GB, free: 23.82 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005132/14.37, allocations: 0.5995 MB / 4.128 GB, free: 23.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003213/14.37, allocations: 3.091 MB / 4.131 GB, free: 21.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005679/14.38, allocations: 342.6 kB / 4.131 GB, free: 21.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001088/14.38, allocations: 124.5 kB / 4.131 GB, free: 21.21 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/14.38, allocations: 4.406 kB / 4.131 GB, free: 21.21 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01278/14.39, allocations: 3.446 MB / 4.135 GB, free: 21.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.276e-05/14.39, allocations: 15.75 kB / 4.135 GB, free: 21.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001892/14.4, allocations: 352.3 kB / 4.135 GB, free: 21.02 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004976/14.4, allocations: 0.5867 MB / 4.135 GB, free: 21.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003062/14.4, allocations: 3.093 MB / 4.139 GB, free: 18.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004446/14.41, allocations: 336.9 kB / 4.139 GB, free: 18.41 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000821/14.41, allocations: 126.2 kB / 4.139 GB, free: 18.41 MB / 0.5417 GB 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,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,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.002878/14.41, allocations: 0.7919 MB / 4.14 GB, free: 18.14 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007686/14.41, allocations: 227.5 kB / 4.14 GB, free: 18.03 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02013/14.43, allocations: 8.225 MB / 4.148 GB, free: 17.25 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001109/14.43, allocations: 93.09 kB / 4.148 GB, free: 17.25 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.437e-05/14.43, allocations: 0 / 4.148 GB, free: 17.25 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01662/14.45, allocations: 7.154 MB / 4.155 GB, free: 16.31 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03299/14.48, allocations: 13.17 MB / 4.168 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.534e-05/14.48, allocations: 6 kB / 4.168 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003844/14.49, allocations: 478.9 kB / 4.168 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00294/14.49, allocations: 482.6 kB / 4.169 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000749/14.49, allocations: 75.28 kB / 4.169 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003184/14.49, allocations: 3.234 MB / 4.172 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.426e-06/14.49, allocations: 7.438 kB / 4.172 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01988/14.51, allocations: 8.083 MB / 4.18 GB, free: 11.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002798/14.52, allocations: 0.7988 MB / 4.181 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001286/14.52, allocations: 69.89 kB / 4.181 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004184/14.52, allocations: 233.3 kB / 4.181 GB, free: 10.72 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008928/14.52, allocations: 194.5 kB / 4.181 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003999/14.52, allocations: 91.98 kB / 4.181 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003152/14.53, allocations: 1.201 MB / 4.182 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.11e-07/14.53, allocations: 0 / 4.182 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01488/14.54, allocations: 2.917 MB / 4.185 GB, free: 10.21 MB / 0.5417 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: 59 ($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,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) * 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.02545/14.57, allocations: 3.037 MB / 4.188 GB, free: 9.453 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02094/14.59, allocations: 5.948 MB / 4.194 GB, free: 7.824 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.436e-05/14.59, allocations: 0.5625 kB / 4.194 GB, free: 7.824 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00771/14.6, allocations: 3.038 MB / 4.197 GB, free: 6.551 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01011/14.61, allocations: 1.141 MB / 4.198 GB, free: 6.285 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9562/15.56, allocations: 132.2 MB / 4.327 GB, free: 53.55 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003075/15.57, allocations: 2.339 MB / 4.33 GB, free: 52.76 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001699/15.57, allocations: 240 kB / 4.33 GB, free: 52.76 MB / 0.5573 GB Notification: Performance of SimCode: time 1.373e-06/15.57, allocations: 0 / 4.33 GB, free: 52.76 MB / 0.5573 GB Notification: Performance of Templates: time 0.7261/16.29, allocations: 137.9 MB / 4.464 GB, free: 74.96 MB / 0.573 GB