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.192/2.192, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004489/0.0004493, allocations: 12 kB / 314.3 MB, free: 9.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2902, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14): time 0.1237/0.4139, allocations: 85.93 MB / 455.1 MB, free: 4.57 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3346/0.7485, allocations: 32.4 MB / 487.5 MB, free: 6.828 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003271/0.7519, allocations: 106.4 kB / 487.6 MB, free: 6.824 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003788/0.7557, allocations: 1.235 MB / 488.9 MB, free: 6.824 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01958/0.7753, allocations: 6.267 MB / 495.1 MB, free: 6.75 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02241/0.7978, allocations: 7.194 MB / 0.4906 GB, free: 6.629 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.007801/0.8056, allocations: 4.859 MB / 0.4953 GB, free: 6.617 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002234/0.8078, allocations: 1.294 MB / 0.4966 GB, free: 6.289 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004754/0.8126, allocations: 2.214 MB / 0.4987 GB, free: 5.949 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03029/0.843, allocations: 18.36 MB / 0.5167 GB, free: 13.57 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006318/0.8436, allocations: 112 kB / 0.5168 GB, free: 13.46 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02478/0.8684, allocations: 9.603 MB / 0.5261 GB, free: 5.953 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001567/0.87, allocations: 0.7606 MB / 0.5269 GB, free: 5.461 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001171/0.8712, allocations: 0.5397 MB / 0.5274 GB, free: 5.148 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01485/0.8861, allocations: 6.425 MB / 0.5337 GB, free: 15.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.8862, allocations: 0 / 0.5337 GB, free: 15.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.8862, allocations: 0 / 0.5337 GB, free: 15.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.305e-05/0.8862, allocations: 0 / 0.5337 GB, free: 15.7 MB / 426.7 MB 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.01143/0.8977, allocations: 3.685 MB / 0.5373 GB, free: 12.24 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.8977, allocations: 8.031 kB / 0.5373 GB, free: 12.23 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007301/0.905, allocations: 0.8301 MB / 0.5381 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004082/0.9091, allocations: 1.589 MB / 0.5396 GB, free: 10.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002383/0.9094, allocations: 183.5 kB / 0.5398 GB, free: 10.14 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004681/0.9099, allocations: 206.5 kB / 0.54 GB, free: 10.01 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01011/0.92, allocations: 3.556 MB / 0.5435 GB, free: 7.254 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.334e-05/0.9201, allocations: 11.56 kB / 0.5435 GB, free: 7.246 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002957/0.9205, allocations: 88.59 kB / 0.5436 GB, free: 7.223 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000344/0.9208, allocations: 201.6 kB / 0.5438 GB, free: 7.047 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01064/0.9315, allocations: 3.326 MB / 0.547 GB, free: 4.668 MB / 426.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.02438/0.9559, allocations: 15.38 MB / 0.562 GB, free: 6.469 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008025/0.9639, allocations: 2.777 MB / 0.5648 GB, free: 4.219 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04547/1.009, allocations: 18.95 MB / 0.5833 GB, free: 15.41 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005774/1.015, allocations: 1.691 MB / 0.5849 GB, free: 14.11 MB / 474.7 MB Notification: Performance of pre-optimization done (n=173): time 6.855e-06/1.015, allocations: 4 kB / 0.5849 GB, free: 14.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=189): time 0.03168/1.047, allocations: 9.079 MB / 0.5938 GB, free: 7.121 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001513/1.047, allocations: 191.7 kB / 0.594 GB, free: 6.898 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002735/1.05, allocations: 1.508 MB / 0.5954 GB, free: 5.762 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003399/1.05, allocations: 58.77 kB / 0.5955 GB, free: 5.723 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009455/1.051, allocations: 0.9537 MB / 0.5964 GB, free: 5.082 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009073/1.052, allocations: 0.6273 MB / 0.597 GB, free: 4.543 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001793/1.052, allocations: 45.94 kB / 0.5971 GB, free: 4.531 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002716/1.053, allocations: 403.2 kB / 0.5975 GB, free: 4.164 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002918/1.056, allocations: 1.114 MB / 0.5986 GB, free: 3.41 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003516/1.059, allocations: 1.669 MB / 0.6002 GB, free: 1.957 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003343/1.063, allocations: 1.386 MB / 0.6015 GB, free: 1.055 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.53e-05/1.063, allocations: 8 kB / 0.6015 GB, free: 1.047 MB / 474.7 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.008375/1.071, allocations: 3.208 MB / 0.6047 GB, free: 14.82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005508/1.072, allocations: 0.5792 MB / 0.6052 GB, free: 14.08 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.047e-05/1.072, allocations: 16 kB / 0.6053 GB, free: 14.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001271/1.073, allocations: 254.9 kB / 0.6055 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002995/1.076, allocations: 0.5373 MB / 0.606 GB, free: 13.35 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002443/1.078, allocations: 2.446 MB / 0.6084 GB, free: 10.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00312/1.081, allocations: 299.7 kB / 0.6087 GB, free: 10.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003201/1.082, allocations: 111.9 kB / 0.6088 GB, free: 10.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/1.082, allocations: 6.188 kB / 0.6088 GB, free: 10.41 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00823/1.09, allocations: 3.072 MB / 0.6118 GB, free: 7.406 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.8e-05/1.09, allocations: 12 kB / 0.6118 GB, free: 7.395 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001227/1.091, allocations: 255.8 kB / 0.6121 GB, free: 7.133 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002973/1.094, allocations: 0.5381 MB / 0.6126 GB, free: 6.625 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00237/1.097, allocations: 2.436 MB / 0.615 GB, free: 4.098 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00257/1.099, allocations: 306.3 kB / 0.6153 GB, free: 3.801 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002993/1.1, allocations: 112 kB / 0.6154 GB, free: 3.691 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (263): * Single equations (assignments): 257 * 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.001894/1.102, allocations: 0.7708 MB / 0.6161 GB, free: 2.926 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005784/1.102, allocations: 209.5 kB / 0.6163 GB, free: 2.719 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01563/1.118, allocations: 7.494 MB / 0.6236 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001073/1.118, allocations: 83.88 kB / 0.6237 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/1.118, allocations: 0 / 0.6237 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01297/1.131, allocations: 6.514 MB / 0.6301 GB, free: 4.348 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02564/1.157, allocations: 12.04 MB / 0.6418 GB, free: 8.059 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.076e-05/1.157, allocations: 4 kB / 0.6418 GB, free: 8.055 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002292/1.159, allocations: 431.8 kB / 0.6423 GB, free: 7.652 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00206/1.161, allocations: 370.8 kB / 0.6426 GB, free: 7.277 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003498/1.162, allocations: 67.97 kB / 0.6427 GB, free: 7.211 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002401/1.164, allocations: 2.537 MB / 0.6452 GB, free: 4.582 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.038e-05/1.164, allocations: 11.95 kB / 0.6452 GB, free: 4.57 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01548/1.179, allocations: 7.296 MB / 0.6523 GB, free: 13.08 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001999/1.182, allocations: 0.7301 MB / 0.653 GB, free: 12.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005216/1.182, allocations: 63.94 kB / 0.6531 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00208/1.184, allocations: 207.6 kB / 0.6533 GB, free: 12.06 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004198/1.185, allocations: 181.8 kB / 0.6534 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002331/1.185, allocations: 75.97 kB / 0.6535 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002185/1.187, allocations: 1.112 MB / 0.6546 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.27e-07/1.187, allocations: 4 kB / 0.6546 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008216/1.195, allocations: 2.569 MB / 0.6571 GB, free: 8.109 MB / 0.5261 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,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse20.region3boundary,$cse21.region3boundary,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.region3boundary,$cse26.region3boundary,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse42.phase,$cse42.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) * Number of clocked states: 0 () * 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.008243/1.204, allocations: 2.07 MB / 0.6591 GB, free: 6.23 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01293/1.217, allocations: 5.391 MB / 0.6644 GB, free: 0.8945 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/1.217, allocations: 0 / 0.6644 GB, free: 0.8945 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.2566/1.473, allocations: 2.736 MB / 0.6671 GB, free: 224.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005581/1.479, allocations: 0.9722 MB / 0.668 GB, free: 224.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0148/1.494, allocations: 9.148 MB / 0.6769 GB, free: 220.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001987/1.496, allocations: 2.251 MB / 0.6791 GB, free: 219.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/1.497, allocations: 219.3 kB / 0.6794 GB, free: 219.6 MB / 0.5261 GB Notification: Performance of SimCode: time 1.809e-06/1.497, allocations: 0 / 0.6794 GB, free: 219.6 MB / 0.5261 GB Notification: Performance of Templates: time 0.1323/1.629, allocations: 115.4 MB / 0.792 GB, free: 112.5 MB / 0.5261 GB