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.BranchingPipes13.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.BranchingPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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|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.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.167/2.167, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.953e-05/1.965e-05, allocations: 4 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2759, allocations: 54.85 MB / 358 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.561/6.837, allocations: 2.656 GB / 3.005 GB, free: 105.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/6.837, allocations: 81.58 kB / 3.005 GB, free: 105.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.586/10.42, allocations: 0.8553 GB / 3.861 GB, free: 28.83 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.314e-06/10.42, allocations: 0 / 3.861 GB, free: 28.83 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001845/10.42, allocations: 59 kB / 3.861 GB, free: 28.81 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01276/10.44, allocations: 3.821 MB / 3.865 GB, free: 26.68 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/10.44, allocations: 8.375 kB / 3.865 GB, free: 26.68 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007563/10.44, allocations: 0.7818 MB / 3.865 GB, free: 26.48 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006072/10.45, allocations: 1.948 MB / 3.867 GB, free: 25.57 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001558/10.45, allocations: 84.23 kB / 3.867 GB, free: 25.56 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004189/10.45, allocations: 107.6 kB / 3.867 GB, free: 25.56 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005191/10.46, allocations: 2.334 MB / 3.87 GB, free: 24.75 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005321/10.46, allocations: 2.561 MB / 3.872 GB, free: 23.54 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.971e-05/10.46, allocations: 7.828 kB / 3.872 GB, free: 23.54 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002819/10.46, allocations: 8 kB / 3.872 GB, free: 23.53 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002088/10.46, allocations: 150.8 kB / 3.872 GB, free: 23.4 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.6639/11.13, allocations: 108.2 MB / 3.978 GB, free: 26.58 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002894/11.13, allocations: 1.406 MB / 3.979 GB, free: 26.55 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001578/11.13, allocations: 0.8769 MB / 3.98 GB, free: 26.54 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04365/11.17, allocations: 17.54 MB / 3.997 GB, free: 15 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002207/11.18, allocations: 1.098 MB / 3.998 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00147/11.18, allocations: 140.6 kB / 3.999 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=136): time 6.499e-06/11.18, allocations: 0 / 3.999 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of matching and sorting (n=148): time 0.02512/11.2, allocations: 7.193 MB / 4.006 GB, free: 13.35 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002422/11.2, allocations: 356.5 kB / 4.006 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001856/11.21, allocations: 1.068 MB / 4.007 GB, free: 12.78 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002911/11.21, allocations: 31.45 kB / 4.007 GB, free: 12.75 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007488/11.21, allocations: 0.9136 MB / 4.008 GB, free: 12.36 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005495/11.21, allocations: 484.3 kB / 4.008 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/11.21, allocations: 2.406 kB / 4.008 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000234/11.21, allocations: 384.7 kB / 4.009 GB, free: 11.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001675/11.21, allocations: 0.9015 MB / 4.01 GB, free: 11.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001934/11.21, allocations: 1.291 MB / 4.011 GB, free: 11.36 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01472/11.23, allocations: 2.664 MB / 4.013 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.31e-05/11.23, allocations: 3.469 kB / 4.013 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01862/11.24, allocations: 4.234 MB / 4.018 GB, free: 11.09 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002375/11.25, allocations: 4.25 MB / 4.022 GB, free: 22.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.089e-05/11.25, allocations: 10.62 kB / 4.022 GB, free: 22.64 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002587/11.25, allocations: 0.5361 MB / 4.022 GB, free: 22.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002591/11.25, allocations: 432.8 kB / 4.023 GB, free: 22.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003693/11.26, allocations: 2.937 MB / 4.026 GB, free: 20.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002961/11.26, allocations: 237.9 kB / 4.026 GB, free: 20.48 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002915/11.26, allocations: 94.59 kB / 4.026 GB, free: 20.48 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/11.26, allocations: 3.406 kB / 4.026 GB, free: 20.48 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0175/11.28, allocations: 3.776 MB / 4.03 GB, free: 20.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.747e-05/11.28, allocations: 12.69 kB / 4.03 GB, free: 20.37 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006104/11.28, allocations: 189.7 kB / 4.03 GB, free: 20.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002625/11.28, allocations: 459.3 kB / 4.03 GB, free: 20.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00182/11.28, allocations: 1.897 MB / 4.032 GB, free: 18.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002305/11.28, allocations: 206.5 kB / 4.032 GB, free: 18.76 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002694/11.28, allocations: 98.75 kB / 4.032 GB, free: 18.75 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.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,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006933/11.29, allocations: 236.8 kB / 4.033 GB, free: 18.58 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005058/11.29, allocations: 177.8 kB / 4.033 GB, free: 18.49 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01162/11.3, allocations: 6.296 MB / 4.039 GB, free: 17.96 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.429e-05/11.3, allocations: 69.5 kB / 4.039 GB, free: 17.96 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.666e-06/11.3, allocations: 0 / 4.039 GB, free: 17.96 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009426/11.31, allocations: 5.304 MB / 4.044 GB, free: 17.22 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01565/11.32, allocations: 8.471 MB / 4.052 GB, free: 16.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/11.32, allocations: 1.062 kB / 4.052 GB, free: 16.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001691/11.32, allocations: 282.9 kB / 4.053 GB, free: 16.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003251/11.33, allocations: 1.501 MB / 4.054 GB, free: 16.61 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003132/11.33, allocations: 45.75 kB / 4.054 GB, free: 16.61 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004107/11.33, allocations: 3.693 MB / 4.058 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.76e-06/11.33, allocations: 0 / 4.058 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01185/11.34, allocations: 6.384 MB / 4.064 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001693/11.35, allocations: 0.6487 MB / 4.065 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004804/11.35, allocations: 16.58 kB / 4.065 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001879/11.35, allocations: 150.2 kB / 4.065 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002949/11.35, allocations: 119.2 kB / 4.065 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001877/11.35, allocations: 60.8 kB / 4.065 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001894/11.35, allocations: 0.9913 MB / 4.066 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.89e-07/11.35, allocations: 0 / 4.066 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009593/11.36, allocations: 2.579 MB / 4.068 GB, free: 13.36 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.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 (147): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01401/11.37, allocations: 3.063 MB / 4.071 GB, free: 12.93 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0152/11.39, allocations: 4.255 MB / 4.076 GB, free: 11.21 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/11.39, allocations: 4.062 kB / 4.076 GB, free: 11.21 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006511/11.4, allocations: 1.992 MB / 4.078 GB, free: 10.15 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009013/11.41, allocations: 0.7995 MB / 4.078 GB, free: 9.719 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01856/11.42, allocations: 5.009 MB / 4.083 GB, free: 6.148 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004159/11.43, allocations: 2.042 MB / 4.085 GB, free: 4.613 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001746/11.43, allocations: 181 kB / 4.085 GB, free: 4.469 MB / 0.5417 GB Notification: Performance of SimCode: time 2.656e-06/11.43, allocations: 0 / 4.085 GB, free: 4.469 MB / 0.5417 GB Notification: Performance of Templates: time 0.5012/11.93, allocations: 107.1 MB / 4.19 GB, free: 90.23 MB / 0.5573 GB