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.766/1.766, allocations: 209.3 MB / 222.4 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.402e-05/2.415e-05, allocations: 0 / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08355/0.0836, allocations: 48.71 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.635/1.719, allocations: 0.681 GB / 0.9999 GB, free: 4.34 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002192/1.719, allocations: 80.94 kB / 1 GB, free: 4.262 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.042/4.761, allocations: 0.5492 GB / 1.549 GB, free: 37.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.154e-06/4.761, allocations: 0 / 1.549 GB, free: 37.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002741/4.761, allocations: 59.61 kB / 1.549 GB, free: 37.4 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.01082/4.772, allocations: 3.009 MB / 1.552 GB, free: 36.22 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/4.772, allocations: 7.75 kB / 1.552 GB, free: 36.22 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004266/4.777, allocations: 436.7 kB / 1.553 GB, free: 36.1 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006734/4.783, allocations: 1.926 MB / 1.554 GB, free: 35.68 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002088/4.784, allocations: 128.6 kB / 1.555 GB, free: 35.68 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008335/4.784, allocations: 159.5 kB / 1.555 GB, free: 35.68 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006865/4.791, allocations: 2.572 MB / 1.557 GB, free: 35.25 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.677e-05/4.791, allocations: 4.625 kB / 1.557 GB, free: 35.25 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000514/4.792, allocations: 71.59 kB / 1.557 GB, free: 35.25 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00024/4.792, allocations: 155.3 kB / 1.557 GB, free: 35.24 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006011/4.798, allocations: 2.163 MB / 1.56 GB, free: 35.23 MB / 458.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.02102/4.819, allocations: 10.93 MB / 1.57 GB, free: 29.34 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003927/4.823, allocations: 1.752 MB / 1.572 GB, free: 29.02 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002312/4.826, allocations: 1.025 MB / 1.573 GB, free: 29.01 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00121/4.827, allocations: 456.9 kB / 1.573 GB, free: 28.72 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002741/4.83, allocations: 1.139 MB / 1.575 GB, free: 28.59 MB / 458.7 MB Notification: Performance of pre-optimization done (n=158): time 6.102e-06/4.83, allocations: 0 / 1.575 GB, free: 28.59 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 Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=181): time 0.02954/4.859, allocations: 8.486 MB / 1.583 GB, free: 27.41 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.91e-05/4.859, allocations: 261 kB / 1.583 GB, free: 27.13 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002604/4.862, allocations: 1.322 MB / 1.584 GB, free: 26.96 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005628/4.863, allocations: 66.17 kB / 1.584 GB, free: 26.93 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007543/4.863, allocations: 0.8059 MB / 1.585 GB, free: 26.53 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008974/4.864, allocations: 0.6124 MB / 1.586 GB, free: 26.14 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002448/4.865, allocations: 47.16 kB / 1.586 GB, free: 26.14 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001629/4.865, allocations: 391.4 kB / 1.586 GB, free: 25.83 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002311/4.867, allocations: 0.976 MB / 1.587 GB, free: 25.82 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002949/4.87, allocations: 1.418 MB / 1.589 GB, free: 25.39 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003035/4.873, allocations: 1.258 MB / 1.59 GB, free: 25.3 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.797e-05/4.873, allocations: 3.25 kB / 1.59 GB, free: 25.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=262) (initialization): time 0.007821/4.881, allocations: 2.912 MB / 1.593 GB, free: 25.08 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009182/4.882, allocations: 4.162 MB / 1.597 GB, free: 20.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.735e-05/4.882, allocations: 9.969 kB / 1.597 GB, free: 20.76 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006435/4.883, allocations: 192 kB / 1.597 GB, free: 20.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003695/4.886, allocations: 0.5434 MB / 1.597 GB, free: 20.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/4.888, allocations: 2.328 MB / 1.6 GB, free: 18.65 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003581/4.892, allocations: 205.5 kB / 1.6 GB, free: 18.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000813/4.893, allocations: 191.6 kB / 1.6 GB, free: 18.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/4.893, allocations: 11.47 kB / 1.6 GB, free: 18.64 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00685/4.899, allocations: 2.74 MB / 1.603 GB, free: 18.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.296e-05/4.9, allocations: 14.12 kB / 1.603 GB, free: 18.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005327/4.9, allocations: 191 kB / 1.603 GB, free: 18.47 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003258/4.903, allocations: 0.5412 MB / 1.603 GB, free: 18.47 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001462/4.905, allocations: 2.325 MB / 1.606 GB, free: 16.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002533/4.907, allocations: 211.8 kB / 1.606 GB, free: 16.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006494/4.908, allocations: 186.2 kB / 1.606 GB, free: 16.39 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 () * 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.0008517/4.909, allocations: 295.6 kB / 1.606 GB, free: 16.21 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005821/4.91, allocations: 209 kB / 1.607 GB, free: 16.11 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01055/4.92, allocations: 3.484 MB / 1.61 GB, free: 15.86 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.269e-05/4.92, allocations: 19.84 kB / 1.61 GB, free: 15.86 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/4.92, allocations: 0 / 1.61 GB, free: 15.86 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005557/4.926, allocations: 2.713 MB / 1.613 GB, free: 15.28 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0167/4.943, allocations: 6.852 MB / 1.619 GB, free: 29.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.769e-05/4.943, allocations: 6.375 kB / 1.619 GB, free: 29.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002891/4.946, allocations: 450.1 kB / 1.62 GB, free: 29.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006866/4.946, allocations: 183.3 kB / 1.62 GB, free: 29.77 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005116/4.947, allocations: 104.6 kB / 1.62 GB, free: 29.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002782/4.95, allocations: 3.066 MB / 1.623 GB, free: 26.96 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.851e-06/4.95, allocations: 18.12 kB / 1.623 GB, free: 26.96 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009394/4.959, allocations: 4.64 MB / 1.628 GB, free: 25.74 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001807/4.961, allocations: 0.5282 MB / 1.628 GB, free: 25.54 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008238/4.962, allocations: 59.59 kB / 1.628 GB, free: 25.54 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002702/4.964, allocations: 122.2 kB / 1.628 GB, free: 25.53 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000564/4.965, allocations: 186.5 kB / 1.629 GB, free: 25.52 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004222/4.966, allocations: 164.7 kB / 1.629 GB, free: 25.52 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002127/4.968, allocations: 1.001 MB / 1.63 GB, free: 25.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.79e-07/4.968, allocations: 0 / 1.63 GB, free: 25.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008163/4.976, allocations: 1.942 MB / 1.632 GB, free: 25.15 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) * 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.007037/4.983, allocations: 2.45 MB / 1.634 GB, free: 24.59 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009893/4.993, allocations: 4.153 MB / 1.638 GB, free: 24.29 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.41e-05/4.993, allocations: 5.344 kB / 1.638 GB, free: 24.29 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003192/4.996, allocations: 1.487 MB / 1.639 GB, free: 24.02 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005524/5.002, allocations: 0.919 MB / 1.64 GB, free: 23.98 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01612/5.018, allocations: 5.532 MB / 1.646 GB, free: 22.16 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001751/5.02, allocations: 1.695 MB / 1.647 GB, free: 21.34 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002243/5.022, allocations: 367.4 kB / 1.648 GB, free: 21.28 MB / 474.7 MB Notification: Performance of SimCode: time 1.776e-06/5.022, allocations: 0 / 1.648 GB, free: 21.28 MB / 474.7 MB Notification: Performance of Templates: time 0.4249/5.447, allocations: 82.79 MB / 1.729 GB, free: 47.95 MB / 474.7 MB