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.BranchingPipes3.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.BranchingPipes3,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.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 2.246/2.246, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004244/0.0004245, allocations: 15.98 kB / 314.3 MB, free: 9.586 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2708, allocations: 54.86 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3): time 0.1151/0.3859, allocations: 83.44 MB / 452.6 MB, free: 7.09 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.354/0.74, allocations: 31.25 MB / 483.9 MB, free: 6.805 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003074/0.7431, allocations: 99.16 kB / 484 MB, free: 6.805 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003445/0.7466, allocations: 1.172 MB / 485.1 MB, free: 6.801 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0191/0.7657, allocations: 6.087 MB / 491.2 MB, free: 6.73 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02099/0.7867, allocations: 6.803 MB / 498 MB, free: 6.609 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.007019/0.7938, allocations: 4.45 MB / 0.4907 GB, free: 6.609 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001936/0.7958, allocations: 1.235 MB / 0.4919 GB, free: 6.488 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00394/0.7997, allocations: 2.034 MB / 0.4939 GB, free: 6.484 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02888/0.8286, allocations: 18.25 MB / 0.5117 GB, free: 15.58 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005748/0.8292, allocations: 108 kB / 0.5118 GB, free: 15.47 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02388/0.8531, allocations: 9.451 MB / 0.521 GB, free: 8.078 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001327/0.8545, allocations: 0.6954 MB / 0.5217 GB, free: 7.629 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001038/0.8556, allocations: 0.4933 MB / 0.5222 GB, free: 7.344 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01404/0.8696, allocations: 6.098 MB / 0.5282 GB, free: 2.16 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.599e-06/0.8697, allocations: 4 kB / 0.5282 GB, free: 2.156 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.882e-06/0.8697, allocations: 4 kB / 0.5282 GB, free: 2.152 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.963e-05/0.8697, allocations: 0 / 0.5282 GB, free: 2.152 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.01059/0.8803, allocations: 3.426 MB / 0.5315 GB, free: 14.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.8804, allocations: 12.03 kB / 0.5315 GB, free: 14.91 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006538/0.8869, allocations: 0.7533 MB / 0.5323 GB, free: 14.22 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003916/0.8909, allocations: 1.485 MB / 0.5337 GB, free: 13.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002273/0.8912, allocations: 165.9 kB / 0.5339 GB, free: 12.97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004241/0.8916, allocations: 186 kB / 0.5341 GB, free: 12.85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009081/0.9007, allocations: 3.183 MB / 0.5372 GB, free: 10.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.148e-05/0.9008, allocations: 9.906 kB / 0.5372 GB, free: 10.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002546/0.9011, allocations: 74.44 kB / 0.5372 GB, free: 10.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003156/0.9014, allocations: 178.3 kB / 0.5374 GB, free: 10.21 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009345/0.9108, allocations: 2.93 MB / 0.5403 GB, free: 8.109 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.02228/0.9331, allocations: 13.83 MB / 0.5538 GB, free: 11.32 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006554/0.9397, allocations: 2.016 MB / 0.5557 GB, free: 9.867 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04524/0.985, allocations: 19.05 MB / 0.5743 GB, free: 4.945 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005505/0.9905, allocations: 1.572 MB / 0.5759 GB, free: 3.723 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001134/0.9917, allocations: 168.6 kB / 0.576 GB, free: 3.582 MB / 458.7 MB Notification: Performance of pre-optimization done (n=155): time 1.093e-05/0.9917, allocations: 3.984 kB / 0.576 GB, free: 3.578 MB / 458.7 MB Notification: Performance of matching and sorting (n=167): time 0.0284/1.02, allocations: 8.282 MB / 0.5841 GB, free: 13.13 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/1.02, allocations: 179.1 kB / 0.5843 GB, free: 12.93 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002526/1.023, allocations: 1.412 MB / 0.5857 GB, free: 11.85 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002978/1.023, allocations: 56.89 kB / 0.5857 GB, free: 11.81 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000854/1.024, allocations: 0.8703 MB / 0.5866 GB, free: 11.23 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007679/1.025, allocations: 0.5551 MB / 0.5871 GB, free: 10.75 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/1.025, allocations: 37.94 kB / 0.5872 GB, free: 10.75 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002579/1.025, allocations: 383.8 kB / 0.5875 GB, free: 10.39 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00257/1.028, allocations: 1.006 MB / 0.5885 GB, free: 9.715 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003062/1.031, allocations: 1.489 MB / 0.59 GB, free: 8.438 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00294/1.034, allocations: 1.257 MB / 0.5912 GB, free: 7.621 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-05/1.034, allocations: 7.953 kB / 0.5912 GB, free: 7.613 MB / 474.7 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.008182/1.042, allocations: 3.018 MB / 0.5942 GB, free: 5.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005016/1.043, allocations: 0.533 MB / 0.5947 GB, free: 4.836 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.639e-05/1.043, allocations: 12 kB / 0.5947 GB, free: 4.824 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003254/1.046, allocations: 0.5374 MB / 0.5952 GB, free: 4.352 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002558/1.049, allocations: 473.8 kB / 0.5957 GB, free: 3.938 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002943/1.052, allocations: 2.694 MB / 0.5983 GB, free: 1.375 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002847/1.054, allocations: 258.2 kB / 0.5985 GB, free: 1.152 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003608/1.055, allocations: 99.53 kB / 0.5986 GB, free: 1.074 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/1.055, allocations: 4 kB / 0.5986 GB, free: 1.07 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007065/1.062, allocations: 2.777 MB / 0.6014 GB, free: 15.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-05/1.062, allocations: 12 kB / 0.6014 GB, free: 15.17 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009526/1.063, allocations: 219.6 kB / 0.6016 GB, free: 15 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002555/1.066, allocations: 475.9 kB / 0.602 GB, free: 14.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00179/1.067, allocations: 1.885 MB / 0.6039 GB, free: 12.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002237/1.07, allocations: 258.6 kB / 0.6041 GB, free: 12.53 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000271/1.07, allocations: 93.97 kB / 0.6042 GB, free: 12.45 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.001671/1.072, allocations: 0.728 MB / 0.6049 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005101/1.072, allocations: 189.7 kB / 0.6051 GB, free: 11.73 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01466/1.087, allocations: 7.42 MB / 0.6123 GB, free: 5.684 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001071/1.087, allocations: 87.86 kB / 0.6124 GB, free: 5.598 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/1.087, allocations: 0 / 0.6124 GB, free: 5.598 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0124/1.099, allocations: 6.486 MB / 0.6188 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02219/1.122, allocations: 11.09 MB / 0.6296 GB, free: 3.715 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.928e-05/1.122, allocations: 4 kB / 0.6296 GB, free: 3.711 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001847/1.124, allocations: 356.1 kB / 0.6299 GB, free: 3.379 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003627/1.127, allocations: 1.199 MB / 0.6311 GB, free: 2.172 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002512/1.127, allocations: 63.97 kB / 0.6312 GB, free: 2.109 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003595/1.131, allocations: 3.189 MB / 0.6343 GB, free: 14.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.046e-05/1.131, allocations: 6.156 kB / 0.6343 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01394/1.145, allocations: 7.058 MB / 0.6412 GB, free: 7.586 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00171/1.147, allocations: 0.6913 MB / 0.6418 GB, free: 6.871 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003904/1.147, allocations: 55.98 kB / 0.6419 GB, free: 6.816 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003105/1.15, allocations: 179.7 kB / 0.6421 GB, free: 6.641 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00074/1.151, allocations: 152.3 kB / 0.6422 GB, free: 6.492 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004512/1.152, allocations: 67.98 kB / 0.6423 GB, free: 6.426 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004142/1.156, allocations: 1.053 MB / 0.6433 GB, free: 5.352 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.583e-06/1.156, allocations: 3.281 kB / 0.6433 GB, free: 5.352 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01478/1.171, allocations: 2.435 MB / 0.6457 GB, free: 2.918 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 ($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 (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.01555/1.186, allocations: 2.015 MB / 0.6477 GB, free: 1.086 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02128/1.208, allocations: 4.903 MB / 0.6524 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.371e-05/1.208, allocations: 0 / 0.6524 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009639/1.217, allocations: 2.504 MB / 0.6549 GB, free: 9.75 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009995/1.227, allocations: 0.9034 MB / 0.6558 GB, free: 8.848 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01945/1.247, allocations: 8.459 MB / 0.664 GB, free: 440 kB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3531/1.6, allocations: 2.136 MB / 0.6661 GB, free: 222.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009841/1.601, allocations: 190.3 kB / 0.6663 GB, free: 222.1 MB / 0.5261 GB Notification: Performance of SimCode: time 2.209e-06/1.601, allocations: 0 / 0.6663 GB, free: 222.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.1318/1.733, allocations: 108.3 MB / 0.7721 GB, free: 130.9 MB / 0.5261 GB