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.BranchingPipes13.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.BranchingPipes13,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.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.259/2.259, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.924e-05/2.977e-05, allocations: 4 kB / 309.7 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3191, allocations: 54.86 MB / 364.5 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.293/6.612, allocations: 2.656 GB / 3.012 GB, free: 115.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/6.612, allocations: 79.16 kB / 3.012 GB, free: 115.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.583/10.2, allocations: 0.8625 GB / 3.875 GB, free: 9.461 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.795e-06/10.2, allocations: 0 / 3.875 GB, free: 9.461 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000191/10.2, allocations: 66.84 kB / 3.875 GB, free: 9.398 MB / 0.4948 GB 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.01304/10.21, allocations: 3.812 MB / 3.879 GB, free: 5.547 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/10.21, allocations: 8.031 kB / 3.879 GB, free: 5.539 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007162/10.22, allocations: 0.7888 MB / 3.88 GB, free: 4.75 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005771/10.22, allocations: 1.941 MB / 3.881 GB, free: 2.789 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002133/10.22, allocations: 161 kB / 3.882 GB, free: 2.641 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005784/10.22, allocations: 185.5 kB / 3.882 GB, free: 2.469 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008836/10.23, allocations: 3.278 MB / 3.885 GB, free: 15.06 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.585e-05/10.23, allocations: 3.938 kB / 3.885 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003633/10.23, allocations: 86.8 kB / 3.885 GB, free: 14.98 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002832/10.23, allocations: 151.3 kB / 3.885 GB, free: 14.83 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009431/10.24, allocations: 2.906 MB / 3.888 GB, free: 11.92 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.3687/10.61, allocations: 14.06 MB / 3.902 GB, free: 31.55 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005914/10.62, allocations: 1.947 MB / 3.904 GB, free: 31.52 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002032/10.62, allocations: 0.955 MB / 3.905 GB, free: 31.52 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04102/10.66, allocations: 18.94 MB / 3.923 GB, free: 19.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004794/10.66, allocations: 1.56 MB / 3.925 GB, free: 19.58 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001356/10.67, allocations: 166.8 kB / 3.925 GB, free: 19.58 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=146): time 5.278e-06/10.67, allocations: 0 / 3.925 GB, free: 19.58 MB / 0.5105 GB Notification: Performance of matching and sorting (n=158): time 0.02207/10.69, allocations: 6.744 MB / 3.931 GB, free: 18.75 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.29e-05/10.69, allocations: 263.3 kB / 3.932 GB, free: 18.47 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002475/10.69, allocations: 1.342 MB / 3.933 GB, free: 18.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003443/10.69, allocations: 51.45 kB / 3.933 GB, free: 18.27 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006978/10.69, allocations: 0.8478 MB / 3.934 GB, free: 17.92 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006316/10.69, allocations: 0.53 MB / 3.934 GB, free: 17.66 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/10.69, allocations: 35.25 kB / 3.934 GB, free: 17.66 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001352/10.69, allocations: 381.3 kB / 3.935 GB, free: 17.34 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001894/10.69, allocations: 0.9133 MB / 3.936 GB, free: 17.34 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002099/10.7, allocations: 1.326 MB / 3.937 GB, free: 16.91 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002302/10.7, allocations: 1.154 MB / 3.938 GB, free: 16.82 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/10.7, allocations: 3.406 kB / 3.938 GB, free: 16.82 MB / 0.5105 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.006991/10.71, allocations: 2.812 MB / 3.941 GB, free: 16.61 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001693/10.71, allocations: 4.249 MB / 3.945 GB, free: 28.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.367e-05/10.71, allocations: 15 kB / 3.945 GB, free: 28.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003806/10.71, allocations: 0.591 MB / 3.946 GB, free: 28.17 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002526/10.71, allocations: 438.7 kB / 3.946 GB, free: 28.17 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003075/10.72, allocations: 2.827 MB / 3.949 GB, free: 26.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002843/10.72, allocations: 234.4 kB / 3.949 GB, free: 26.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000355/10.72, allocations: 94.5 kB / 3.949 GB, free: 26.09 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/10.72, allocations: 6.406 kB / 3.949 GB, free: 26.09 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005664/10.73, allocations: 2.521 MB / 3.951 GB, free: 25.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.594e-05/10.73, allocations: 10.59 kB / 3.951 GB, free: 25.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008384/10.73, allocations: 202.4 kB / 3.952 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00244/10.73, allocations: 461.7 kB / 3.952 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001628/10.73, allocations: 1.871 MB / 3.954 GB, free: 24.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002111/10.73, allocations: 238.1 kB / 3.954 GB, free: 24.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002918/10.73, allocations: 91.09 kB / 3.954 GB, free: 24.36 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.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,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007276/10.73, allocations: 293.7 kB / 3.955 GB, free: 24.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005193/10.73, allocations: 186.6 kB / 3.955 GB, free: 24.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01168/10.75, allocations: 7.344 MB / 3.962 GB, free: 23.48 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.22e-05/10.75, allocations: 83.05 kB / 3.962 GB, free: 23.48 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/10.75, allocations: 0 / 3.962 GB, free: 23.48 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009457/10.76, allocations: 6.424 MB / 3.968 GB, free: 22.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01643/10.77, allocations: 10.21 MB / 3.978 GB, free: 21.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/10.77, allocations: 0 / 3.978 GB, free: 21.96 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002021/10.77, allocations: 329.8 kB / 3.979 GB, free: 21.96 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004041/10.78, allocations: 1.596 MB / 3.98 GB, free: 21.89 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003817/10.78, allocations: 55.83 kB / 3.98 GB, free: 21.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003458/10.78, allocations: 3.479 MB / 3.984 GB, free: 19.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.836e-06/10.78, allocations: 6.656 kB / 3.984 GB, free: 19.79 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01131/10.79, allocations: 6.935 MB / 3.99 GB, free: 19.21 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001869/10.8, allocations: 0.7047 MB / 3.991 GB, free: 18.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006725/10.8, allocations: 47.97 kB / 3.991 GB, free: 18.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002135/10.8, allocations: 184.9 kB / 3.991 GB, free: 18.88 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003293/10.8, allocations: 133.2 kB / 3.991 GB, free: 18.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002116/10.8, allocations: 66.22 kB / 3.991 GB, free: 18.88 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002111/10.8, allocations: 1.128 MB / 3.993 GB, free: 18.71 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.929e-06/10.8, allocations: 2.844 kB / 3.993 GB, free: 18.71 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009565/10.81, allocations: 2.704 MB / 3.995 GB, free: 18.59 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 138 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01132/10.82, allocations: 2.87 MB / 3.998 GB, free: 18.29 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009133/10.83, allocations: 4.593 MB / 4.002 GB, free: 17.98 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.95e-06/10.83, allocations: 3.406 kB / 4.002 GB, free: 17.98 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003764/10.84, allocations: 2.22 MB / 4.005 GB, free: 17.84 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005309/10.84, allocations: 0.8989 MB / 4.005 GB, free: 17.82 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6204/11.46, allocations: 127.3 MB / 4.13 GB, free: 64.63 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001862/11.46, allocations: 2.13 MB / 4.132 GB, free: 63.89 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001006/11.46, allocations: 184.9 kB / 4.132 GB, free: 63.89 MB / 0.5417 GB Notification: Performance of SimCode: time 1.674e-06/11.46, allocations: 3.406 kB / 4.132 GB, free: 63.89 MB / 0.5417 GB Notification: Performance of Templates: time 0.1379/11.6, allocations: 110.8 MB / 4.24 GB, free: 44.8 MB / 0.5417 GB