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.BranchingPipes18.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.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 1.958/1.958, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.943e-05/1.955e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3114, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.965/6.276, allocations: 2.566 GB / 2.879 GB, free: 484 kB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/6.276, allocations: 77.05 kB / 2.879 GB, free: 408 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.476/10.75, allocations: 0.9738 GB / 3.853 GB, free: 30.18 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.41e-06/10.75, allocations: 0 / 3.853 GB, free: 30.18 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003056/10.75, allocations: 70.92 kB / 3.853 GB, free: 30.17 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: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.01576/10.77, allocations: 4.096 MB / 3.857 GB, free: 28.17 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/10.77, allocations: 10.31 kB / 3.857 GB, free: 28.17 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008865/10.78, allocations: 0.9163 MB / 3.858 GB, free: 28.01 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006977/10.78, allocations: 2.178 MB / 3.86 GB, free: 27.48 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002153/10.78, allocations: 102.9 kB / 3.86 GB, free: 27.48 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007779/10.79, allocations: 134.9 kB / 3.86 GB, free: 27.48 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007047/10.79, allocations: 2.788 MB / 3.863 GB, free: 27.14 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007622/10.8, allocations: 3.002 MB / 3.866 GB, free: 25.71 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-05/10.8, allocations: 15.11 kB / 3.866 GB, free: 25.7 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004123/10.8, allocations: 7.625 kB / 3.866 GB, free: 25.7 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002386/10.8, allocations: 174.1 kB / 3.866 GB, free: 25.68 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.4904/11.29, allocations: 49.61 MB / 3.914 GB, free: 44.55 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004985/11.3, allocations: 2.333 MB / 3.917 GB, free: 43.96 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002525/11.3, allocations: 1.16 MB / 3.918 GB, free: 43.94 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0363/11.34, allocations: 17.2 MB / 3.934 GB, free: 33.25 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003018/11.34, allocations: 1.343 MB / 3.936 GB, free: 33.08 MB / 490.7 MB Notification: Performance of pre-optimization done (n=182): time 6.757e-06/11.34, allocations: 0 / 3.936 GB, free: 33.08 MB / 490.7 MB Notification: Performance of matching and sorting (n=202): time 0.05041/11.39, allocations: 10.3 MB / 3.946 GB, free: 31.48 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/11.39, allocations: 371.7 kB / 3.946 GB, free: 31.07 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002184/11.39, allocations: 1.148 MB / 3.947 GB, free: 30.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005044/11.39, allocations: 29.23 kB / 3.947 GB, free: 30.87 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008877/11.39, allocations: 1.025 MB / 3.948 GB, free: 30.45 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008188/11.39, allocations: 0.6524 MB / 3.949 GB, free: 30.11 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002088/11.39, allocations: 2.875 kB / 3.949 GB, free: 30.11 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000158/11.39, allocations: 405.2 kB / 3.949 GB, free: 29.79 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002247/11.4, allocations: 1.089 MB / 3.95 GB, free: 29.79 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002712/11.4, allocations: 1.618 MB / 3.952 GB, free: 29.24 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01212/11.41, allocations: 2.08 MB / 3.954 GB, free: 29.22 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-05/11.41, allocations: 5.625 kB / 3.954 GB, free: 29.22 MB / 490.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.01636/11.43, allocations: 3.888 MB / 3.958 GB, free: 29.05 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001098/11.43, allocations: 5.469 MB / 3.963 GB, free: 23.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.32e-05/11.43, allocations: 14.41 kB / 3.963 GB, free: 23.36 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001113/11.43, allocations: 315.6 kB / 3.964 GB, free: 23.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003536/11.43, allocations: 0.598 MB / 3.964 GB, free: 23.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002259/11.44, allocations: 3.138 MB / 3.967 GB, free: 20.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004027/11.44, allocations: 325.4 kB / 3.967 GB, free: 20.71 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005364/11.44, allocations: 119.2 kB / 3.968 GB, free: 20.71 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/11.44, allocations: 5.219 kB / 3.968 GB, free: 20.71 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01535/11.46, allocations: 3.523 MB / 3.971 GB, free: 20.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.132e-05/11.46, allocations: 18.77 kB / 3.971 GB, free: 20.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000996/11.46, allocations: 307.6 kB / 3.971 GB, free: 20.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003328/11.46, allocations: 0.5938 MB / 3.972 GB, free: 20.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00233/11.46, allocations: 3.14 MB / 3.975 GB, free: 17.99 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003203/11.47, allocations: 297.1 kB / 3.975 GB, free: 17.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000522/11.47, allocations: 118 kB / 3.975 GB, free: 17.98 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 29 (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,junctionVolume.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 (287): * Single equations (assignments): 280 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009336/11.47, allocations: 251.2 kB / 3.976 GB, free: 17.81 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000591/11.47, allocations: 209.2 kB / 3.976 GB, free: 17.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02146/11.49, allocations: 8.014 MB / 3.984 GB, free: 17.04 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.083e-05/11.49, allocations: 89.27 kB / 3.984 GB, free: 17.04 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/11.49, allocations: 0 / 3.984 GB, free: 17.04 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01868/11.51, allocations: 6.93 MB / 3.991 GB, free: 16.19 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.031/11.54, allocations: 12.47 MB / 4.003 GB, free: 14.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.376e-05/11.54, allocations: 9.344 kB / 4.003 GB, free: 14.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002576/11.54, allocations: 449.3 kB / 4.003 GB, free: 14.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001513/11.54, allocations: 430.2 kB / 4.004 GB, free: 14.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004175/11.54, allocations: 50.83 kB / 4.004 GB, free: 14.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002314/11.55, allocations: 3.367 MB / 4.007 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.176e-05/11.55, allocations: 10.81 kB / 4.007 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02267/11.57, allocations: 8.372 MB / 4.015 GB, free: 10.62 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002182/11.57, allocations: 0.7796 MB / 4.016 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006939/11.57, allocations: 29.61 kB / 4.016 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00271/11.57, allocations: 183.7 kB / 4.016 GB, free: 10.28 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005263/11.58, allocations: 182.5 kB / 4.016 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002795/11.58, allocations: 98.27 kB / 4.016 GB, free: 10.27 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002003/11.58, allocations: 1.076 MB / 4.017 GB, free: 10.12 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.439e-06/11.58, allocations: 2.062 kB / 4.017 GB, free: 10.12 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01161/11.59, allocations: 2.73 MB / 4.02 GB, free: 10.02 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 49 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse49.phase,$cse49.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,junctionVolume.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 (228): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 21 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01246/11.6, allocations: 3.215 MB / 4.023 GB, free: 9.688 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01098/11.61, allocations: 5.19 MB / 4.028 GB, free: 9.379 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/11.61, allocations: 3.25 kB / 4.028 GB, free: 9.379 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004911/11.62, allocations: 2.625 MB / 4.031 GB, free: 9.242 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006433/11.62, allocations: 0.9929 MB / 4.032 GB, free: 9.215 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1729/11.8, allocations: 60.4 MB / 4.091 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003406/11.8, allocations: 2.281 MB / 4.093 GB, free: 13.83 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001444/11.8, allocations: 236.9 kB / 4.093 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of SimCode: time 1.77e-06/11.8, allocations: 0 / 4.093 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of Templates: time 0.5449/12.35, allocations: 134 MB / 4.224 GB, free: 52.09 MB / 0.5105 GB