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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.239/2.239, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.407e-05/1.428e-05, allocations: 0 / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2781, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.492/6.77, allocations: 2.655 GB / 3.005 GB, free: 105.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/6.77, allocations: 78.2 kB / 3.005 GB, free: 105.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.521/10.29, allocations: 0.7948 GB / 3.8 GB, free: 30.25 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.928e-06/10.29, allocations: 0 / 3.8 GB, free: 30.25 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002563/10.29, allocations: 71.55 kB / 3.8 GB, free: 30.23 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01508/10.31, allocations: 3.945 MB / 3.804 GB, free: 28.28 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/10.31, allocations: 10.59 kB / 3.804 GB, free: 28.28 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007564/10.31, allocations: 0.8346 MB / 3.804 GB, free: 28.14 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006903/10.32, allocations: 2.166 MB / 3.807 GB, free: 27.67 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001979/10.32, allocations: 93.33 kB / 3.807 GB, free: 27.67 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007389/10.32, allocations: 121.2 kB / 3.807 GB, free: 27.67 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006617/10.33, allocations: 2.872 MB / 3.81 GB, free: 27.66 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006468/10.34, allocations: 2.886 MB / 3.812 GB, free: 27.1 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.875e-05/10.34, allocations: 6.125 kB / 3.812 GB, free: 27.1 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003499/10.34, allocations: 16.45 kB / 3.812 GB, free: 27.1 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002377/10.34, allocations: 159.4 kB / 3.813 GB, free: 27.1 MB / 0.4948 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.2826/10.62, allocations: 108.9 MB / 3.919 GB, free: 12.87 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002995/10.62, allocations: 1.585 MB / 3.92 GB, free: 12.05 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001829/10.62, allocations: 0.9846 MB / 3.921 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.377/11, allocations: 17.64 MB / 3.939 GB, free: 72.73 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00309/11, allocations: 1.223 MB / 3.94 GB, free: 72.58 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00157/11.01, allocations: 164.8 kB / 3.94 GB, free: 72.58 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=152): time 8.524e-06/11.01, allocations: 3.094 kB / 3.94 GB, free: 72.58 MB / 0.5417 GB Notification: Performance of matching and sorting (n=164): time 0.02969/11.04, allocations: 7.905 MB / 3.948 GB, free: 71.06 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/11.04, allocations: 0.5147 MB / 3.948 GB, free: 70.46 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002263/11.04, allocations: 1.184 MB / 3.949 GB, free: 70.29 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0004204/11.04, allocations: 25.7 kB / 3.949 GB, free: 70.26 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008744/11.04, allocations: 0.9985 MB / 3.95 GB, free: 69.85 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007718/11.04, allocations: 0.5354 MB / 3.951 GB, free: 69.57 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002078/11.04, allocations: 0 / 3.951 GB, free: 69.57 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001525/11.04, allocations: 392.9 kB / 3.951 GB, free: 69.26 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002161/11.04, allocations: 1.039 MB / 3.952 GB, free: 69.26 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002628/11.05, allocations: 1.495 MB / 3.954 GB, free: 68.76 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01455/11.06, allocations: 2.848 MB / 3.957 GB, free: 68.74 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.522e-05/11.06, allocations: 3.75 kB / 3.957 GB, free: 68.74 MB / 0.5417 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01995/11.08, allocations: 4.613 MB / 3.961 GB, free: 68.59 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009145/11.08, allocations: 4.428 MB / 3.965 GB, free: 63.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.802e-05/11.08, allocations: 15.53 kB / 3.965 GB, free: 63.99 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004264/11.09, allocations: 0.8029 MB / 3.966 GB, free: 63.96 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002624/11.09, allocations: 472.7 kB / 3.967 GB, free: 63.96 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004047/11.09, allocations: 3.334 MB / 3.97 GB, free: 61.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003352/11.1, allocations: 230 kB / 3.97 GB, free: 61.86 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004095/11.1, allocations: 107.3 kB / 3.97 GB, free: 61.86 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/11.1, allocations: 3.375 kB / 3.97 GB, free: 61.86 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01883/11.11, allocations: 4.212 MB / 3.974 GB, free: 61.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-05/11.11, allocations: 14.62 kB / 3.974 GB, free: 61.77 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/11.12, allocations: 324.2 kB / 3.975 GB, free: 61.74 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002578/11.12, allocations: 499.8 kB / 3.975 GB, free: 61.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004139/11.12, allocations: 3.992 MB / 3.979 GB, free: 58.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002523/11.13, allocations: 207.9 kB / 3.979 GB, free: 58.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000355/11.13, allocations: 101 kB / 3.979 GB, free: 58.97 MB / 0.5417 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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete 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.0007251/11.13, allocations: 231.5 kB / 3.979 GB, free: 58.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000609/11.13, allocations: 197.7 kB / 3.98 GB, free: 58.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0128/11.14, allocations: 6.696 MB / 3.986 GB, free: 58.21 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-05/11.14, allocations: 73.22 kB / 3.986 GB, free: 58.21 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.624e-06/11.14, allocations: 2.906 kB / 3.986 GB, free: 58.21 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01028/11.15, allocations: 5.654 MB / 3.992 GB, free: 57.47 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01637/11.17, allocations: 9.037 MB / 4.001 GB, free: 56.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.614e-05/11.17, allocations: 0 / 4.001 GB, free: 56.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001755/11.17, allocations: 292.8 kB / 4.001 GB, free: 56.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00493/11.17, allocations: 2.345 MB / 4.003 GB, free: 56.79 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003248/11.17, allocations: 48.09 kB / 4.003 GB, free: 56.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004649/11.18, allocations: 4.425 MB / 4.008 GB, free: 54.67 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.723e-06/11.18, allocations: 6.688 kB / 4.008 GB, free: 54.67 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01313/11.19, allocations: 7.107 MB / 4.015 GB, free: 54.02 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001863/11.19, allocations: 0.6982 MB / 4.015 GB, free: 53.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006583/11.19, allocations: 14.47 kB / 4.015 GB, free: 53.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002175/11.2, allocations: 155.4 kB / 4.015 GB, free: 53.71 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003192/11.2, allocations: 126.9 kB / 4.015 GB, free: 53.71 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002077/11.2, allocations: 66.48 kB / 4.016 GB, free: 53.71 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001944/11.2, allocations: 1.078 MB / 4.017 GB, free: 53.56 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.802e-06/11.2, allocations: 3.969 kB / 4.017 GB, free: 53.56 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01051/11.21, allocations: 2.703 MB / 4.019 GB, free: 53.44 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$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,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 (151): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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.01177/11.22, allocations: 2.997 MB / 4.022 GB, free: 53.14 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009288/11.23, allocations: 4.962 MB / 4.027 GB, free: 52.61 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.626e-06/11.23, allocations: 4.562 kB / 4.027 GB, free: 52.61 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003717/11.23, allocations: 2.094 MB / 4.029 GB, free: 52.47 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0051/11.24, allocations: 0.788 MB / 4.03 GB, free: 52.44 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/11.25, allocations: 5.406 MB / 4.035 GB, free: 51.32 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002095/11.25, allocations: 2.179 MB / 4.037 GB, free: 50.56 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001021/11.25, allocations: 183 kB / 4.037 GB, free: 50.55 MB / 0.5417 GB Notification: Performance of SimCode: time 2.145e-06/11.25, allocations: 0 / 4.037 GB, free: 50.55 MB / 0.5417 GB Notification: Performance of Templates: time 0.5066/11.76, allocations: 112.8 MB / 4.148 GB, free: 74.98 MB / 0.5417 GB