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.BranchingPipes1.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.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.filter.x.2.|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.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.106/2.106, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007824/0.0007827, allocations: 12 kB / 314.3 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2793, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1): time 0.1156/0.395, allocations: 77.64 MB / 446.8 MB, free: 12.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3404/0.7354, allocations: 31.94 MB / 478.8 MB, free: 6.465 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002979/0.7384, allocations: 95.12 kB / 478.9 MB, free: 6.465 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003728/0.7422, allocations: 1.139 MB / 480 MB, free: 6.465 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01869/0.7609, allocations: 5.901 MB / 485.9 MB, free: 6.395 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02228/0.7832, allocations: 7.394 MB / 493.3 MB, free: 6.277 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.007753/0.791, allocations: 4.637 MB / 497.9 MB, free: 6.273 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002438/0.7935, allocations: 1.29 MB / 499.2 MB, free: 6.156 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03192/0.8254, allocations: 18.43 MB / 0.5055 GB, free: 1.5 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03517/0.8607, allocations: 18.32 MB / 0.5234 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006728/0.8614, allocations: 115.7 kB / 0.5235 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02516/0.8865, allocations: 9.896 MB / 0.5332 GB, free: 8.918 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001643/0.8882, allocations: 0.7613 MB / 0.5339 GB, free: 8.422 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001174/0.8894, allocations: 0.5306 MB / 0.5345 GB, free: 8.121 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01489/0.9043, allocations: 6.436 MB / 0.5407 GB, free: 2.633 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.75e-06/0.9044, allocations: 0 / 0.5407 GB, free: 2.633 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.5e-06/0.9044, allocations: 0 / 0.5407 GB, free: 2.633 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.992e-05/0.9045, allocations: 0 / 0.5407 GB, free: 2.633 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01281/0.9173, allocations: 3.764 MB / 0.5444 GB, free: 15.09 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.9174, allocations: 16.02 kB / 0.5444 GB, free: 15.07 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007261/0.9246, allocations: 0.8189 MB / 0.5452 GB, free: 14.32 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003879/0.9286, allocations: 1.559 MB / 0.5468 GB, free: 13.13 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002197/0.9288, allocations: 181.1 kB / 0.5469 GB, free: 13.03 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004592/0.9293, allocations: 200.1 kB / 0.5471 GB, free: 12.9 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009967/0.9393, allocations: 3.602 MB / 0.5506 GB, free: 10.12 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.574e-05/0.9394, allocations: 11.17 kB / 0.5506 GB, free: 10.11 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003071/0.9397, allocations: 87.89 kB / 0.5507 GB, free: 10.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003504/0.9401, allocations: 201.2 kB / 0.5509 GB, free: 9.918 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01089/0.951, allocations: 3.498 MB / 0.5543 GB, free: 7.457 MB / 442.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.02515/0.9762, allocations: 14.63 MB / 0.5686 GB, free: 10.02 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006892/0.9831, allocations: 2.193 MB / 0.5708 GB, free: 8.465 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04548/1.029, allocations: 19.11 MB / 0.5894 GB, free: 3.48 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005474/1.034, allocations: 1.649 MB / 0.591 GB, free: 2.199 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001079/1.035, allocations: 174.5 kB / 0.5912 GB, free: 2.055 MB / 474.7 MB Notification: Performance of pre-optimization done (n=162): time 5.851e-06/1.035, allocations: 4 kB / 0.5912 GB, free: 2.051 MB / 474.7 MB Notification: Performance of matching and sorting (n=174): time 0.03177/1.067, allocations: 9.154 MB / 0.6002 GB, free: 10.89 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002333/1.067, allocations: 343.3 kB / 0.6005 GB, free: 10.49 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002881/1.07, allocations: 1.64 MB / 0.6021 GB, free: 9.262 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002779/1.071, allocations: 62.33 kB / 0.6021 GB, free: 9.219 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009068/1.071, allocations: 0.9473 MB / 0.6031 GB, free: 8.598 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007549/1.072, allocations: 0.5891 MB / 0.6036 GB, free: 8.094 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001785/1.072, allocations: 41.56 kB / 0.6037 GB, free: 8.082 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002604/1.073, allocations: 398.1 kB / 0.6041 GB, free: 7.719 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002749/1.075, allocations: 1.131 MB / 0.6052 GB, free: 6.953 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003249/1.079, allocations: 1.665 MB / 0.6068 GB, free: 5.492 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003131/1.082, allocations: 1.403 MB / 0.6082 GB, free: 4.578 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.45e-05/1.082, allocations: 8 kB / 0.6082 GB, free: 4.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.008203/1.09, allocations: 3.389 MB / 0.6115 GB, free: 2.238 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005232/1.091, allocations: 0.5535 MB / 0.612 GB, free: 1.543 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-05/1.091, allocations: 19.98 kB / 0.612 GB, free: 1.523 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006131/1.097, allocations: 0.98 MB / 0.613 GB, free: 0.6562 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002564/1.099, allocations: 493.9 kB / 0.6135 GB, free: 228 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003942/1.103, allocations: 3.14 MB / 0.6165 GB, free: 13.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002557/1.106, allocations: 234.3 kB / 0.6168 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003169/1.106, allocations: 103.9 kB / 0.6169 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/1.106, allocations: 4 kB / 0.6169 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008164/1.115, allocations: 3.196 MB / 0.62 GB, free: 10.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.321e-05/1.115, allocations: 12 kB / 0.62 GB, free: 10.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001674/1.116, allocations: 371.5 kB / 0.6203 GB, free: 10.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002894/1.119, allocations: 0.5083 MB / 0.6208 GB, free: 10.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005406/1.125, allocations: 4.137 MB / 0.6249 GB, free: 6.344 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002131/1.127, allocations: 233.1 kB / 0.6251 GB, free: 6.152 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002883/1.127, allocations: 98.16 kB / 0.6252 GB, free: 6.074 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,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,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 (232): * Single equations (assignments): 222 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001751/1.129, allocations: 0.778 MB / 0.626 GB, free: 5.508 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005297/1.129, allocations: 205.5 kB / 0.6262 GB, free: 5.305 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01521/1.145, allocations: 7.836 MB / 0.6338 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001031/1.145, allocations: 83.88 kB / 0.6339 GB, free: 14.32 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.278e-06/1.145, allocations: 0 / 0.6339 GB, free: 14.32 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01272/1.158, allocations: 6.86 MB / 0.6406 GB, free: 7.289 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02026/1.178, allocations: 10.8 MB / 0.6511 GB, free: 12.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/1.178, allocations: 0 / 0.6511 GB, free: 12.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001843/1.18, allocations: 341.7 kB / 0.6515 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00665/1.186, allocations: 2.176 MB / 0.6536 GB, free: 9.883 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003457/1.187, allocations: 67.95 kB / 0.6536 GB, free: 9.816 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005095/1.192, allocations: 4.085 MB / 0.6576 GB, free: 5.648 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.727e-06/1.192, allocations: 0 / 0.6576 GB, free: 5.648 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2702/1.462, allocations: 7.877 MB / 0.6653 GB, free: 223.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001733/1.464, allocations: 0.722 MB / 0.666 GB, free: 223.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005686/1.465, allocations: 54.64 kB / 0.6661 GB, free: 223.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002075/1.467, allocations: 182.1 kB / 0.6663 GB, free: 223.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004654/1.467, allocations: 141.3 kB / 0.6664 GB, free: 223.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002165/1.467, allocations: 67.25 kB / 0.6665 GB, free: 223.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002322/1.47, allocations: 1.202 MB / 0.6676 GB, free: 222.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.48e-07/1.47, allocations: 0 / 0.6676 GB, free: 222.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008065/1.478, allocations: 2.517 MB / 0.6701 GB, free: 222.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.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,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.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) * 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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.008133/1.486, allocations: 1.969 MB / 0.672 GB, free: 222.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01166/1.498, allocations: 5.591 MB / 0.6775 GB, free: 220.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.488e-06/1.498, allocations: 3.969 kB / 0.6775 GB, free: 220.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004498/1.502, allocations: 2.416 MB / 0.6798 GB, free: 219.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005417/1.508, allocations: 0.8889 MB / 0.6807 GB, free: 219 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/1.521, allocations: 8.79 MB / 0.6893 GB, free: 214.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00197/1.523, allocations: 2.254 MB / 0.6915 GB, free: 213.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008993/1.524, allocations: 198 kB / 0.6917 GB, free: 212.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.682e-06/1.524, allocations: 4 kB / 0.6917 GB, free: 212.9 MB / 0.5261 GB Notification: Performance of Templates: time 0.1298/1.654, allocations: 113.4 MB / 0.8024 GB, free: 99.48 MB / 0.5261 GB