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.BranchingPipes14.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 1.942/1.942, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.685e-05/1.7e-05, allocations: 0 / 271.3 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2641, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.805/6.069, allocations: 2.566 GB / 2.878 GB, free: 168 kB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001991/6.069, allocations: 71.97 kB / 2.878 GB, free: 96 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.23/10.3, allocations: 0.8723 GB / 3.751 GB, free: 32.98 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.938e-06/10.3, allocations: 0 / 3.751 GB, free: 32.98 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002132/10.3, allocations: 68.48 kB / 3.751 GB, free: 32.96 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01353/10.31, allocations: 3.824 MB / 3.754 GB, free: 31.33 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/10.31, allocations: 11.53 kB / 3.754 GB, free: 31.33 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007848/10.32, allocations: 0.8497 MB / 3.755 GB, free: 31.2 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006677/10.33, allocations: 2.083 MB / 3.757 GB, free: 30.75 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001854/10.33, allocations: 93.38 kB / 3.757 GB, free: 30.75 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005587/10.33, allocations: 122.1 kB / 3.757 GB, free: 30.75 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006094/10.33, allocations: 2.604 MB / 3.76 GB, free: 30.74 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006397/10.34, allocations: 2.83 MB / 3.763 GB, free: 30.19 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-05/10.34, allocations: 6.688 kB / 3.763 GB, free: 30.19 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003639/10.34, allocations: 11.02 kB / 3.763 GB, free: 30.19 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000251/10.34, allocations: 169 kB / 3.763 GB, free: 30.19 MB / 474.7 MB 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.2814/10.62, allocations: 109.5 MB / 3.87 GB, free: 20.78 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003952/10.63, allocations: 2.091 MB / 3.872 GB, free: 20.18 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002035/10.63, allocations: 1.049 MB / 3.873 GB, free: 20.17 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04008/10.67, allocations: 17.34 MB / 3.89 GB, free: 8.703 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002524/10.67, allocations: 1.208 MB / 3.891 GB, free: 8.543 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=159): time 6.297e-06/10.67, allocations: 7.062 kB / 3.891 GB, free: 8.539 MB / 0.5105 GB Notification: Performance of matching and sorting (n=175): time 0.04621/10.72, allocations: 9.455 MB / 3.9 GB, free: 4.715 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002497/10.72, allocations: 362 kB / 3.901 GB, free: 4.285 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001928/10.72, allocations: 1.073 MB / 3.902 GB, free: 3.594 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004217/10.72, allocations: 40.39 kB / 3.902 GB, free: 3.551 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007943/10.72, allocations: 0.9791 MB / 3.903 GB, free: 2.918 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006464/10.72, allocations: 0.5607 MB / 3.903 GB, free: 2.469 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/10.72, allocations: 4 kB / 3.903 GB, free: 2.465 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002465/10.72, allocations: 390.6 kB / 3.904 GB, free: 2.133 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001921/10.73, allocations: 0.9921 MB / 3.905 GB, free: 1.617 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002464/10.73, allocations: 1.467 MB / 3.906 GB, free: 0.5312 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3308/11.06, allocations: 2.141 MB / 3.908 GB, free: 78.78 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.883e-05/11.06, allocations: 6.828 kB / 3.908 GB, free: 78.78 MB / 0.5105 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.01576/11.07, allocations: 3.538 MB / 3.912 GB, free: 78.67 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009962/11.08, allocations: 4.859 MB / 3.916 GB, free: 73.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.64e-05/11.08, allocations: 12.66 kB / 3.916 GB, free: 73.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007993/11.08, allocations: 223.9 kB / 3.917 GB, free: 73.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003066/11.08, allocations: 0.5257 MB / 3.917 GB, free: 73.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/11.08, allocations: 2.458 MB / 3.919 GB, free: 71.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003795/11.08, allocations: 302.1 kB / 3.92 GB, free: 71.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000397/11.09, allocations: 107.4 kB / 3.92 GB, free: 71.52 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/11.09, allocations: 4.719 kB / 3.92 GB, free: 71.52 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01363/11.1, allocations: 3.197 MB / 3.923 GB, free: 71.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.588e-05/11.1, allocations: 10.66 kB / 3.923 GB, free: 71.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007439/11.1, allocations: 222 kB / 3.923 GB, free: 71.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002727/11.1, allocations: 0.521 MB / 3.924 GB, free: 71.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/11.1, allocations: 2.462 MB / 3.926 GB, free: 69.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00277/11.11, allocations: 276.9 kB / 3.926 GB, free: 69.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003006/11.11, allocations: 105.3 kB / 3.926 GB, free: 69.34 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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,junctionIdeal.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007288/11.11, allocations: 239.3 kB / 3.927 GB, free: 69.18 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005493/11.11, allocations: 187.7 kB / 3.927 GB, free: 69.18 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02095/11.13, allocations: 6.977 MB / 3.934 GB, free: 68.81 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.292e-05/11.13, allocations: 70.38 kB / 3.934 GB, free: 68.81 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/11.13, allocations: 5.922 kB / 3.934 GB, free: 68.81 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0187/11.15, allocations: 6.065 MB / 3.94 GB, free: 68.08 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02865/11.18, allocations: 11.05 MB / 3.95 GB, free: 66.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.583e-05/11.18, allocations: 16.2 kB / 3.95 GB, free: 66.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002272/11.18, allocations: 383.5 kB / 3.951 GB, free: 66.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001116/11.18, allocations: 326.3 kB / 3.951 GB, free: 66.81 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003173/11.18, allocations: 48.05 kB / 3.951 GB, free: 66.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001667/11.18, allocations: 2.646 MB / 3.954 GB, free: 64.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.026e-05/11.18, allocations: 7.719 kB / 3.954 GB, free: 64.73 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01999/11.2, allocations: 7.509 MB / 3.961 GB, free: 63.48 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001872/11.2, allocations: 0.6911 MB / 3.962 GB, free: 63.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005068/11.21, allocations: 26.09 kB / 3.962 GB, free: 63.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002234/11.21, allocations: 177.8 kB / 3.962 GB, free: 63.23 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003508/11.21, allocations: 157.4 kB / 3.962 GB, free: 63.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002186/11.21, allocations: 76.77 kB / 3.962 GB, free: 63.23 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001749/11.21, allocations: 0.9897 MB / 3.963 GB, free: 63.12 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.33e-07/11.21, allocations: 0 / 3.963 GB, free: 63.12 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01014/11.22, allocations: 2.573 MB / 3.966 GB, free: 63.12 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 44 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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,junctionIdeal.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 171 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01181/11.23, allocations: 3.022 MB / 3.969 GB, free: 62.82 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009224/11.24, allocations: 4.64 MB / 3.973 GB, free: 62.53 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/11.24, allocations: 0 / 3.973 GB, free: 62.53 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003995/11.25, allocations: 2.291 MB / 3.975 GB, free: 62.39 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005187/11.25, allocations: 0.8324 MB / 3.976 GB, free: 62.37 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/11.26, allocations: 5.639 MB / 3.982 GB, free: 61.11 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002046/11.26, allocations: 2.155 MB / 3.984 GB, free: 60.37 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001214/11.26, allocations: 205.5 kB / 3.984 GB, free: 60.36 MB / 0.5105 GB Notification: Performance of SimCode: time 2.303e-06/11.26, allocations: 0 / 3.984 GB, free: 60.36 MB / 0.5105 GB Notification: Performance of Templates: time 0.4683/11.73, allocations: 112.6 MB / 4.094 GB, free: 77.43 MB / 0.5105 GB