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.BranchingPipes3.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.BranchingPipes3,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|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.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 1.958/1.958, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.356e-05/1.364e-05, allocations: 0 / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2627, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.984/6.247, allocations: 2.562 GB / 2.874 GB, free: 4.902 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/6.247, allocations: 71.97 kB / 2.875 GB, free: 4.832 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.82/10.07, allocations: 0.8393 GB / 3.714 GB, free: 14.81 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.291e-06/10.07, allocations: 4 kB / 3.714 GB, free: 14.81 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002869/10.07, allocations: 63.84 kB / 3.714 GB, free: 14.75 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01527/10.08, allocations: 3.628 MB / 3.717 GB, free: 11.07 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/10.08, allocations: 8.031 kB / 3.717 GB, free: 11.07 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007774/10.09, allocations: 0.7581 MB / 3.718 GB, free: 10.3 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007558/10.1, allocations: 1.964 MB / 3.72 GB, free: 8.32 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002367/10.1, allocations: 84.31 kB / 3.72 GB, free: 8.238 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000841/10.1, allocations: 108 kB / 3.72 GB, free: 8.133 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006782/10.11, allocations: 2.276 MB / 3.722 GB, free: 5.855 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007989/10.11, allocations: 2.531 MB / 3.725 GB, free: 3.16 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.149e-05/10.11, allocations: 7.938 kB / 3.725 GB, free: 3.152 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004037/10.11, allocations: 7.984 kB / 3.725 GB, free: 3.145 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002835/10.11, allocations: 151.2 kB / 3.725 GB, free: 2.996 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.6035/10.72, allocations: 108 MB / 3.831 GB, free: 11.85 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00309/10.72, allocations: 1.428 MB / 3.832 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001852/10.72, allocations: 0.9376 MB / 3.833 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04044/10.76, allocations: 17.45 MB / 3.85 GB, free: 16.26 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002281/10.77, allocations: 1.136 MB / 3.851 GB, free: 16.1 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001496/10.77, allocations: 146 kB / 3.851 GB, free: 16.07 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=141): time 7.127e-06/10.77, allocations: 0 / 3.851 GB, free: 16.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=153): time 0.04424/10.81, allocations: 8.76 MB / 3.86 GB, free: 14.48 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002398/10.81, allocations: 358.6 kB / 3.86 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002077/10.81, allocations: 1.019 MB / 3.861 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004574/10.81, allocations: 29.48 kB / 3.861 GB, free: 13.88 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008781/10.82, allocations: 0.8978 MB / 3.862 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007673/10.82, allocations: 0.4994 MB / 3.862 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001859/10.82, allocations: 6.047 kB / 3.862 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002485/10.82, allocations: 377.6 kB / 3.863 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001845/10.82, allocations: 0.8954 MB / 3.864 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002289/10.82, allocations: 1.312 MB / 3.865 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01077/10.83, allocations: 1.808 MB / 3.867 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.263e-05/10.83, allocations: 4.562 kB / 3.867 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=232) (initialization): time 0.01577/10.85, allocations: 3.394 MB / 3.87 GB, free: 12.26 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002093/10.85, allocations: 4.252 MB / 3.874 GB, free: 7.809 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-05/10.85, allocations: 7.469 kB / 3.874 GB, free: 7.809 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003054/10.85, allocations: 0.4902 MB / 3.875 GB, free: 7.766 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002764/10.86, allocations: 454.8 kB / 3.875 GB, free: 7.762 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003573/10.86, allocations: 2.815 MB / 3.878 GB, free: 21.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003432/10.86, allocations: 263.6 kB / 3.878 GB, free: 21.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005818/10.86, allocations: 93.67 kB / 3.878 GB, free: 21.64 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/10.86, allocations: 3.844 kB / 3.878 GB, free: 21.64 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01328/10.88, allocations: 2.972 MB / 3.881 GB, free: 21.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.585e-05/10.88, allocations: 10.97 kB / 3.881 GB, free: 21.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006159/10.88, allocations: 193.4 kB / 3.881 GB, free: 21.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002828/10.88, allocations: 468.9 kB / 3.882 GB, free: 21.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/10.88, allocations: 1.888 MB / 3.884 GB, free: 19.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002656/10.88, allocations: 241 kB / 3.884 GB, free: 19.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003692/10.89, allocations: 96.56 kB / 3.884 GB, free: 19.93 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0007573/10.89, allocations: 225.9 kB / 3.884 GB, free: 19.76 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005163/10.89, allocations: 185.6 kB / 3.884 GB, free: 19.67 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01852/10.91, allocations: 6.685 MB / 3.891 GB, free: 19.14 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.491e-05/10.91, allocations: 71.09 kB / 3.891 GB, free: 19.14 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.856e-06/10.91, allocations: 0 / 3.891 GB, free: 19.14 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01572/10.92, allocations: 5.836 MB / 3.897 GB, free: 17.78 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02533/10.95, allocations: 9.906 MB / 3.906 GB, free: 12.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.817e-05/10.95, allocations: 8.062 kB / 3.906 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001868/10.95, allocations: 313.5 kB / 3.907 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003055/10.95, allocations: 1.27 MB / 3.908 GB, free: 11.36 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004256/10.95, allocations: 39.52 kB / 3.908 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004094/10.96, allocations: 3.402 MB / 3.911 GB, free: 8.566 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.681e-05/10.96, allocations: 13.91 kB / 3.911 GB, free: 8.559 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01888/10.98, allocations: 7.062 MB / 3.918 GB, free: 4.207 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002071/10.98, allocations: 0.6461 MB / 3.919 GB, free: 3.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007148/10.98, allocations: 30.08 kB / 3.919 GB, free: 3.734 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002513/10.98, allocations: 145.4 kB / 3.919 GB, free: 3.629 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005196/10.98, allocations: 140.3 kB / 3.919 GB, free: 3.559 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002593/10.98, allocations: 69.33 kB / 3.919 GB, free: 3.512 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002182/10.98, allocations: 0.954 MB / 3.92 GB, free: 2.941 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.119e-06/10.98, allocations: 0 / 3.92 GB, free: 2.941 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01163/11, allocations: 2.443 MB / 3.922 GB, free: 0.8789 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 43 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.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) * 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 (161): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.3353/11.33, allocations: 2.954 MB / 3.925 GB, free: 97.87 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00925/11.34, allocations: 4.152 MB / 3.929 GB, free: 97.57 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/11.34, allocations: 3.656 kB / 3.929 GB, free: 97.57 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003934/11.34, allocations: 2.085 MB / 3.931 GB, free: 97.44 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005314/11.35, allocations: 0.7766 MB / 3.932 GB, free: 97.41 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01093/11.36, allocations: 5.127 MB / 3.937 GB, free: 96.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002138/11.36, allocations: 2.042 MB / 3.939 GB, free: 95.56 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001024/11.36, allocations: 183.4 kB / 3.939 GB, free: 95.56 MB / 0.5261 GB Notification: Performance of SimCode: time 1.985e-06/11.36, allocations: 0.6562 kB / 3.939 GB, free: 95.56 MB / 0.5261 GB Notification: Performance of Templates: time 0.142/11.51, allocations: 105.7 MB / 4.043 GB, free: 82.18 MB / 0.5261 GB