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.BranchingPipes12.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.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|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.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.282/2.282, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004363/0.0004366, allocations: 8 kB / 314.4 MB, free: 9.547 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2738, allocations: 54.86 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.196/6.469, allocations: 2.656 GB / 3.017 GB, free: 51.89 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/6.47, allocations: 79.09 kB / 3.017 GB, free: 51.86 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.546/10.02, allocations: 0.8038 GB / 3.82 GB, free: 14.67 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.626e-06/10.02, allocations: 0 / 3.82 GB, free: 14.67 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002635/10.02, allocations: 71.86 kB / 3.82 GB, free: 14.6 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01776/10.03, allocations: 4.24 MB / 3.825 GB, free: 10.28 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/10.03, allocations: 12.03 kB / 3.825 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007872/10.04, allocations: 0.8436 MB / 3.825 GB, free: 9.418 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007832/10.05, allocations: 2.188 MB / 3.828 GB, free: 7.176 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003394/10.05, allocations: 183.7 kB / 3.828 GB, free: 6.996 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008721/10.05, allocations: 196 kB / 3.828 GB, free: 6.805 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01208/10.06, allocations: 3.714 MB / 3.832 GB, free: 2.883 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.062e-05/10.06, allocations: 7.938 kB / 3.832 GB, free: 2.875 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004283/10.06, allocations: 91.95 kB / 3.832 GB, free: 2.785 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003111/10.06, allocations: 175.5 kB / 3.832 GB, free: 2.613 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.351/10.41, allocations: 3.534 MB / 3.835 GB, free: 34.42 MB / 0.5105 GB 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.02454/10.44, allocations: 14.75 MB / 3.85 GB, free: 26.06 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006916/10.45, allocations: 2.195 MB / 3.852 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04195/10.49, allocations: 18.9 MB / 3.87 GB, free: 30.22 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005669/10.49, allocations: 1.669 MB / 3.872 GB, free: 30.1 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001469/10.5, allocations: 195.3 kB / 3.872 GB, free: 30.05 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 6.302e-06/10.5, allocations: 0 / 3.872 GB, free: 30.05 MB / 0.5261 GB Notification: Performance of matching and sorting (n=174): time 0.03172/10.53, allocations: 9.122 MB / 3.881 GB, free: 28.82 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000281/10.53, allocations: 416.1 kB / 3.881 GB, free: 28.34 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002908/10.53, allocations: 1.504 MB / 3.883 GB, free: 28.18 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004301/10.53, allocations: 61.58 kB / 3.883 GB, free: 28.14 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008472/10.53, allocations: 0.9284 MB / 3.884 GB, free: 27.78 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007282/10.53, allocations: 0.5813 MB / 3.884 GB, free: 27.49 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001979/10.53, allocations: 39.3 kB / 3.884 GB, free: 27.49 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002628/10.53, allocations: 394.3 kB / 3.885 GB, free: 27.18 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003026/10.54, allocations: 1.162 MB / 3.886 GB, free: 27.17 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003365/10.54, allocations: 1.638 MB / 3.888 GB, free: 26.66 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003207/10.54, allocations: 1.412 MB / 3.889 GB, free: 26.58 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-05/10.54, allocations: 3.5 kB / 3.889 GB, free: 26.58 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.008701/10.55, allocations: 3.4 MB / 3.892 GB, free: 26.36 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002166/10.55, allocations: 4.43 MB / 3.897 GB, free: 21.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.555e-05/10.55, allocations: 11.53 kB / 3.897 GB, free: 21.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006587/10.56, allocations: 0.9848 MB / 3.898 GB, free: 21.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002804/10.56, allocations: 476.5 kB / 3.898 GB, free: 21.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003805/10.57, allocations: 3.169 MB / 3.901 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003098/10.57, allocations: 241.5 kB / 3.901 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004827/10.57, allocations: 102.4 kB / 3.901 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/10.57, allocations: 7.344 kB / 3.901 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008486/10.58, allocations: 3.178 MB / 3.905 GB, free: 19.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.923e-05/10.58, allocations: 16.12 kB / 3.905 GB, free: 19.49 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001575/10.58, allocations: 355.8 kB / 3.905 GB, free: 19.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002745/10.58, allocations: 497.2 kB / 3.905 GB, free: 19.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005243/10.59, allocations: 4.105 MB / 3.909 GB, free: 16.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002519/10.59, allocations: 240.6 kB / 3.91 GB, free: 16.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005369/10.59, allocations: 101.3 kB / 3.91 GB, free: 16.64 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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_b.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.002146/10.59, allocations: 0.7712 MB / 3.91 GB, free: 16.38 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006133/10.59, allocations: 208 kB / 3.911 GB, free: 16.28 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01355/10.61, allocations: 7.845 MB / 3.918 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-05/10.61, allocations: 81.66 kB / 3.918 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.005e-06/10.61, allocations: 0 / 3.918 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01154/10.62, allocations: 6.871 MB / 3.925 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01921/10.64, allocations: 10.9 MB / 3.936 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.737e-05/10.64, allocations: 0 / 3.936 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002133/10.64, allocations: 344 kB / 3.936 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006816/10.65, allocations: 2.146 MB / 3.938 GB, free: 13.86 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000465/10.65, allocations: 63.25 kB / 3.938 GB, free: 13.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004474/10.65, allocations: 4.109 MB / 3.942 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.551e-06/10.65, allocations: 2 kB / 3.942 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01509/10.67, allocations: 7.989 MB / 3.95 GB, free: 27.04 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002025/10.67, allocations: 0.745 MB / 3.951 GB, free: 26.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000707/10.67, allocations: 51.53 kB / 3.951 GB, free: 26.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002444/10.67, allocations: 197 kB / 3.951 GB, free: 26.71 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004408/10.67, allocations: 138.6 kB / 3.951 GB, free: 26.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002341/10.67, allocations: 75.94 kB / 3.951 GB, free: 26.7 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002504/10.68, allocations: 1.259 MB / 3.952 GB, free: 26.56 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.54e-07/10.68, allocations: 2.406 kB / 3.952 GB, free: 26.56 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01052/10.69, allocations: 2.831 MB / 3.955 GB, free: 26.43 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (168): * Single equations (assignments): 143 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01198/10.7, allocations: 2.845 MB / 3.958 GB, free: 26.14 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01246/10.71, allocations: 5.592 MB / 3.963 GB, free: 25.54 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.111e-06/10.71, allocations: 0 / 3.963 GB, free: 25.54 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004584/10.72, allocations: 2.432 MB / 3.966 GB, free: 25.39 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005573/10.72, allocations: 0.8918 MB / 3.967 GB, free: 25.37 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6234/11.35, allocations: 130.5 MB / 4.094 GB, free: 59.5 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002158/11.35, allocations: 2.254 MB / 4.096 GB, free: 58.71 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001043/11.35, allocations: 194.7 kB / 4.097 GB, free: 58.71 MB / 0.5417 GB Notification: Performance of SimCode: time 1.756e-06/11.35, allocations: 0 / 4.097 GB, free: 58.71 MB / 0.5417 GB Notification: Performance of Templates: time 0.1502/11.5, allocations: 117.1 MB / 4.211 GB, free: 12.9 MB / 0.5417 GB