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.BranchingPipes15.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.815/1.815, allocations: 209.2 MB / 224.8 MB, free: 212 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004301/0.0004302, allocations: 8 kB / 282.6 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2833, allocations: 48.7 MB / 331.3 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.793/2.076, allocations: 0.6811 GB / 1.005 GB, free: 111.6 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/2.076, allocations: 80.11 kB / 1.005 GB, free: 111.6 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.582/4.658, allocations: 0.5505 GB / 1.555 GB, free: 34.61 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.373e-06/4.658, allocations: 2.219 kB / 1.555 GB, free: 34.61 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002314/4.658, allocations: 58.34 kB / 1.555 GB, free: 34.6 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.01133/4.67, allocations: 3.303 MB / 1.558 GB, free: 33.19 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/4.67, allocations: 7.344 kB / 1.558 GB, free: 33.19 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004066/4.674, allocations: 449.3 kB / 1.559 GB, free: 33.06 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006433/4.68, allocations: 1.943 MB / 1.561 GB, free: 32.62 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001866/4.68, allocations: 123.8 kB / 1.561 GB, free: 32.62 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008682/4.681, allocations: 165.4 kB / 1.561 GB, free: 32.62 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006409/4.688, allocations: 2.615 MB / 1.564 GB, free: 32.19 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.401e-05/4.688, allocations: 3.656 kB / 1.564 GB, free: 32.19 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003563/4.688, allocations: 73.08 kB / 1.564 GB, free: 32.19 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002257/4.688, allocations: 155.1 kB / 1.564 GB, free: 32.18 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005792/4.694, allocations: 2.236 MB / 1.566 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.01831/4.713, allocations: 10.92 MB / 1.577 GB, free: 26.29 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003881/4.717, allocations: 1.797 MB / 1.578 GB, free: 25.96 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0011/4.718, allocations: 467.8 kB / 1.579 GB, free: 25.67 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002691/4.72, allocations: 1.163 MB / 1.58 GB, free: 25.55 MB / 458.7 MB Notification: Performance of pre-optimization done (n=158): time 6.077e-06/4.72, allocations: 0 / 1.58 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.03567/4.756, allocations: 10.96 MB / 1.591 GB, free: 23.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.392e-05/4.756, allocations: 265.6 kB / 1.591 GB, free: 23.31 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002413/4.759, allocations: 1.347 MB / 1.592 GB, free: 23.14 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005528/4.759, allocations: 65.67 kB / 1.592 GB, free: 23.11 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006762/4.76, allocations: 0.8 MB / 1.593 GB, free: 22.71 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007011/4.761, allocations: 0.6163 MB / 1.594 GB, free: 22.32 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002326/4.761, allocations: 45.31 kB / 1.594 GB, free: 22.32 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/4.761, allocations: 387.5 kB / 1.594 GB, free: 22.01 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002493/4.764, allocations: 1.025 MB / 1.595 GB, free: 22 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003/4.767, allocations: 1.474 MB / 1.597 GB, free: 21.57 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003089/4.77, allocations: 1.291 MB / 1.598 GB, free: 21.48 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.406e-05/4.77, allocations: 3.812 kB / 1.598 GB, free: 21.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=262) (initialization): time 0.007532/4.777, allocations: 2.992 MB / 1.601 GB, free: 21.27 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008608/4.778, allocations: 4.161 MB / 1.605 GB, free: 16.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.261e-05/4.778, allocations: 10.91 kB / 1.605 GB, free: 16.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005845/4.779, allocations: 193.9 kB / 1.605 GB, free: 16.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003148/4.782, allocations: 0.5429 MB / 1.606 GB, free: 16.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001438/4.784, allocations: 2.334 MB / 1.608 GB, free: 14.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003089/4.787, allocations: 213 kB / 1.608 GB, free: 14.83 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005523/4.787, allocations: 189.5 kB / 1.608 GB, free: 14.83 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/4.787, allocations: 3.875 kB / 1.608 GB, free: 14.83 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006946/4.794, allocations: 2.835 MB / 1.611 GB, free: 14.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.48e-05/4.794, allocations: 12.84 kB / 1.611 GB, free: 14.65 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005516/4.795, allocations: 186.9 kB / 1.611 GB, free: 14.62 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003264/4.798, allocations: 0.5376 MB / 1.612 GB, free: 14.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002398/4.801, allocations: 2.334 MB / 1.614 GB, free: 28.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002667/4.803, allocations: 203.8 kB / 1.614 GB, free: 28.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004621/4.804, allocations: 183.8 kB / 1.614 GB, free: 28.5 MB / 474.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.00181/4.806, allocations: 0.6798 MB / 1.615 GB, free: 28.21 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005697/4.806, allocations: 211.2 kB / 1.615 GB, free: 28.11 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01032/4.817, allocations: 3.539 MB / 1.619 GB, free: 27.86 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.019e-05/4.817, allocations: 21.69 kB / 1.619 GB, free: 27.86 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/4.817, allocations: 2.484 kB / 1.619 GB, free: 27.86 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005716/4.822, allocations: 2.777 MB / 1.621 GB, free: 26.62 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01607/4.838, allocations: 6.926 MB / 1.628 GB, free: 23.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.709e-05/4.839, allocations: 6.688 kB / 1.628 GB, free: 23.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002695/4.841, allocations: 445.7 kB / 1.629 GB, free: 23.37 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006457/4.842, allocations: 197 kB / 1.629 GB, free: 23.31 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004135/4.842, allocations: 103.6 kB / 1.629 GB, free: 23.28 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002768/4.845, allocations: 3.075 MB / 1.632 GB, free: 20.33 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.39e-06/4.845, allocations: 10.72 kB / 1.632 GB, free: 20.32 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009116/4.854, allocations: 4.734 MB / 1.637 GB, free: 17.86 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001731/4.856, allocations: 0.5203 MB / 1.637 GB, free: 17.55 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006935/4.857, allocations: 58.02 kB / 1.637 GB, free: 17.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002087/4.859, allocations: 128.3 kB / 1.637 GB, free: 17.49 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003811/4.859, allocations: 171.4 kB / 1.637 GB, free: 17.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003815/4.86, allocations: 171.2 kB / 1.638 GB, free: 17.45 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002013/4.862, allocations: 1.025 MB / 1.639 GB, free: 17.07 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.58e-07/4.862, allocations: 0 / 1.639 GB, free: 17.07 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007739/4.869, allocations: 1.934 MB / 1.64 GB, free: 16.64 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.006464/4.876, allocations: 2.447 MB / 1.643 GB, free: 15.23 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009324/4.885, allocations: 4.275 MB / 1.647 GB, free: 11.46 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/4.885, allocations: 4.562 kB / 1.647 GB, free: 11.46 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003199/4.889, allocations: 1.52 MB / 1.649 GB, free: 10.09 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005529/4.894, allocations: 0.9135 MB / 1.649 GB, free: 9.422 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01894/4.913, allocations: 7.185 MB / 1.656 GB, free: 3.309 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002058/4.915, allocations: 1.694 MB / 1.658 GB, free: 1.934 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002343/4.918, allocations: 363.8 kB / 1.658 GB, free: 1.617 MB / 474.7 MB Notification: Performance of SimCode: time 1.668e-06/4.918, allocations: 0 / 1.658 GB, free: 1.617 MB / 474.7 MB Notification: Performance of Templates: time 0.4251/5.343, allocations: 82.95 MB / 1.739 GB, free: 57.61 MB / 490.7 MB