Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.051/2.051, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004541/0.0004549, allocations: 12 kB / 282.5 MB, free: 9.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2796, allocations: 48.71 MB / 331.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2): time 0.1075/0.3871, allocations: 76.99 MB / 408.2 MB, free: 1.375 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05558/0.4427, allocations: 31.02 MB / 439.2 MB, free: 2.297 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003244/0.446, allocations: 99.19 kB / 439.3 MB, free: 2.199 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004249/0.4503, allocations: 1.144 MB / 440.4 MB, free: 1.051 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02249/0.4729, allocations: 5.98 MB / 446.4 MB, free: 11.05 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02366/0.4966, allocations: 6.769 MB / 453.2 MB, free: 4.277 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0084/0.505, allocations: 4.355 MB / 457.5 MB, free: 15.91 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002625/0.5077, allocations: 1.221 MB / 458.8 MB, free: 14.67 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005354/0.513, allocations: 1.998 MB / 460.8 MB, free: 12.66 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3/0.813, allocations: 18.05 MB / 478.8 MB, free: 23.82 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000684/0.8138, allocations: 106.1 kB / 478.9 MB, free: 23.82 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02127/0.8351, allocations: 9.302 MB / 488.2 MB, free: 23.8 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001287/0.8364, allocations: 0.6936 MB / 488.9 MB, free: 23.8 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008823/0.8373, allocations: 493.5 kB / 489.4 MB, free: 23.77 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01186/0.8492, allocations: 5.999 MB / 495.4 MB, free: 23.4 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.443e-06/0.8492, allocations: 4 kB / 495.4 MB, free: 23.4 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.601e-06/0.8493, allocations: 0 / 495.4 MB, free: 23.4 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.712e-05/0.8493, allocations: 0 / 495.4 MB, free: 23.4 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.0109/0.8602, allocations: 3.409 MB / 498.8 MB, free: 21.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.8603, allocations: 10.91 kB / 498.8 MB, free: 21.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006976/0.8673, allocations: 0.7306 MB / 499.5 MB, free: 21.66 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00383/0.8712, allocations: 1.489 MB / 0.4893 GB, free: 21.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002191/0.8714, allocations: 161.3 kB / 0.4894 GB, free: 21.26 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005111/0.8719, allocations: 182.7 kB / 0.4896 GB, free: 21.26 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009502/0.8815, allocations: 3.224 MB / 0.4928 GB, free: 20.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.197e-05/0.8816, allocations: 11.8 kB / 0.4928 GB, free: 20.86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002853/0.8819, allocations: 74.34 kB / 0.4929 GB, free: 20.86 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002451/0.8821, allocations: 169.4 kB / 0.493 GB, free: 20.86 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0106/0.8927, allocations: 3.126 MB / 0.4961 GB, free: 20.82 MB / 394.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.01852/0.9113, allocations: 13.55 MB / 0.5093 GB, free: 10.88 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006778/0.9181, allocations: 2.03 MB / 0.5113 GB, free: 9.422 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04081/0.959, allocations: 19.01 MB / 0.5298 GB, free: 4.535 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005582/0.9646, allocations: 1.555 MB / 0.5314 GB, free: 3.316 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001112/0.9658, allocations: 151.5 kB / 0.5315 GB, free: 3.191 MB / 410.7 MB Notification: Performance of pre-optimization done (n=151): time 5.927e-06/0.9658, allocations: 0 / 0.5315 GB, free: 3.191 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.02956/0.9954, allocations: 8.242 MB / 0.5396 GB, free: 12.76 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/0.9956, allocations: 179.4 kB / 0.5397 GB, free: 12.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002576/0.9981, allocations: 1.397 MB / 0.5411 GB, free: 11.49 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000348/0.9985, allocations: 54.95 kB / 0.5411 GB, free: 11.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008544/0.9994, allocations: 0.8631 MB / 0.542 GB, free: 10.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008454/1, allocations: 0.545 MB / 0.5425 GB, free: 10.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001744/1, allocations: 36.94 kB / 0.5426 GB, free: 10.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002618/1.001, allocations: 386.9 kB / 0.5429 GB, free: 10.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002639/1.003, allocations: 0.9939 MB / 0.5439 GB, free: 9.371 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003218/1.007, allocations: 1.477 MB / 0.5453 GB, free: 8.102 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003062/1.01, allocations: 1.253 MB / 0.5466 GB, free: 7.285 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.448e-05/1.01, allocations: 4 kB / 0.5466 GB, free: 7.281 MB / 426.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.008528/1.018, allocations: 3.035 MB / 0.5495 GB, free: 5.164 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005209/1.019, allocations: 0.526 MB / 0.55 GB, free: 4.504 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-05/1.019, allocations: 15.56 kB / 0.5501 GB, free: 4.492 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003273/1.022, allocations: 0.5288 MB / 0.5506 GB, free: 4.023 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002626/1.025, allocations: 466.1 kB / 0.551 GB, free: 3.613 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003009/1.028, allocations: 2.7 MB / 0.5537 GB, free: 1.051 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002874/1.031, allocations: 256.6 kB / 0.5539 GB, free: 0.832 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003246/1.031, allocations: 96.59 kB / 0.554 GB, free: 0.7539 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/1.031, allocations: 7.438 kB / 0.554 GB, free: 0.75 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007227/1.038, allocations: 2.78 MB / 0.5567 GB, free: 14.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.483e-05/1.038, allocations: 12 kB / 0.5567 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000954/1.039, allocations: 217.6 kB / 0.5569 GB, free: 14.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002678/1.042, allocations: 486.9 kB / 0.5574 GB, free: 14.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001854/1.044, allocations: 1.876 MB / 0.5592 GB, free: 12.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002313/1.046, allocations: 252.8 kB / 0.5595 GB, free: 12.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002824/1.047, allocations: 93.91 kB / 0.5596 GB, free: 12.13 MB / 442.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: 27 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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.001663/1.048, allocations: 0.7176 MB / 0.5603 GB, free: 11.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005069/1.049, allocations: 187.9 kB / 0.5604 GB, free: 11.41 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01441/1.063, allocations: 7.459 MB / 0.5677 GB, free: 6.324 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.623e-05/1.063, allocations: 87.56 kB / 0.5678 GB, free: 6.262 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/1.063, allocations: 4 kB / 0.5678 GB, free: 6.258 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01228/1.076, allocations: 6.521 MB / 0.5742 GB, free: 1.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02235/1.098, allocations: 11.07 MB / 0.585 GB, free: 10.24 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.211e-05/1.098, allocations: 4 kB / 0.585 GB, free: 10.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/1.1, allocations: 361.7 kB / 0.5853 GB, free: 9.906 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003748/1.104, allocations: 1.195 MB / 0.5865 GB, free: 8.848 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003759/1.104, allocations: 64.12 kB / 0.5866 GB, free: 8.812 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003538/1.108, allocations: 3.185 MB / 0.5897 GB, free: 5.98 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.625e-06/1.108, allocations: 4 kB / 0.5897 GB, free: 5.977 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01391/1.122, allocations: 7.066 MB / 0.5966 GB, free: 1.121 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001855/1.124, allocations: 0.6841 MB / 0.5973 GB, free: 0.5312 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005276/1.124, allocations: 52.11 kB / 0.5973 GB, free: 0.5078 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002089/1.126, allocations: 178.4 kB / 0.5975 GB, free: 368 kB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004034/1.127, allocations: 146.2 kB / 0.5976 GB, free: 244 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002092/1.127, allocations: 70.81 kB / 0.5977 GB, free: 188 kB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00211/1.129, allocations: 1.046 MB / 0.5987 GB, free: 15.38 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.129, allocations: 3.188 kB / 0.5987 GB, free: 15.38 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008717/1.138, allocations: 2.377 MB / 0.601 GB, free: 13.15 MB / 474.7 MB 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: 53 ($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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,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.009268/1.147, allocations: 1.987 MB / 0.603 GB, free: 11.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01164/1.159, allocations: 4.778 MB / 0.6076 GB, free: 8.043 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/1.159, allocations: 4.062 kB / 0.6076 GB, free: 8.039 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005216/1.164, allocations: 2.448 MB / 0.61 GB, free: 6.512 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005111/1.169, allocations: 0.8282 MB / 0.6108 GB, free: 5.832 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01627/1.186, allocations: 8.393 MB / 0.619 GB, free: 14.17 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00272/1.189, allocations: 2.122 MB / 0.6211 GB, free: 12.02 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009976/1.19, allocations: 183.4 kB / 0.6213 GB, free: 11.84 MB / 490.7 MB Notification: Performance of SimCode: time 1.861e-06/1.19, allocations: 0 / 0.6213 GB, free: 11.84 MB / 490.7 MB Notification: Performance of Templates: time 0.3816/1.571, allocations: 107 MB / 0.7258 GB, free: 155.3 MB / 0.4948 GB