Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 1.893/1.893, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004207/0.0004207, allocations: 8 kB / 283.1 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3598, allocations: 48.7 MB / 331.8 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.336/7.696, allocations: 2.562 GB / 2.886 GB, free: 97.62 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/7.696, allocations: 84.73 kB / 2.886 GB, free: 97.61 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018/11.71, allocations: 0.7809 GB / 3.667 GB, free: 11.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.066e-06/11.71, allocations: 0 / 3.667 GB, free: 11.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003064/11.71, allocations: 67.7 kB / 3.667 GB, free: 11.23 MB / 458.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.0196/11.73, allocations: 3.781 MB / 3.671 GB, free: 7.414 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/11.73, allocations: 20.02 kB / 3.671 GB, free: 7.395 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008023/11.74, allocations: 0.7465 MB / 3.672 GB, free: 6.645 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008563/11.75, allocations: 2.01 MB / 3.674 GB, free: 4.613 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003276/11.75, allocations: 169.2 kB / 3.674 GB, free: 4.457 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001012/11.75, allocations: 177.4 kB / 3.674 GB, free: 4.293 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0124/11.76, allocations: 3.341 MB / 3.677 GB, free: 0.8086 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.77e-05/11.76, allocations: 7.938 kB / 3.677 GB, free: 0.8008 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004308/11.77, allocations: 79.33 kB / 3.677 GB, free: 0.7344 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002773/11.77, allocations: 143.2 kB / 3.677 GB, free: 0.5938 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01384/11.78, allocations: 3.162 MB / 3.68 GB, free: 13.43 MB / 474.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.4076/12.19, allocations: 13.62 MB / 3.694 GB, free: 32.91 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008122/12.2, allocations: 2.035 MB / 3.696 GB, free: 32.88 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05959/12.25, allocations: 18.79 MB / 3.714 GB, free: 21.06 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005983/12.26, allocations: 1.59 MB / 3.716 GB, free: 20.95 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001675/12.26, allocations: 172.1 kB / 3.716 GB, free: 20.95 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 7.073e-06/12.26, allocations: 0 / 3.716 GB, free: 20.95 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.03455/12.3, allocations: 8.339 MB / 3.724 GB, free: 19.86 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/12.3, allocations: 258.3 kB / 3.724 GB, free: 19.58 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002777/12.3, allocations: 1.436 MB / 3.726 GB, free: 19.41 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005484/12.3, allocations: 62.98 kB / 3.726 GB, free: 19.38 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007885/12.3, allocations: 0.823 MB / 3.727 GB, free: 19.04 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000822/12.3, allocations: 0.5499 MB / 3.727 GB, free: 18.77 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/12.3, allocations: 31.88 kB / 3.727 GB, free: 18.77 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001356/12.3, allocations: 385.7 kB / 3.727 GB, free: 18.45 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00301/12.31, allocations: 1.008 MB / 3.728 GB, free: 18.45 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003478/12.31, allocations: 1.451 MB / 3.73 GB, free: 18.02 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00369/12.31, allocations: 1.245 MB / 3.731 GB, free: 17.94 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-05/12.31, allocations: 3.438 kB / 3.731 GB, free: 17.94 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.009873/12.32, allocations: 3.031 MB / 3.734 GB, free: 17.73 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002918/12.32, allocations: 476.2 kB / 3.734 GB, free: 17.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.066e-05/12.32, allocations: 16.34 kB / 3.734 GB, free: 17.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004461/12.33, allocations: 0.5277 MB / 3.735 GB, free: 17.17 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00362/12.33, allocations: 459 kB / 3.735 GB, free: 17.17 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002315/12.33, allocations: 2.707 MB / 3.738 GB, free: 15.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004004/12.34, allocations: 253.6 kB / 3.738 GB, free: 15.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003614/12.34, allocations: 95.91 kB / 3.738 GB, free: 15.08 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/12.34, allocations: 8.609 kB / 3.738 GB, free: 15.08 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008233/12.35, allocations: 2.77 MB / 3.741 GB, free: 14.95 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-05/12.35, allocations: 10.62 kB / 3.741 GB, free: 14.95 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/12.35, allocations: 215.5 kB / 3.741 GB, free: 14.92 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00362/12.35, allocations: 461.8 kB / 3.742 GB, free: 14.92 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/12.35, allocations: 1.879 MB / 3.744 GB, free: 13.37 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003246/12.36, allocations: 255.2 kB / 3.744 GB, free: 13.36 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003472/12.36, allocations: 99.61 kB / 3.744 GB, free: 13.36 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.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 (215): * Single equations (assignments): 209 * 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.001971/12.36, allocations: 0.7071 MB / 3.745 GB, free: 13.11 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005996/12.36, allocations: 187.4 kB / 3.745 GB, free: 13.01 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01537/12.37, allocations: 7.456 MB / 3.752 GB, free: 12.34 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.036e-05/12.37, allocations: 85.97 kB / 3.752 GB, free: 12.34 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/12.37, allocations: 0 / 3.752 GB, free: 12.34 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01294/12.39, allocations: 6.522 MB / 3.759 GB, free: 11.44 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02443/12.41, allocations: 11.18 MB / 3.769 GB, free: 10.32 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.919e-05/12.41, allocations: 7.438 kB / 3.769 GB, free: 10.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002816/12.41, allocations: 358.9 kB / 3.77 GB, free: 10.32 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004261/12.42, allocations: 1.17 MB / 3.771 GB, free: 10.26 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005087/12.42, allocations: 62.16 kB / 3.771 GB, free: 10.26 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003727/12.42, allocations: 3.192 MB / 3.774 GB, free: 24.16 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/12.42, allocations: 5.188 kB / 3.774 GB, free: 24.16 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01525/12.44, allocations: 7.158 MB / 3.781 GB, free: 23.33 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002103/12.44, allocations: 0.6956 MB / 3.782 GB, free: 23.02 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007433/12.44, allocations: 55.83 kB / 3.782 GB, free: 23.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002759/12.44, allocations: 187 kB / 3.782 GB, free: 23 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004027/12.44, allocations: 151.6 kB / 3.782 GB, free: 23 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002206/12.44, allocations: 72.33 kB / 3.782 GB, free: 23 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002295/12.45, allocations: 1.08 MB / 3.783 GB, free: 22.86 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.81e-07/12.45, allocations: 1.5 kB / 3.783 GB, free: 22.86 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01201/12.46, allocations: 2.532 MB / 3.786 GB, free: 22.75 MB / 490.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,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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.0146/12.47, allocations: 2.664 MB / 3.788 GB, free: 22.47 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01276/12.49, allocations: 4.748 MB / 3.793 GB, free: 22.14 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/12.49, allocations: 5.188 kB / 3.793 GB, free: 22.14 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005663/12.49, allocations: 2.447 MB / 3.795 GB, free: 22 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00767/12.5, allocations: 0.8425 MB / 3.796 GB, free: 21.96 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7561/13.26, allocations: 127.8 MB / 3.921 GB, free: 59.89 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002351/13.26, allocations: 2.124 MB / 3.923 GB, free: 59.15 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00125/13.26, allocations: 183 kB / 3.923 GB, free: 59.15 MB / 0.4948 GB Notification: Performance of SimCode: time 1.203e-06/13.26, allocations: 2.656 kB / 3.923 GB, free: 59.15 MB / 0.4948 GB Notification: Performance of Templates: time 0.1919/13.45, allocations: 109 MB / 4.03 GB, free: 29.38 MB / 0.4948 GB