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.BranchingPipes3.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.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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 2.017/2.017, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004395/0.0004394, allocations: 12 kB / 282.5 MB, free: 9.648 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2829, allocations: 48.71 MB / 331.2 MB, free: 6.477 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3): time 0.1193/0.4023, allocations: 82.74 MB / 413.9 MB, free: 11.62 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.05684/0.4592, allocations: 31.07 MB / 445 MB, free: 12.5 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00322/0.4624, allocations: 95.25 kB / 445.1 MB, free: 12.4 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004118/0.4666, allocations: 1.167 MB / 446.3 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02199/0.4886, allocations: 6.003 MB / 452.3 MB, free: 5.211 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02327/0.5119, allocations: 6.773 MB / 459 MB, free: 14.43 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.008551/0.5204, allocations: 4.398 MB / 463.4 MB, free: 10.02 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002654/0.5231, allocations: 1.234 MB / 464.7 MB, free: 8.762 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005406/0.5286, allocations: 1.998 MB / 466.7 MB, free: 6.758 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.302/0.8306, allocations: 18.05 MB / 484.7 MB, free: 18.78 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005992/0.8313, allocations: 103.5 kB / 484.8 MB, free: 18.78 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02071/0.852, allocations: 9.301 MB / 494.1 MB, free: 18.76 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001263/0.8533, allocations: 0.6896 MB / 494.8 MB, free: 18.76 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009234/0.8542, allocations: 0.4885 MB / 495.3 MB, free: 18.73 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01216/0.8664, allocations: 6.027 MB / 0.4896 GB, free: 18.34 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.229e-06/0.8665, allocations: 0 / 0.4896 GB, free: 18.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.279e-06/0.8665, allocations: 0 / 0.4896 GB, free: 18.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.208e-05/0.8665, allocations: 0 / 0.4896 GB, free: 18.34 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.009546/0.8761, allocations: 3.347 MB / 0.4928 GB, free: 16.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.8762, allocations: 11.78 kB / 0.4929 GB, free: 16.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006409/0.8826, allocations: 0.7287 MB / 0.4936 GB, free: 16.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003641/0.8863, allocations: 1.485 MB / 0.495 GB, free: 16.2 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000212/0.8865, allocations: 159.9 kB / 0.4952 GB, free: 16.19 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005536/0.8871, allocations: 182.3 kB / 0.4953 GB, free: 16.19 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009623/0.8967, allocations: 3.178 MB / 0.4984 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-05/0.8968, allocations: 9.812 kB / 0.4985 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002876/0.8971, allocations: 80.03 kB / 0.4985 GB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002545/0.8974, allocations: 169.5 kB / 0.4987 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009983/0.9074, allocations: 2.921 MB / 0.5015 GB, free: 13.88 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.02435/0.9318, allocations: 13.8 MB / 0.515 GB, free: 17.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01108/0.943, allocations: 2.019 MB / 0.517 GB, free: 15.78 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07344/1.016, allocations: 19.03 MB / 0.5356 GB, free: 10.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005551/1.022, allocations: 1.56 MB / 0.5371 GB, free: 9.652 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001199/1.023, allocations: 170.9 kB / 0.5373 GB, free: 9.516 MB / 426.7 MB Notification: Performance of pre-optimization done (n=151): time 5.459e-06/1.023, allocations: 0 / 0.5373 GB, free: 9.516 MB / 426.7 MB Notification: Performance of matching and sorting (n=163): time 0.02903/1.052, allocations: 8.227 MB / 0.5453 GB, free: 3.098 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/1.053, allocations: 178.8 kB / 0.5455 GB, free: 2.891 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002561/1.055, allocations: 1.403 MB / 0.5468 GB, free: 1.824 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003586/1.055, allocations: 54.52 kB / 0.5469 GB, free: 1.785 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008536/1.056, allocations: 0.8666 MB / 0.5477 GB, free: 1.203 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007619/1.057, allocations: 0.5504 MB / 0.5483 GB, free: 0.7344 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/1.057, allocations: 37.62 kB / 0.5483 GB, free: 0.7266 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002519/1.058, allocations: 386.6 kB / 0.5487 GB, free: 380 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002569/1.06, allocations: 0.9975 MB / 0.5496 GB, free: 15.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003123/1.063, allocations: 1.475 MB / 0.5511 GB, free: 14.43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002988/1.066, allocations: 1.248 MB / 0.5523 GB, free: 13.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.547e-05/1.066, allocations: 4 kB / 0.5523 GB, free: 13.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.008978/1.075, allocations: 3.102 MB / 0.5553 GB, free: 11.44 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004974/1.076, allocations: 0.5212 MB / 0.5558 GB, free: 10.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.717e-05/1.076, allocations: 12 kB / 0.5559 GB, free: 10.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003235/1.079, allocations: 0.5335 MB / 0.5564 GB, free: 10.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0026/1.082, allocations: 473.2 kB / 0.5568 GB, free: 9.887 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002945/1.085, allocations: 2.703 MB / 0.5595 GB, free: 7.324 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002971/1.088, allocations: 255 kB / 0.5597 GB, free: 7.102 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003399/1.088, allocations: 96.47 kB / 0.5598 GB, free: 7.027 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/1.088, allocations: 7.438 kB / 0.5598 GB, free: 7.023 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007124/1.095, allocations: 2.79 MB / 0.5625 GB, free: 5.117 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.989e-05/1.095, allocations: 19.98 kB / 0.5626 GB, free: 5.098 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009563/1.096, allocations: 213.4 kB / 0.5628 GB, free: 4.926 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002625/1.099, allocations: 481.4 kB / 0.5632 GB, free: 4.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001803/1.101, allocations: 1.878 MB / 0.565 GB, free: 2.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002342/1.103, allocations: 259.5 kB / 0.5653 GB, free: 2.457 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002617/1.104, allocations: 96.53 kB / 0.5654 GB, free: 2.383 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.001628/1.105, allocations: 0.7225 MB / 0.5661 GB, free: 1.848 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004996/1.106, allocations: 185.8 kB / 0.5663 GB, free: 1.664 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01395/1.12, allocations: 7.414 MB / 0.5735 GB, free: 12.62 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001022/1.12, allocations: 90.83 kB / 0.5736 GB, free: 12.56 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/1.12, allocations: 0 / 0.5736 GB, free: 12.56 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01162/1.131, allocations: 6.487 MB / 0.5799 GB, free: 8.059 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02142/1.153, allocations: 11.08 MB / 0.5907 GB, free: 0.5703 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.051e-05/1.153, allocations: 4 kB / 0.5908 GB, free: 0.5664 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001943/1.155, allocations: 354.7 kB / 0.5911 GB, free: 252 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0037/1.159, allocations: 1.197 MB / 0.5923 GB, free: 15.19 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003679/1.159, allocations: 64.53 kB / 0.5923 GB, free: 15.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003536/1.163, allocations: 3.201 MB / 0.5954 GB, free: 12.32 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.168e-06/1.163, allocations: 4 kB / 0.5955 GB, free: 12.31 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01324/1.176, allocations: 7.057 MB / 0.6023 GB, free: 7.461 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001707/1.178, allocations: 0.6824 MB / 0.603 GB, free: 6.871 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004088/1.178, allocations: 52.48 kB / 0.6031 GB, free: 6.848 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001964/1.18, allocations: 181.7 kB / 0.6032 GB, free: 6.691 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004159/1.181, allocations: 151.4 kB / 0.6034 GB, free: 6.562 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002079/1.181, allocations: 68.41 kB / 0.6034 GB, free: 6.508 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002044/1.183, allocations: 1.046 MB / 0.6045 GB, free: 5.703 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.47e-07/1.183, allocations: 2.734 kB / 0.6045 GB, free: 5.703 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008111/1.191, allocations: 2.411 MB / 0.6068 GB, free: 3.441 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 ($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,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.008667/1.2, allocations: 1.992 MB / 0.6088 GB, free: 1.688 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01106/1.211, allocations: 4.775 MB / 0.6134 GB, free: 14.34 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.761e-06/1.211, allocations: 4 kB / 0.6134 GB, free: 14.33 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005014/1.216, allocations: 2.447 MB / 0.6158 GB, free: 12.81 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005336/1.221, allocations: 0.8998 MB / 0.6167 GB, free: 12.07 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01553/1.237, allocations: 8.44 MB / 0.6249 GB, free: 4.707 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002629/1.239, allocations: 2.134 MB / 0.627 GB, free: 2.621 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009784/1.24, allocations: 188.6 kB / 0.6272 GB, free: 2.449 MB / 490.7 MB Notification: Performance of SimCode: time 1.629e-06/1.24, allocations: 6.734 kB / 0.6272 GB, free: 2.445 MB / 490.7 MB Notification: Performance of Templates: time 0.3683/1.609, allocations: 107.7 MB / 0.7324 GB, free: 148.3 MB / 0.4948 GB