Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.filter.x.2.|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.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 1.975/1.975, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004358/0.000436, allocations: 16 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.362/0.3625, allocations: 48.7 MB / 331.8 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.443/7.806, allocations: 2.545 GB / 2.869 GB, free: 91.45 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/7.806, allocations: 85.12 kB / 2.869 GB, free: 91.45 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.865/11.67, allocations: 0.7776 GB / 3.647 GB, free: 21.45 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.465e-06/11.67, allocations: 0 / 3.647 GB, free: 21.45 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002568/11.67, allocations: 62.09 kB / 3.647 GB, free: 21.43 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01952/11.69, allocations: 4.13 MB / 3.651 GB, free: 19.31 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/11.69, allocations: 9.219 kB / 3.651 GB, free: 19.31 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007961/11.7, allocations: 0.8125 MB / 3.652 GB, free: 19.16 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008043/11.71, allocations: 2.09 MB / 3.654 GB, free: 18.65 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002227/11.71, allocations: 170.8 kB / 3.654 GB, free: 18.64 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006275/11.71, allocations: 199.3 kB / 3.654 GB, free: 18.64 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01143/11.72, allocations: 3.728 MB / 3.658 GB, free: 17.5 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.969e-05/11.72, allocations: 7.031 kB / 3.658 GB, free: 17.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004355/11.72, allocations: 85.69 kB / 3.658 GB, free: 17.45 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002967/11.72, allocations: 168.4 kB / 3.658 GB, free: 17.42 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01211/11.73, allocations: 3.529 MB / 3.662 GB, free: 16.34 MB / 458.7 MB 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.0272/11.76, allocations: 14.75 MB / 3.676 GB, free: 21.37 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007614/11.77, allocations: 2.197 MB / 3.678 GB, free: 20.69 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05761/11.82, allocations: 18.85 MB / 3.697 GB, free: 2.59 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006529/11.83, allocations: 1.677 MB / 3.698 GB, free: 1.305 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001752/11.83, allocations: 184.1 kB / 3.698 GB, free: 1.133 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 4.82e-06/11.83, allocations: 0 / 3.698 GB, free: 1.133 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.4187/12.25, allocations: 9.219 MB / 3.707 GB, free: 37.91 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001796/12.25, allocations: 414.7 kB / 3.708 GB, free: 37.44 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00438/12.26, allocations: 1.705 MB / 3.709 GB, free: 37.26 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006688/12.26, allocations: 63.67 kB / 3.71 GB, free: 37.23 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001022/12.26, allocations: 0.9225 MB / 3.71 GB, free: 36.86 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009943/12.26, allocations: 0.5745 MB / 3.711 GB, free: 36.58 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/12.26, allocations: 41.28 kB / 3.711 GB, free: 36.58 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001886/12.26, allocations: 389.5 kB / 3.711 GB, free: 36.27 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0038/12.26, allocations: 1.15 MB / 3.713 GB, free: 36.26 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004485/12.27, allocations: 1.629 MB / 3.714 GB, free: 35.75 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004507/12.27, allocations: 1.41 MB / 3.716 GB, free: 35.68 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.229e-05/12.27, allocations: 3.938 kB / 3.716 GB, free: 35.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.01055/12.28, allocations: 3.424 MB / 3.719 GB, free: 35.46 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003223/12.28, allocations: 495.3 kB / 3.719 GB, free: 34.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.233e-05/12.28, allocations: 13.66 kB / 3.719 GB, free: 34.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008404/12.29, allocations: 0.9834 MB / 3.72 GB, free: 34.88 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003704/12.3, allocations: 475.4 kB / 3.721 GB, free: 34.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003605/12.3, allocations: 3.167 MB / 3.724 GB, free: 32.79 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003936/12.3, allocations: 240.1 kB / 3.724 GB, free: 32.78 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003494/12.3, allocations: 107.1 kB / 3.724 GB, free: 32.78 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/12.3, allocations: 3.344 kB / 3.724 GB, free: 32.78 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009743/12.31, allocations: 3.197 MB / 3.727 GB, free: 32.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.569e-05/12.31, allocations: 14.25 kB / 3.727 GB, free: 32.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002037/12.32, allocations: 363.7 kB / 3.728 GB, free: 32.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003741/12.32, allocations: 494.8 kB / 3.728 GB, free: 32.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005107/12.32, allocations: 4.112 MB / 3.732 GB, free: 29.79 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003/12.33, allocations: 231 kB / 3.732 GB, free: 29.78 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002838/12.33, allocations: 107.3 kB / 3.732 GB, free: 29.78 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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.002132/12.33, allocations: 0.7517 MB / 3.733 GB, free: 29.53 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006359/12.33, allocations: 207.8 kB / 3.733 GB, free: 29.42 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01738/12.35, allocations: 7.867 MB / 3.741 GB, free: 28.76 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000109/12.35, allocations: 88.2 kB / 3.741 GB, free: 28.76 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/12.35, allocations: 0 / 3.741 GB, free: 28.76 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01314/12.36, allocations: 6.888 MB / 3.748 GB, free: 27.85 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02286/12.38, allocations: 10.89 MB / 3.759 GB, free: 27.13 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.692e-05/12.38, allocations: 0 / 3.759 GB, free: 27.13 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002746/12.39, allocations: 345.2 kB / 3.759 GB, free: 27.13 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0078/12.4, allocations: 2.141 MB / 3.761 GB, free: 27.04 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005385/12.4, allocations: 66.22 kB / 3.761 GB, free: 27.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004408/12.4, allocations: 4.108 MB / 3.765 GB, free: 24.93 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/12.4, allocations: 5.875 kB / 3.765 GB, free: 24.93 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0161/12.42, allocations: 7.96 MB / 3.773 GB, free: 24.26 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002188/12.42, allocations: 0.7553 MB / 3.774 GB, free: 23.94 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006379/12.42, allocations: 51.08 kB / 3.774 GB, free: 23.94 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002499/12.42, allocations: 190 kB / 3.774 GB, free: 23.93 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003603/12.42, allocations: 139 kB / 3.774 GB, free: 23.93 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002187/12.42, allocations: 68.66 kB / 3.774 GB, free: 23.93 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00255/12.42, allocations: 1.259 MB / 3.775 GB, free: 23.79 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.91e-07/12.42, allocations: 0 / 3.775 GB, free: 23.79 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01172/12.44, allocations: 2.799 MB / 3.778 GB, free: 23.66 MB / 474.7 MB 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,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.01422/12.45, allocations: 2.834 MB / 3.781 GB, free: 23.37 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01374/12.46, allocations: 5.471 MB / 3.786 GB, free: 22.79 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/12.46, allocations: 2.625 kB / 3.786 GB, free: 22.79 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004982/12.47, allocations: 2.378 MB / 3.788 GB, free: 22.63 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007387/12.48, allocations: 0.8867 MB / 3.789 GB, free: 22.61 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7954/13.27, allocations: 128.3 MB / 3.915 GB, free: 62.62 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004416/13.28, allocations: 2.242 MB / 3.917 GB, free: 61.87 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001752/13.28, allocations: 190 kB / 3.917 GB, free: 61.87 MB / 0.4948 GB Notification: Performance of SimCode: time 1.803e-06/13.28, allocations: 0 / 3.917 GB, free: 61.87 MB / 0.4948 GB Notification: Performance of Templates: time 0.2895/13.57, allocations: 116.5 MB / 4.031 GB, free: 27.49 MB / 0.4948 GB