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.BranchingPipes12.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.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.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.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.268/2.268, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009179/0.0009181, allocations: 12 kB / 314.3 MB, free: 9.527 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2767, allocations: 54.88 MB / 369.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12): time 0.1115/0.3882, allocations: 77.63 MB / 446.8 MB, free: 12.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3408/0.7291, allocations: 32.63 MB / 479.4 MB, free: 6.777 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003017/0.7322, allocations: 97.66 kB / 479.5 MB, free: 6.777 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003846/0.7361, allocations: 1.144 MB / 480.7 MB, free: 6.773 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02/0.7561, allocations: 6.201 MB / 486.9 MB, free: 6.699 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02256/0.7787, allocations: 7.205 MB / 494.1 MB, free: 6.586 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.007767/0.7865, allocations: 4.64 MB / 498.7 MB, free: 6.586 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002503/0.789, allocations: 1.302 MB / 0.4883 GB, free: 6.465 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005174/0.7942, allocations: 2.109 MB / 0.4904 GB, free: 6.461 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03023/0.8245, allocations: 18.35 MB / 0.5083 GB, free: 64 kB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000714/0.8253, allocations: 112 kB / 0.5084 GB, free: 15.95 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02633/0.8516, allocations: 10.1 MB / 0.5183 GB, free: 8.113 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001685/0.8533, allocations: 0.7701 MB / 0.519 GB, free: 7.609 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001252/0.8546, allocations: 0.5281 MB / 0.5195 GB, free: 7.309 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01559/0.8702, allocations: 6.602 MB / 0.526 GB, free: 1.691 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.475e-06/0.8703, allocations: 0 / 0.526 GB, free: 1.691 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.8703, allocations: 0 / 0.526 GB, free: 1.691 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.986e-05/0.8704, allocations: 0 / 0.526 GB, free: 1.691 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.0131/0.8835, allocations: 3.834 MB / 0.5297 GB, free: 14.08 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.8836, allocations: 12.03 kB / 0.5297 GB, free: 14.07 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007238/0.8908, allocations: 0.8304 MB / 0.5306 GB, free: 13.31 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004293/0.8951, allocations: 1.624 MB / 0.5321 GB, free: 12.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002336/0.8954, allocations: 178.2 kB / 0.5323 GB, free: 11.97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005173/0.8959, allocations: 192.5 kB / 0.5325 GB, free: 11.85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01066/0.9066, allocations: 3.607 MB / 0.536 GB, free: 9.066 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.537e-05/0.9067, allocations: 6.812 kB / 0.536 GB, free: 9.062 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003359/0.9071, allocations: 80.38 kB / 0.5361 GB, free: 9.043 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003686/0.9075, allocations: 201.2 kB / 0.5363 GB, free: 8.871 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01142/0.9189, allocations: 3.5 MB / 0.5397 GB, free: 6.41 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.0263/0.9452, allocations: 14.66 MB / 0.554 GB, free: 8.949 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006944/0.9522, allocations: 2.178 MB / 0.5562 GB, free: 7.391 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04503/0.9973, allocations: 19.12 MB / 0.5748 GB, free: 2.395 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005579/1.003, allocations: 1.646 MB / 0.5764 GB, free: 1.117 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001114/1.004, allocations: 186.2 kB / 0.5766 GB, free: 0.9648 MB / 458.7 MB Notification: Performance of pre-optimization done (n=162): time 5.804e-06/1.004, allocations: 0 / 0.5766 GB, free: 0.9648 MB / 458.7 MB Notification: Performance of matching and sorting (n=174): time 0.03311/1.037, allocations: 9.156 MB / 0.5856 GB, free: 9.809 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002408/1.037, allocations: 336.7 kB / 0.5859 GB, free: 9.41 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00306/1.041, allocations: 1.653 MB / 0.5875 GB, free: 8.176 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003602/1.041, allocations: 58.2 kB / 0.5875 GB, free: 8.137 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009682/1.042, allocations: 0.9539 MB / 0.5885 GB, free: 7.512 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008686/1.043, allocations: 0.5883 MB / 0.5891 GB, free: 7.008 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/1.043, allocations: 38.38 kB / 0.5891 GB, free: 7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002677/1.043, allocations: 394.5 kB / 0.5895 GB, free: 6.641 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002881/1.046, allocations: 1.141 MB / 0.5906 GB, free: 5.863 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00346/1.05, allocations: 1.654 MB / 0.5922 GB, free: 4.41 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003419/1.053, allocations: 1.409 MB / 0.5936 GB, free: 3.492 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.912e-05/1.053, allocations: 4 kB / 0.5936 GB, free: 3.488 MB / 474.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.008813/1.062, allocations: 3.393 MB / 0.5969 GB, free: 1.152 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005355/1.063, allocations: 0.5534 MB / 0.5974 GB, free: 468 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.723e-05/1.063, allocations: 21.19 kB / 0.5974 GB, free: 448 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006314/1.069, allocations: 0.9854 MB / 0.5984 GB, free: 15.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002692/1.072, allocations: 489.8 kB / 0.5989 GB, free: 15.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004095/1.076, allocations: 3.153 MB / 0.602 GB, free: 12.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002755/1.079, allocations: 232.2 kB / 0.6022 GB, free: 12.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000418/1.079, allocations: 104 kB / 0.6023 GB, free: 11.99 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/1.079, allocations: 5.859 kB / 0.6023 GB, free: 11.99 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00838/1.088, allocations: 3.195 MB / 0.6054 GB, free: 9.801 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.175e-05/1.088, allocations: 19.98 kB / 0.6054 GB, free: 9.781 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001688/1.089, allocations: 374 kB / 0.6058 GB, free: 9.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002743/1.092, allocations: 0.4966 MB / 0.6063 GB, free: 9.035 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005431/1.098, allocations: 4.131 MB / 0.6103 GB, free: 5.254 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002162/1.1, allocations: 227.5 kB / 0.6105 GB, free: 5.062 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003277/1.1, allocations: 111.5 kB / 0.6106 GB, free: 4.973 MB / 490.7 MB 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,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) * 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.001851/1.102, allocations: 0.772 MB / 0.6114 GB, free: 4.41 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005766/1.103, allocations: 209.5 kB / 0.6116 GB, free: 4.203 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01563/1.118, allocations: 7.833 MB / 0.6192 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001054/1.118, allocations: 91.72 kB / 0.6193 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/1.118, allocations: 0 / 0.6193 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01306/1.131, allocations: 6.859 MB / 0.626 GB, free: 6.406 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02054/1.152, allocations: 10.8 MB / 0.6366 GB, free: 11.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/1.152, allocations: 4 kB / 0.6366 GB, free: 11.49 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001882/1.154, allocations: 341.8 kB / 0.6369 GB, free: 11.17 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006651/1.161, allocations: 2.169 MB / 0.639 GB, free: 8.988 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003848/1.161, allocations: 63.97 kB / 0.6391 GB, free: 8.926 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005123/1.166, allocations: 4.082 MB / 0.6431 GB, free: 4.762 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.526e-06/1.166, allocations: 8.281 kB / 0.6431 GB, free: 4.754 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01582/1.182, allocations: 7.881 MB / 0.6508 GB, free: 12.74 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001924/1.184, allocations: 0.7301 MB / 0.6515 GB, free: 11.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004552/1.185, allocations: 51.98 kB / 0.6515 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001782/1.186, allocations: 183.6 kB / 0.6517 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003523/1.187, allocations: 141.8 kB / 0.6518 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002101/1.187, allocations: 70.97 kB / 0.6519 GB, free: 11.55 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002528/1.189, allocations: 1.213 MB / 0.6531 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.168e-06/1.19, allocations: 0 / 0.6531 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008548/1.198, allocations: 2.621 MB / 0.6556 GB, free: 7.699 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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.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.008778/1.207, allocations: 2.135 MB / 0.6577 GB, free: 5.762 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01357/1.22, allocations: 5.588 MB / 0.6632 GB, free: 180 kB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.392e-06/1.221, allocations: 2.625 kB / 0.6632 GB, free: 180 kB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.2591/1.48, allocations: 2.417 MB / 0.6655 GB, free: 224.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005157/1.485, allocations: 0.89 MB / 0.6664 GB, free: 224.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01483/1.5, allocations: 8.857 MB / 0.6751 GB, free: 220.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002023/1.502, allocations: 2.248 MB / 0.6773 GB, free: 219.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009626/1.503, allocations: 193 kB / 0.6774 GB, free: 219.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.824e-06/1.503, allocations: 1.203 kB / 0.6774 GB, free: 219.4 MB / 0.5261 GB Notification: Performance of Templates: time 0.1374/1.64, allocations: 115.1 MB / 0.7899 GB, free: 112.7 MB / 0.5261 GB