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.BranchingPipes13.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.BranchingPipes13,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.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 1.947/1.947, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.993e-05/2.001e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2626, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.266/6.528, allocations: 2.545 GB / 2.858 GB, free: 94.58 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001964/6.528, allocations: 80.73 kB / 2.858 GB, free: 94.58 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.706/10.23, allocations: 0.834 GB / 3.692 GB, free: 32.52 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.791e-06/10.23, allocations: 1.875 kB / 3.692 GB, free: 32.52 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002055/10.23, allocations: 61.64 kB / 3.692 GB, free: 32.51 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.01193/10.25, allocations: 3.693 MB / 3.695 GB, free: 30.88 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/10.25, allocations: 9.875 kB / 3.695 GB, free: 30.88 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007264/10.25, allocations: 0.7571 MB / 3.696 GB, free: 30.75 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005818/10.26, allocations: 1.933 MB / 3.698 GB, free: 30.32 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001509/10.26, allocations: 80.7 kB / 3.698 GB, free: 30.32 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004221/10.26, allocations: 104.4 kB / 3.698 GB, free: 30.32 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004911/10.26, allocations: 2.329 MB / 3.7 GB, free: 30.31 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005089/10.27, allocations: 2.551 MB / 3.703 GB, free: 29.85 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.443e-05/10.27, allocations: 8.25 kB / 3.703 GB, free: 29.85 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000276/10.27, allocations: 9.891 kB / 3.703 GB, free: 29.85 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002098/10.27, allocations: 147.2 kB / 3.703 GB, free: 29.84 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.2807/10.55, allocations: 108.2 MB / 3.809 GB, free: 21.29 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002965/10.55, allocations: 1.408 MB / 3.81 GB, free: 21.25 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00163/10.56, allocations: 0.8588 MB / 3.811 GB, free: 21.24 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03903/10.6, allocations: 17.53 MB / 3.828 GB, free: 7.496 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002098/10.6, allocations: 1.083 MB / 3.829 GB, free: 6.891 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00128/10.6, allocations: 140.7 kB / 3.829 GB, free: 6.781 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=132): time 6.129e-06/10.6, allocations: 0 / 3.829 GB, free: 6.781 MB / 0.5105 GB Notification: Performance of matching and sorting (n=144): time 0.02665/10.63, allocations: 7.203 MB / 3.836 GB, free: 1.945 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000236/10.63, allocations: 358.6 kB / 3.837 GB, free: 1.52 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002168/10.63, allocations: 1.061 MB / 3.838 GB, free: 0.8398 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003471/10.63, allocations: 33.83 kB / 3.838 GB, free: 0.8008 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009448/10.63, allocations: 0.9083 MB / 3.839 GB, free: 220 kB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.3065/10.94, allocations: 477.9 kB / 3.839 GB, free: 79.67 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002149/10.94, allocations: 0.7188 kB / 3.839 GB, free: 79.67 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001766/10.94, allocations: 390.3 kB / 3.839 GB, free: 79.36 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001989/10.94, allocations: 0.8883 MB / 3.84 GB, free: 79.36 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002032/10.94, allocations: 1.285 MB / 3.842 GB, free: 78.93 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01521/10.96, allocations: 2.659 MB / 3.844 GB, free: 78.91 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.413e-05/10.96, allocations: 3.531 kB / 3.844 GB, free: 78.91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.01953/10.97, allocations: 4.26 MB / 3.848 GB, free: 78.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008645/10.98, allocations: 4.245 MB / 3.852 GB, free: 74.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.428e-05/10.98, allocations: 10.12 kB / 3.852 GB, free: 74.39 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002954/10.98, allocations: 0.5313 MB / 3.853 GB, free: 74.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002485/10.98, allocations: 438.6 kB / 3.853 GB, free: 74.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002993/10.98, allocations: 2.944 MB / 3.856 GB, free: 72.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002988/10.99, allocations: 232.5 kB / 3.857 GB, free: 72.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003/10.99, allocations: 92.47 kB / 3.857 GB, free: 72.29 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/10.99, allocations: 6.219 kB / 3.857 GB, free: 72.29 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01732/11, allocations: 3.805 MB / 3.86 GB, free: 72.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.679e-05/11.01, allocations: 9.531 kB / 3.86 GB, free: 72.21 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000592/11.01, allocations: 188.8 kB / 3.861 GB, free: 72.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002491/11.01, allocations: 454.3 kB / 3.861 GB, free: 72.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/11.01, allocations: 1.896 MB / 3.863 GB, free: 70.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002232/11.01, allocations: 211.6 kB / 3.863 GB, free: 70.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002622/11.01, allocations: 93.62 kB / 3.863 GB, free: 70.64 MB / 0.5105 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 (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_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,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006121/11.01, allocations: 232 kB / 3.863 GB, free: 70.47 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004674/11.01, allocations: 176.4 kB / 3.863 GB, free: 70.47 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01125/11.02, allocations: 6.309 MB / 3.87 GB, free: 70.08 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.247e-05/11.02, allocations: 63.08 kB / 3.87 GB, free: 70.08 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/11.02, allocations: 9.922 kB / 3.87 GB, free: 70.07 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008941/11.03, allocations: 5.327 MB / 3.875 GB, free: 69.34 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01494/11.05, allocations: 8.47 MB / 3.883 GB, free: 68.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.406e-05/11.05, allocations: 0 / 3.883 GB, free: 68.85 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001591/11.05, allocations: 284.5 kB / 3.883 GB, free: 68.85 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003178/11.05, allocations: 1.505 MB / 3.885 GB, free: 68.78 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002003/11.05, allocations: 34.02 kB / 3.885 GB, free: 68.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003427/11.06, allocations: 3.699 MB / 3.889 GB, free: 66.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/11.06, allocations: 3.953 kB / 3.889 GB, free: 66.67 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01127/11.07, allocations: 6.365 MB / 3.895 GB, free: 66.08 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001573/11.07, allocations: 0.6452 MB / 3.895 GB, free: 65.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004469/11.07, allocations: 16.84 kB / 3.895 GB, free: 65.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001853/11.07, allocations: 150.6 kB / 3.896 GB, free: 65.84 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002815/11.07, allocations: 118.9 kB / 3.896 GB, free: 65.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001844/11.07, allocations: 63.83 kB / 3.896 GB, free: 65.84 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001763/11.07, allocations: 0.9874 MB / 3.897 GB, free: 65.73 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.96e-07/11.07, allocations: 3.375 kB / 3.897 GB, free: 65.73 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009107/11.08, allocations: 2.554 MB / 3.899 GB, free: 65.71 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (147): * Single equations (assignments): 125 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01116/11.09, allocations: 3.038 MB / 3.902 GB, free: 65.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007616/11.1, allocations: 4.123 MB / 3.906 GB, free: 65.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.961e-06/11.1, allocations: 0 / 3.906 GB, free: 65.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003461/11.11, allocations: 1.938 MB / 3.908 GB, free: 64.97 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004874/11.11, allocations: 0.7908 MB / 3.909 GB, free: 64.95 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009187/11.12, allocations: 4.968 MB / 3.914 GB, free: 63.96 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001766/11.12, allocations: 2.04 MB / 3.916 GB, free: 63.22 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009181/11.12, allocations: 175.7 kB / 3.916 GB, free: 63.21 MB / 0.5105 GB Notification: Performance of SimCode: time 1.71e-06/11.12, allocations: 0 / 3.916 GB, free: 63.21 MB / 0.5105 GB Notification: Performance of Templates: time 0.4511/11.57, allocations: 106.3 MB / 4.02 GB, free: 77.51 MB / 0.5105 GB