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/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.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.307/2.307, allocations: 234.9 MB / 250.5 MB, free: 9.469 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004509/0.0004511, allocations: 8 kB / 314.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2746, allocations: 54.88 MB / 369.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13): time 0.1259/0.4005, allocations: 83.43 MB / 452.6 MB, free: 7.07 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3383/0.7389, allocations: 32.67 MB / 485.3 MB, free: 6.699 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003055/0.742, allocations: 97.84 kB / 485.4 MB, free: 6.699 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00369/0.7457, allocations: 1.169 MB / 486.6 MB, free: 6.695 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01965/0.7654, allocations: 6.224 MB / 492.8 MB, free: 6.625 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02247/0.7879, allocations: 7.207 MB / 500 MB, free: 6.508 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.007516/0.7954, allocations: 4.405 MB / 0.4926 GB, free: 6.504 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002316/0.7978, allocations: 1.225 MB / 0.4938 GB, free: 6.379 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004746/0.8026, allocations: 2.007 MB / 0.4957 GB, free: 6.199 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03029/0.8329, allocations: 18.24 MB / 0.5135 GB, free: 14.65 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005937/0.8335, allocations: 104 kB / 0.5136 GB, free: 14.55 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02554/0.8591, allocations: 9.994 MB / 0.5234 GB, free: 6.789 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001476/0.8606, allocations: 0.693 MB / 0.5241 GB, free: 6.344 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.8617, allocations: 497 kB / 0.5245 GB, free: 6.059 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01476/0.8765, allocations: 6.28 MB / 0.5307 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.918e-06/0.8765, allocations: 0 / 0.5307 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.057e-06/0.8765, allocations: 0 / 0.5307 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.204e-05/0.8766, allocations: 3.938 kB / 0.5307 GB, free: 0.7148 MB / 410.7 MB 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.01086/0.8874, allocations: 3.497 MB / 0.5341 GB, free: 13.41 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.8875, allocations: 8.031 kB / 0.5341 GB, free: 13.41 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007141/0.8947, allocations: 0.7782 MB / 0.5349 GB, free: 12.69 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003829/0.8985, allocations: 1.488 MB / 0.5363 GB, free: 11.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002086/0.8988, allocations: 164.7 kB / 0.5365 GB, free: 11.45 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003997/0.8992, allocations: 183.4 kB / 0.5366 GB, free: 11.33 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009157/0.9084, allocations: 3.211 MB / 0.5398 GB, free: 8.863 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.7e-05/0.9085, allocations: 7 kB / 0.5398 GB, free: 8.859 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002602/0.9087, allocations: 80.66 kB / 0.5399 GB, free: 8.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003029/0.909, allocations: 181.2 kB / 0.54 GB, free: 8.688 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009622/0.9187, allocations: 3.002 MB / 0.543 GB, free: 6.543 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.02313/0.9419, allocations: 13.96 MB / 0.5566 GB, free: 9.578 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006609/0.9485, allocations: 2.012 MB / 0.5586 GB, free: 8.133 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04584/0.9944, allocations: 19.1 MB / 0.5772 GB, free: 3.148 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005365/0.9998, allocations: 1.533 MB / 0.5787 GB, free: 1.949 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001218/1.001, allocations: 163.7 kB / 0.5789 GB, free: 1.812 MB / 458.7 MB Notification: Performance of pre-optimization done (n=146): time 5.989e-06/1.001, allocations: 4 kB / 0.5789 GB, free: 1.809 MB / 458.7 MB Notification: Performance of matching and sorting (n=158): time 0.02943/1.031, allocations: 8.176 MB / 0.5869 GB, free: 11.38 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/1.031, allocations: 177.4 kB / 0.587 GB, free: 11.17 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002739/1.033, allocations: 1.491 MB / 0.5885 GB, free: 10.05 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003155/1.034, allocations: 54.08 kB / 0.5885 GB, free: 10.01 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008522/1.035, allocations: 0.8765 MB / 0.5894 GB, free: 9.422 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007111/1.035, allocations: 0.5321 MB / 0.5899 GB, free: 8.969 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001626/1.036, allocations: 33.94 kB / 0.5899 GB, free: 8.961 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000252/1.036, allocations: 384.7 kB / 0.5903 GB, free: 8.605 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002565/1.038, allocations: 1.009 MB / 0.5913 GB, free: 7.926 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003105/1.042, allocations: 1.443 MB / 0.5927 GB, free: 6.68 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003033/1.045, allocations: 1.247 MB / 0.5939 GB, free: 5.867 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.729e-05/1.045, allocations: 4 kB / 0.5939 GB, free: 5.863 MB / 474.7 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.008924/1.054, allocations: 3.096 MB / 0.597 GB, free: 3.691 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005187/1.054, allocations: 0.5238 MB / 0.5975 GB, free: 3.035 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.853e-05/1.054, allocations: 12 kB / 0.5975 GB, free: 3.023 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003801/1.058, allocations: 0.6188 MB / 0.5981 GB, free: 2.477 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002533/1.061, allocations: 453 kB / 0.5985 GB, free: 2.078 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003177/1.064, allocations: 2.807 MB / 0.6013 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002584/1.066, allocations: 227.3 kB / 0.6015 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002805/1.067, allocations: 97.95 kB / 0.6016 GB, free: 15.17 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/1.067, allocations: 4 kB / 0.6016 GB, free: 15.17 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00702/1.074, allocations: 2.755 MB / 0.6043 GB, free: 13.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.855e-05/1.074, allocations: 12 kB / 0.6043 GB, free: 13.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009571/1.075, allocations: 215.3 kB / 0.6045 GB, free: 13.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00267/1.078, allocations: 471.4 kB / 0.6049 GB, free: 12.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00182/1.079, allocations: 1.883 MB / 0.6068 GB, free: 10.87 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002092/1.082, allocations: 232.4 kB / 0.607 GB, free: 10.67 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002553/1.082, allocations: 96.28 kB / 0.6071 GB, free: 10.59 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * 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.001642/1.083, allocations: 0.7243 MB / 0.6078 GB, free: 10.06 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005066/1.084, allocations: 189.7 kB / 0.608 GB, free: 9.871 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01449/1.098, allocations: 7.415 MB / 0.6152 GB, free: 3.168 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001076/1.099, allocations: 79.88 kB / 0.6153 GB, free: 3.09 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/1.099, allocations: 3.953 kB / 0.6153 GB, free: 3.086 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01232/1.111, allocations: 6.485 MB / 0.6216 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02015/1.131, allocations: 10.23 MB / 0.6316 GB, free: 2.219 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.671e-05/1.131, allocations: 0 / 0.6316 GB, free: 2.219 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001919/1.133, allocations: 338 kB / 0.6319 GB, free: 1.902 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004393/1.138, allocations: 1.343 MB / 0.6332 GB, free: 0.5508 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000349/1.138, allocations: 63.92 kB / 0.6333 GB, free: 500 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004051/1.142, allocations: 3.447 MB / 0.6367 GB, free: 12.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/1.142, allocations: 0 / 0.6367 GB, free: 12.95 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01462/1.157, allocations: 7.157 MB / 0.6437 GB, free: 5.73 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001842/1.159, allocations: 0.6913 MB / 0.6443 GB, free: 5.016 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004633/1.159, allocations: 44 kB / 0.6444 GB, free: 4.973 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001897/1.161, allocations: 183.6 kB / 0.6446 GB, free: 4.793 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003638/1.161, allocations: 125.8 kB / 0.6447 GB, free: 4.668 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001964/1.162, allocations: 67.97 kB / 0.6447 GB, free: 4.602 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002218/1.164, allocations: 1.102 MB / 0.6458 GB, free: 3.477 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.16e-07/1.164, allocations: 6.453 kB / 0.6458 GB, free: 3.473 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008359/1.172, allocations: 2.511 MB / 0.6483 GB, free: 0.9609 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 55 ($cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse41.phase,$cse41.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) * 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 (164): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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.00871/1.181, allocations: 2.089 MB / 0.6503 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01181/1.193, allocations: 4.87 MB / 0.6551 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.953e-06/1.193, allocations: 0 / 0.6551 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004953/1.198, allocations: 2.306 MB / 0.6573 GB, free: 7.949 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005439/1.203, allocations: 0.8852 MB / 0.6582 GB, free: 7.062 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.267/1.47, allocations: 8.309 MB / 0.6663 GB, free: 224.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002447/1.473, allocations: 2.136 MB / 0.6684 GB, free: 223.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009606/1.474, allocations: 188.1 kB / 0.6686 GB, free: 223.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.772e-06/1.474, allocations: 1.781 kB / 0.6686 GB, free: 223.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.1658/1.64, allocations: 108.8 MB / 0.7749 GB, free: 130.5 MB / 0.5261 GB