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.BranchingPipes1.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.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.926/1.926, allocations: 209.4 MB / 217.3 MB, free: 4.145 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.006e-05/2.02e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2835, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.133/6.417, allocations: 2.545 GB / 2.857 GB, free: 94.69 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001914/6.417, allocations: 75.97 kB / 2.857 GB, free: 94.69 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.291/9.708, allocations: 0.7691 GB / 3.626 GB, free: 12.09 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.222e-06/9.708, allocations: 0 / 3.626 GB, free: 12.09 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002286/9.708, allocations: 67.88 kB / 3.626 GB, free: 12.03 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.01427/9.723, allocations: 3.828 MB / 3.63 GB, free: 8.141 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/9.723, allocations: 12.03 kB / 3.63 GB, free: 8.129 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007582/9.73, allocations: 0.8106 MB / 3.631 GB, free: 7.316 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006324/9.737, allocations: 2.077 MB / 3.633 GB, free: 5.223 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/9.737, allocations: 95.86 kB / 3.633 GB, free: 5.129 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000614/9.738, allocations: 116 kB / 3.633 GB, free: 5.016 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005986/9.744, allocations: 2.866 MB / 3.636 GB, free: 2.145 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006613/9.75, allocations: 2.863 MB / 3.639 GB, free: 15.07 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-05/9.75, allocations: 7.938 kB / 3.639 GB, free: 15.07 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003512/9.751, allocations: 11.98 kB / 3.639 GB, free: 15.05 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002867/9.751, allocations: 163.7 kB / 3.639 GB, free: 14.89 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.5811/10.33, allocations: 108.8 MB / 3.745 GB, free: 20.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003264/10.34, allocations: 1.577 MB / 3.747 GB, free: 20.77 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001893/10.34, allocations: 0.967 MB / 3.748 GB, free: 20.76 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03838/10.38, allocations: 17.53 MB / 3.765 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002296/10.38, allocations: 1.21 MB / 3.766 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001342/10.38, allocations: 170.3 kB / 3.766 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=148): time 6.754e-06/10.38, allocations: 0 / 3.766 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=160): time 0.02806/10.41, allocations: 7.911 MB / 3.774 GB, free: 23.48 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003074/10.41, allocations: 0.5029 MB / 3.774 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002098/10.41, allocations: 1.19 MB / 3.775 GB, free: 22.72 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003272/10.41, allocations: 32.72 kB / 3.775 GB, free: 22.69 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008077/10.41, allocations: 0.9897 MB / 3.776 GB, free: 22.27 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005558/10.41, allocations: 0.5277 MB / 3.777 GB, free: 22 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001745/10.41, allocations: 5.062 kB / 3.777 GB, free: 22 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002384/10.41, allocations: 386.9 kB / 3.777 GB, free: 21.69 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001909/10.41, allocations: 1.031 MB / 3.778 GB, free: 21.68 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002111/10.42, allocations: 1.492 MB / 3.78 GB, free: 21.17 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01446/10.43, allocations: 2.851 MB / 3.783 GB, free: 21.09 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.66e-05/10.43, allocations: 3.844 kB / 3.783 GB, free: 21.09 MB / 0.5105 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.02055/10.45, allocations: 4.638 MB / 3.787 GB, free: 20.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002102/10.45, allocations: 4.425 MB / 3.791 GB, free: 16.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.291e-05/10.45, allocations: 15.06 kB / 3.791 GB, free: 16.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004256/10.46, allocations: 0.8107 MB / 3.792 GB, free: 16.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002586/10.46, allocations: 472.9 kB / 3.793 GB, free: 16.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004445/10.46, allocations: 3.321 MB / 3.796 GB, free: 14.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003091/10.47, allocations: 239 kB / 3.796 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004612/10.47, allocations: 108.6 kB / 3.796 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/10.47, allocations: 6.312 kB / 3.796 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01769/10.49, allocations: 4.23 MB / 3.8 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.26e-05/10.49, allocations: 12.97 kB / 3.8 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/10.49, allocations: 330 kB / 3.801 GB, free: 13.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002698/10.49, allocations: 498.6 kB / 3.801 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005035/10.5, allocations: 3.981 MB / 3.805 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002492/10.5, allocations: 207.9 kB / 3.805 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003551/10.5, allocations: 97.86 kB / 3.805 GB, free: 11.12 MB / 0.5105 GB 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,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_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.0007506/10.5, allocations: 233.8 kB / 3.806 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005658/10.5, allocations: 191.7 kB / 3.806 GB, free: 10.86 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01253/10.51, allocations: 6.716 MB / 3.812 GB, free: 10.32 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.096e-05/10.51, allocations: 68.69 kB / 3.812 GB, free: 10.32 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.532e-06/10.51, allocations: 5.922 kB / 3.812 GB, free: 10.32 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01021/10.52, allocations: 5.686 MB / 3.818 GB, free: 7.797 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01739/10.54, allocations: 9.039 MB / 3.827 GB, free: 3.316 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.818e-05/10.54, allocations: 0 / 3.827 GB, free: 3.316 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001833/10.54, allocations: 297.8 kB / 3.827 GB, free: 3.098 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005237/10.55, allocations: 2.377 MB / 3.829 GB, free: 1.492 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004066/10.55, allocations: 42.42 kB / 3.829 GB, free: 1.469 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3146/10.86, allocations: 4.398 MB / 3.834 GB, free: 82.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.385e-06/10.86, allocations: 2.25 kB / 3.834 GB, free: 82.78 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01472/10.88, allocations: 7.121 MB / 3.841 GB, free: 82.32 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00192/10.88, allocations: 0.6846 MB / 3.841 GB, free: 82.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005362/10.88, allocations: 22.69 kB / 3.841 GB, free: 82.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002199/10.88, allocations: 150.9 kB / 3.842 GB, free: 82.23 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003803/10.88, allocations: 129 kB / 3.842 GB, free: 82.22 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002163/10.88, allocations: 67.62 kB / 3.842 GB, free: 82.22 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002077/10.88, allocations: 1.073 MB / 3.843 GB, free: 82.08 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.91e-07/10.88, allocations: 0 / 3.843 GB, free: 82.08 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.011/10.9, allocations: 2.678 MB / 3.845 GB, free: 82.08 MB / 0.5105 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,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: 43 ($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,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 (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.01225/10.91, allocations: 2.982 MB / 3.848 GB, free: 81.88 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009882/10.92, allocations: 4.875 MB / 3.853 GB, free: 81.36 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.157e-06/10.92, allocations: 0 / 3.853 GB, free: 81.36 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003855/10.92, allocations: 2.055 MB / 3.855 GB, free: 81.22 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004888/10.93, allocations: 0.7863 MB / 3.856 GB, free: 81.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01071/10.94, allocations: 5.384 MB / 3.861 GB, free: 80.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002046/10.94, allocations: 2.168 MB / 3.863 GB, free: 79.34 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001018/10.94, allocations: 185.8 kB / 3.863 GB, free: 79.33 MB / 0.5105 GB Notification: Performance of SimCode: time 2.648e-06/10.94, allocations: 0 / 3.863 GB, free: 79.33 MB / 0.5105 GB Notification: Performance of Templates: time 0.1589/11.1, allocations: 112.1 MB / 3.973 GB, free: 54.5 MB / 0.5105 GB