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.BranchingPipes2.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.BranchingPipes2,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.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.111/2.111, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004292/0.0004294, allocations: 12 kB / 314.3 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2748, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2): time 0.1195/0.3944, allocations: 77.64 MB / 446.8 MB, free: 12.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.343/0.7374, allocations: 31.2 MB / 478 MB, free: 6.703 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002954/0.7404, allocations: 98.06 kB / 478.1 MB, free: 6.703 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003731/0.7442, allocations: 1.15 MB / 479.3 MB, free: 6.699 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01912/0.7633, allocations: 6.056 MB / 485.3 MB, free: 6.625 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02096/0.7843, allocations: 6.807 MB / 492.1 MB, free: 6.508 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.007471/0.7918, allocations: 4.402 MB / 496.5 MB, free: 6.508 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00232/0.7941, allocations: 1.227 MB / 497.8 MB, free: 6.391 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004943/0.7991, allocations: 2.019 MB / 499.8 MB, free: 6.387 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03/0.8292, allocations: 18.24 MB / 0.5059 GB, free: 1.188 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006232/0.8298, allocations: 108 kB / 0.506 GB, free: 1.082 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02395/0.8538, allocations: 9.452 MB / 0.5152 GB, free: 9.688 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001493/0.8553, allocations: 0.7051 MB / 0.5159 GB, free: 9.234 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001089/0.8565, allocations: 490.2 kB / 0.5164 GB, free: 8.953 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01379/0.8703, allocations: 6.074 MB / 0.5223 GB, free: 3.789 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.038e-06/0.8703, allocations: 4 kB / 0.5223 GB, free: 3.785 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.356e-06/0.8703, allocations: 2.812 kB / 0.5223 GB, free: 3.785 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.673e-05/0.8704, allocations: 0 / 0.5223 GB, free: 3.785 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.0115/0.8819, allocations: 3.49 MB / 0.5257 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.8819, allocations: 8.031 kB / 0.5257 GB, free: 496 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00649/0.8884, allocations: 0.7554 MB / 0.5265 GB, free: 15.79 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00375/0.8922, allocations: 1.501 MB / 0.5279 GB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002059/0.8924, allocations: 167.9 kB / 0.5281 GB, free: 14.54 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004268/0.8929, allocations: 180.5 kB / 0.5283 GB, free: 14.42 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008971/0.9019, allocations: 3.234 MB / 0.5314 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.124e-05/0.902, allocations: 6.906 kB / 0.5314 GB, free: 11.9 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002774/0.9022, allocations: 79.44 kB / 0.5315 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003011/0.9026, allocations: 172.8 kB / 0.5317 GB, free: 11.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009374/0.912, allocations: 3.13 MB / 0.5347 GB, free: 9.508 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.02173/0.9337, allocations: 13.58 MB / 0.548 GB, free: 13 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006564/0.9403, allocations: 2.021 MB / 0.55 GB, free: 11.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07205/1.012, allocations: 19.06 MB / 0.5686 GB, free: 6.605 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01162/1.024, allocations: 1.571 MB / 0.5701 GB, free: 5.383 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001799/1.026, allocations: 161.4 kB / 0.5703 GB, free: 5.246 MB / 458.7 MB Notification: Performance of pre-optimization done (n=155): time 1.046e-05/1.026, allocations: 0 / 0.5703 GB, free: 5.246 MB / 458.7 MB Notification: Performance of matching and sorting (n=167): time 0.03342/1.059, allocations: 8.316 MB / 0.5784 GB, free: 14.77 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001512/1.06, allocations: 182.3 kB / 0.5786 GB, free: 14.56 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002506/1.062, allocations: 1.404 MB / 0.5799 GB, free: 13.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002953/1.062, allocations: 59.7 kB / 0.58 GB, free: 13.45 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008339/1.063, allocations: 0.8512 MB / 0.5808 GB, free: 12.88 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007646/1.064, allocations: 0.5579 MB / 0.5814 GB, free: 12.41 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001583/1.064, allocations: 36.12 kB / 0.5814 GB, free: 12.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002564/1.065, allocations: 388.5 kB / 0.5818 GB, free: 12.04 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002522/1.067, allocations: 1.006 MB / 0.5828 GB, free: 11.37 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003068/1.07, allocations: 1.488 MB / 0.5842 GB, free: 10.09 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003023/1.073, allocations: 1.254 MB / 0.5854 GB, free: 9.277 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.476e-05/1.073, allocations: 4 kB / 0.5854 GB, free: 9.273 MB / 474.7 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.008173/1.081, allocations: 3.023 MB / 0.5884 GB, free: 7.152 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005303/1.082, allocations: 0.5282 MB / 0.5889 GB, free: 6.492 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.185e-05/1.082, allocations: 15.95 kB / 0.5889 GB, free: 6.477 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003279/1.085, allocations: 0.5374 MB / 0.5894 GB, free: 6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002575/1.088, allocations: 465.4 kB / 0.5899 GB, free: 5.594 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002949/1.091, allocations: 2.702 MB / 0.5925 GB, free: 3.031 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002706/1.094, allocations: 259.6 kB / 0.5928 GB, free: 2.809 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003363/1.094, allocations: 93.59 kB / 0.5929 GB, free: 2.734 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/1.094, allocations: 4 kB / 0.5929 GB, free: 2.73 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007199/1.101, allocations: 2.781 MB / 0.5956 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.765e-05/1.101, allocations: 12.91 kB / 0.5956 GB, free: 0.832 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009849/1.102, allocations: 213.8 kB / 0.5958 GB, free: 0.6562 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002552/1.105, allocations: 484.5 kB / 0.5963 GB, free: 236 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001807/1.107, allocations: 1.884 MB / 0.5981 GB, free: 14.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00224/1.109, allocations: 249.8 kB / 0.5983 GB, free: 14.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003862/1.109, allocations: 95.78 kB / 0.5984 GB, free: 14.12 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 (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_a.phase,pipe2.state_a.phase,pipe1.state_a.phase,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 (224): * Single equations (assignments): 218 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.001747/1.111, allocations: 0.7156 MB / 0.5991 GB, free: 13.59 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005446/1.112, allocations: 193.7 kB / 0.5993 GB, free: 13.39 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01431/1.126, allocations: 7.433 MB / 0.6066 GB, free: 8.34 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.67e-05/1.126, allocations: 78.62 kB / 0.6066 GB, free: 8.281 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/1.126, allocations: 4 kB / 0.6067 GB, free: 8.277 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01189/1.138, allocations: 6.489 MB / 0.613 GB, free: 3.539 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02295/1.161, allocations: 11.06 MB / 0.6238 GB, free: 8.344 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.289e-05/1.161, allocations: 4 kB / 0.6238 GB, free: 8.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001952/1.163, allocations: 357.1 kB / 0.6241 GB, free: 8.008 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003766/1.167, allocations: 1.202 MB / 0.6253 GB, free: 6.797 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003775/1.167, allocations: 66.55 kB / 0.6254 GB, free: 6.734 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003634/1.171, allocations: 3.189 MB / 0.6285 GB, free: 3.449 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.095e-05/1.171, allocations: 6.812 kB / 0.6285 GB, free: 3.445 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01452/1.186, allocations: 7.07 MB / 0.6354 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001816/1.188, allocations: 0.6861 MB / 0.6361 GB, free: 11.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004972/1.188, allocations: 51.98 kB / 0.6361 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001873/1.19, allocations: 183.5 kB / 0.6363 GB, free: 11.27 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003918/1.19, allocations: 152.4 kB / 0.6364 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002112/1.191, allocations: 71.97 kB / 0.6365 GB, free: 11.05 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002121/1.193, allocations: 1.043 MB / 0.6375 GB, free: 9.984 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.54e-07/1.193, allocations: 0 / 0.6375 GB, free: 9.984 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008114/1.201, allocations: 2.401 MB / 0.6399 GB, free: 7.582 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse22.region3boundary,$cse23.region3boundary,$cse24.phase,$cse24.region,$cse26.phase,$cse26.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 (177): * Single equations (assignments): 151 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.008434/1.209, allocations: 2.003 MB / 0.6418 GB, free: 5.758 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01186/1.221, allocations: 4.906 MB / 0.6466 GB, free: 0.9023 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/1.221, allocations: 4 kB / 0.6466 GB, free: 0.8984 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005384/1.227, allocations: 2.501 MB / 0.6491 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005136/1.232, allocations: 0.8412 MB / 0.6499 GB, free: 13.58 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01607/1.248, allocations: 8.398 MB / 0.6581 GB, free: 5.23 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003098/1.251, allocations: 2.138 MB / 0.6602 GB, free: 3.062 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009733/1.252, allocations: 183.4 kB / 0.6603 GB, free: 2.883 MB / 0.5261 GB Notification: Performance of SimCode: time 1.619e-06/1.252, allocations: 0 / 0.6603 GB, free: 2.883 MB / 0.5261 GB Notification: Performance of Templates: time 0.3874/1.64, allocations: 107.6 MB / 0.7654 GB, free: 134.4 MB / 0.5261 GB