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.BranchingPipes15.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.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|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.BranchingPipes15") Notification: Performance of loadModel(ModelicaTest): time 2.18/2.18, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004274/0.0004275, allocations: 12 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3487, allocations: 48.7 MB / 331.8 MB, free: 6.484 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.197/2.546, allocations: 0.6811 GB / 1.005 GB, free: 112.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/2.547, allocations: 89.2 kB / 1.005 GB, free: 112.1 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.074/5.621, allocations: 0.5505 GB / 1.556 GB, free: 34.63 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.776e-06/5.621, allocations: 3.812 kB / 1.556 GB, free: 34.63 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003476/5.621, allocations: 63.41 kB / 1.556 GB, free: 34.62 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: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.03895/5.66, allocations: 3.3 MB / 1.559 GB, free: 33.19 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/5.66, allocations: 7.531 kB / 1.559 GB, free: 33.19 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006501/5.667, allocations: 445.8 kB / 1.559 GB, free: 33.06 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01064/5.678, allocations: 1.946 MB / 1.561 GB, free: 32.62 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000273/5.678, allocations: 127.7 kB / 1.561 GB, free: 32.62 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001102/5.679, allocations: 165.3 kB / 1.562 GB, free: 32.62 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009572/5.689, allocations: 2.625 MB / 1.564 GB, free: 32.19 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.955e-05/5.689, allocations: 3.938 kB / 1.564 GB, free: 32.19 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005343/5.689, allocations: 72.2 kB / 1.564 GB, free: 32.19 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003866/5.69, allocations: 151.1 kB / 1.564 GB, free: 32.19 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008968/5.699, allocations: 2.237 MB / 1.567 GB, free: 32.17 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.03071/5.729, allocations: 10.92 MB / 1.577 GB, free: 26.29 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006511/5.736, allocations: 1.789 MB / 1.579 GB, free: 25.97 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001869/5.738, allocations: 468.4 kB / 1.579 GB, free: 25.68 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004194/5.742, allocations: 1.173 MB / 1.581 GB, free: 25.55 MB / 458.7 MB Notification: Performance of pre-optimization done (n=158): time 7.855e-06/5.742, allocations: 0 / 1.581 GB, free: 25.55 MB / 458.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionIdeal.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=181): time 0.06469/5.807, allocations: 10.97 MB / 1.591 GB, free: 23.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/5.807, allocations: 261.9 kB / 1.592 GB, free: 23.32 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004275/5.811, allocations: 1.536 MB / 1.593 GB, free: 23.13 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008763/5.812, allocations: 61.8 kB / 1.593 GB, free: 23.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001087/5.813, allocations: 0.8068 MB / 1.594 GB, free: 22.71 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001356/5.815, allocations: 0.6128 MB / 1.594 GB, free: 22.32 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003578/5.815, allocations: 38.78 kB / 1.595 GB, free: 22.32 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002211/5.815, allocations: 394.7 kB / 1.595 GB, free: 22 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004222/5.82, allocations: 1.024 MB / 1.596 GB, free: 22 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005014/5.825, allocations: 1.47 MB / 1.597 GB, free: 21.56 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004201/5.829, allocations: 1.296 MB / 1.599 GB, free: 21.48 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.676e-05/5.829, allocations: 0 / 1.599 GB, free: 21.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=262) (initialization): time 0.00882/5.838, allocations: 3 MB / 1.602 GB, free: 21.27 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003444/5.838, allocations: 468.9 kB / 1.602 GB, free: 20.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.278e-05/5.838, allocations: 7.375 kB / 1.602 GB, free: 20.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006658/5.839, allocations: 194.5 kB / 1.602 GB, free: 20.72 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004604/5.844, allocations: 0.5473 MB / 1.603 GB, free: 20.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001659/5.845, allocations: 2.327 MB / 1.605 GB, free: 18.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004221/5.85, allocations: 216.2 kB / 1.605 GB, free: 18.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006893/5.85, allocations: 187.5 kB / 1.605 GB, free: 18.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/5.85, allocations: 3.844 kB / 1.605 GB, free: 18.6 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007685/5.858, allocations: 2.841 MB / 1.608 GB, free: 18.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.654e-05/5.858, allocations: 13.77 kB / 1.608 GB, free: 18.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000606/5.859, allocations: 191.9 kB / 1.608 GB, free: 18.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004327/5.863, allocations: 0.5358 MB / 1.609 GB, free: 18.33 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001604/5.865, allocations: 2.33 MB / 1.611 GB, free: 16.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003327/5.868, allocations: 212 kB / 1.611 GB, free: 16.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004796/5.869, allocations: 182.9 kB / 1.612 GB, free: 16.24 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002079/5.871, allocations: 0.6839 MB / 1.612 GB, free: 15.95 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006978/5.871, allocations: 212.9 kB / 1.612 GB, free: 15.84 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01132/5.883, allocations: 3.537 MB / 1.616 GB, free: 14.61 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.416e-05/5.883, allocations: 18.94 kB / 1.616 GB, free: 14.61 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/5.883, allocations: 0 / 1.616 GB, free: 14.61 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006723/5.89, allocations: 2.784 MB / 1.619 GB, free: 13.29 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01974/5.909, allocations: 6.928 MB / 1.625 GB, free: 26.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.848e-05/5.909, allocations: 5.875 kB / 1.625 GB, free: 26.08 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003584/5.913, allocations: 447.7 kB / 1.626 GB, free: 26.04 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006791/5.914, allocations: 194.8 kB / 1.626 GB, free: 25.98 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004097/5.914, allocations: 95.98 kB / 1.626 GB, free: 25.95 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002832/5.917, allocations: 3.084 MB / 1.629 GB, free: 23 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.869e-06/5.917, allocations: 15.03 kB / 1.629 GB, free: 23 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01068/5.928, allocations: 4.302 MB / 1.633 GB, free: 21.09 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001953/5.93, allocations: 0.5206 MB / 1.634 GB, free: 20.79 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000763/5.931, allocations: 58.34 kB / 1.634 GB, free: 20.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002591/5.933, allocations: 137.3 kB / 1.634 GB, free: 20.71 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004324/5.934, allocations: 171.8 kB / 1.634 GB, free: 20.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004028/5.934, allocations: 164.6 kB / 1.634 GB, free: 20.66 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002161/5.936, allocations: 1.021 MB / 1.635 GB, free: 20.29 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.32e-07/5.936, allocations: 0 / 1.635 GB, free: 20.29 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009044/5.945, allocations: 1.949 MB / 1.637 GB, free: 18.44 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,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 (196): * Single equations (assignments): 190 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009102/5.954, allocations: 2.436 MB / 1.64 GB, free: 16.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01081/5.965, allocations: 4.277 MB / 1.644 GB, free: 12.83 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.561e-05/5.965, allocations: 8 kB / 1.644 GB, free: 12.82 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003988/5.969, allocations: 1.516 MB / 1.645 GB, free: 11.45 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007785/5.977, allocations: 0.9189 MB / 1.646 GB, free: 10.79 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02246/6, allocations: 7.178 MB / 1.653 GB, free: 4.668 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001911/6.002, allocations: 1.703 MB / 1.655 GB, free: 3.285 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002872/6.004, allocations: 363.4 kB / 1.655 GB, free: 2.969 MB / 474.7 MB Notification: Performance of SimCode: time 1.272e-06/6.005, allocations: 3.938 kB / 1.655 GB, free: 2.965 MB / 474.7 MB Notification: Performance of Templates: time 0.5177/6.522, allocations: 83.06 MB / 1.736 GB, free: 39.19 MB / 474.7 MB