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.BranchingPipes18.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.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.165/2.165, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004359/0.000436, allocations: 16 kB / 314.3 MB, free: 9.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2767, allocations: 54.86 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18): time 0.1364/0.4131, allocations: 94.3 MB / 463.5 MB, free: 12.2 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.3388/0.752, allocations: 34.14 MB / 497.6 MB, free: 6.793 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003812/0.7558, allocations: 108.2 kB / 497.7 MB, free: 6.793 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004265/0.7601, allocations: 1.326 MB / 499.1 MB, free: 6.789 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02152/0.7817, allocations: 6.601 MB / 0.4938 GB, free: 6.711 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02484/0.8066, allocations: 7.58 MB / 0.5012 GB, free: 6.578 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.008585/0.8152, allocations: 5.198 MB / 0.5063 GB, free: 5.699 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00269/0.8179, allocations: 1.419 MB / 0.5077 GB, free: 5.121 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005798/0.8238, allocations: 2.375 MB / 0.51 GB, free: 4.758 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03322/0.857, allocations: 18.49 MB / 0.528 GB, free: 9.898 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008197/0.8579, allocations: 124 kB / 0.5282 GB, free: 9.777 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02635/0.8843, allocations: 9.767 MB / 0.5377 GB, free: 2.133 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001815/0.8861, allocations: 0.8027 MB / 0.5385 GB, free: 1.621 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001593/0.8877, allocations: 0.5763 MB / 0.5391 GB, free: 1.285 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01603/0.9038, allocations: 6.719 MB / 0.5456 GB, free: 11.58 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.836e-06/0.9038, allocations: 0 / 0.5456 GB, free: 11.58 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.639e-06/0.9039, allocations: 2.844 kB / 0.5456 GB, free: 11.58 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.228e-05/0.904, allocations: 0 / 0.5456 GB, free: 11.58 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01268/0.9166, allocations: 3.909 MB / 0.5494 GB, free: 7.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.9167, allocations: 12.03 kB / 0.5494 GB, free: 7.898 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00814/0.9249, allocations: 0.8908 MB / 0.5503 GB, free: 7.07 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004508/0.9294, allocations: 1.676 MB / 0.5519 GB, free: 5.797 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000325/0.9298, allocations: 200.7 kB / 0.5521 GB, free: 5.68 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007822/0.9306, allocations: 219 kB / 0.5524 GB, free: 5.535 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01188/0.9425, allocations: 3.809 MB / 0.5561 GB, free: 2.555 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.392e-05/0.9426, allocations: 5.438 kB / 0.5561 GB, free: 2.555 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003477/0.9429, allocations: 98.61 kB / 0.5562 GB, free: 2.527 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003575/0.9433, allocations: 213.6 kB / 0.5564 GB, free: 2.336 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01227/0.9556, allocations: 3.582 MB / 0.5599 GB, free: 15.75 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.02845/0.9841, allocations: 16.64 MB / 0.5761 GB, free: 408 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009555/0.9937, allocations: 3.139 MB / 0.5792 GB, free: 13.86 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04475/1.038, allocations: 18.8 MB / 0.5975 GB, free: 8.934 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00654/1.045, allocations: 1.849 MB / 0.5993 GB, free: 7.082 MB / 474.7 MB Notification: Performance of pre-optimization done (n=192): time 9.239e-06/1.045, allocations: 3.984 kB / 0.5994 GB, free: 7.078 MB / 474.7 MB Notification: Performance of matching and sorting (n=212): time 0.03736/1.082, allocations: 10.17 MB / 0.6093 GB, free: 12.87 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001513/1.083, allocations: 188.2 kB / 0.6095 GB, free: 12.65 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003014/1.086, allocations: 1.611 MB / 0.611 GB, free: 11.05 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004227/1.086, allocations: 65.7 kB / 0.6111 GB, free: 10.98 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001132/1.087, allocations: 1.007 MB / 0.6121 GB, free: 9.973 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001078/1.088, allocations: 0.7081 MB / 0.6128 GB, free: 9.273 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002195/1.089, allocations: 52 kB / 0.6128 GB, free: 9.223 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002941/1.089, allocations: 407.8 kB / 0.6132 GB, free: 8.816 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003481/1.092, allocations: 1.254 MB / 0.6144 GB, free: 7.559 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004303/1.097, allocations: 1.859 MB / 0.6163 GB, free: 5.473 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004007/1.101, allocations: 1.529 MB / 0.6177 GB, free: 3.949 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.748e-05/1.101, allocations: 4 kB / 0.6178 GB, free: 3.945 MB / 490.7 MB Notification: Performance of matching and sorting (n=318) (initialization): time 0.009995/1.111, allocations: 3.626 MB / 0.6213 GB, free: 392 kB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006173/1.112, allocations: 0.6301 MB / 0.6219 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-05/1.112, allocations: 16 kB / 0.6219 GB, free: 15.51 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001784/1.113, allocations: 356 kB / 0.6223 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003514/1.117, allocations: 0.6204 MB / 0.6229 GB, free: 14.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003184/1.12, allocations: 3.1 MB / 0.6259 GB, free: 11.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003518/1.124, allocations: 327.6 kB / 0.6262 GB, free: 11.03 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004044/1.124, allocations: 128 kB / 0.6263 GB, free: 10.91 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/1.124, allocations: 6.188 kB / 0.6263 GB, free: 10.9 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009955/1.134, allocations: 3.48 MB / 0.6297 GB, free: 7.477 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.105e-05/1.134, allocations: 19.98 kB / 0.6298 GB, free: 7.457 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001645/1.136, allocations: 344.2 kB / 0.6301 GB, free: 7.105 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003753/1.14, allocations: 0.6124 MB / 0.6307 GB, free: 6.492 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00317/1.143, allocations: 3.108 MB / 0.6337 GB, free: 3.258 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002905/1.146, allocations: 330.2 kB / 0.634 GB, free: 2.938 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003363/1.146, allocations: 124 kB / 0.6341 GB, free: 2.816 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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,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 (296): * Single equations (assignments): 289 * 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.00195/1.148, allocations: 0.8119 MB / 0.6349 GB, free: 1.98 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005778/1.149, allocations: 225.3 kB / 0.6352 GB, free: 1.758 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01684/1.166, allocations: 8.183 MB / 0.6431 GB, free: 9.461 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001103/1.166, allocations: 83.88 kB / 0.6432 GB, free: 9.379 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/1.166, allocations: 0 / 0.6432 GB, free: 9.379 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01454/1.18, allocations: 7.101 MB / 0.6502 GB, free: 2.098 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02723/1.208, allocations: 13.01 MB / 0.6629 GB, free: 4.801 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-05/1.208, allocations: 8.688 kB / 0.6629 GB, free: 4.793 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002586/1.21, allocations: 483.3 kB / 0.6633 GB, free: 4.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002411/1.213, allocations: 483.6 kB / 0.6638 GB, free: 3.832 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003307/1.213, allocations: 75.97 kB / 0.6639 GB, free: 3.758 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003254/1.216, allocations: 3.242 MB / 0.667 GB, free: 400 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.853e-06/1.216, allocations: 4 kB / 0.667 GB, free: 396 kB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3162/1.533, allocations: 8.005 MB / 0.6749 GB, free: 220.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001958/1.535, allocations: 0.7673 MB / 0.6756 GB, free: 220.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005958/1.535, allocations: 65.81 kB / 0.6757 GB, free: 220.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002565/1.538, allocations: 229.8 kB / 0.6759 GB, free: 220.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005276/1.538, allocations: 196.6 kB / 0.6761 GB, free: 220.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002523/1.539, allocations: 90.17 kB / 0.6762 GB, free: 220.4 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002383/1.541, allocations: 1.169 MB / 0.6773 GB, free: 220 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.65e-07/1.541, allocations: 0 / 0.6773 GB, free: 220 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008344/1.549, allocations: 2.73 MB / 0.68 GB, free: 219.8 MB / 0.5261 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,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse21.phase,$cse21.region,$cse24.phase,$cse24.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,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse40.phase,$cse40.region,$cse44.phase,$cse44.region,$cse49.phase,$cse49.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.008242/1.558, allocations: 2.143 MB / 0.6821 GB, free: 219.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01305/1.571, allocations: 5.98 MB / 0.6879 GB, free: 217.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/1.571, allocations: 0 / 0.6879 GB, free: 217.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005802/1.577, allocations: 3.027 MB / 0.6909 GB, free: 215.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006616/1.583, allocations: 1.132 MB / 0.692 GB, free: 215 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/1.598, allocations: 9.779 MB / 0.7015 GB, free: 206.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00194/1.6, allocations: 2.344 MB / 0.7038 GB, free: 204.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001189/1.601, allocations: 239.4 kB / 0.704 GB, free: 203.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.712e-06/1.601, allocations: 0 / 0.704 GB, free: 203.9 MB / 0.5261 GB Notification: Performance of Templates: time 0.1558/1.757, allocations: 134.9 MB / 0.8357 GB, free: 68.86 MB / 0.5261 GB