Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") Notification: Performance of loadModel(ModelicaTest): time 2.183/2.183, allocations: 235 MB / 248.1 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.023e-05/3.043e-05, allocations: 4 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.32, allocations: 54.86 MB / 364.5 MB, free: 5.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.536/1.856, allocations: 0.6877 GB / 1.044 GB, free: 42.96 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/1.856, allocations: 77.03 kB / 1.044 GB, free: 42.93 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.614/4.47, allocations: 0.5495 GB / 1.593 GB, free: 38.57 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.364e-06/4.47, allocations: 3.938 kB / 1.593 GB, free: 38.57 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000235/4.47, allocations: 58.47 kB / 1.593 GB, free: 38.55 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01031/4.481, allocations: 3.017 MB / 1.596 GB, free: 36.83 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/4.481, allocations: 7.938 kB / 1.596 GB, free: 36.83 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004148/4.485, allocations: 444.5 kB / 1.597 GB, free: 36.68 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006552/4.492, allocations: 1.927 MB / 1.599 GB, free: 35.82 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002032/4.492, allocations: 134.4 kB / 1.599 GB, free: 35.77 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007916/4.493, allocations: 162.7 kB / 1.599 GB, free: 35.72 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006156/4.499, allocations: 2.57 MB / 1.601 GB, free: 34.55 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.624e-05/4.499, allocations: 10.39 kB / 1.601 GB, free: 34.54 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003706/4.499, allocations: 73.94 kB / 1.601 GB, free: 34.5 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002405/4.5, allocations: 154 kB / 1.602 GB, free: 34.47 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005351/4.505, allocations: 2.174 MB / 1.604 GB, free: 33.72 MB / 490.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.01935/4.524, allocations: 10.97 MB / 1.614 GB, free: 22.96 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003741/4.528, allocations: 1.743 MB / 1.616 GB, free: 21.15 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002094/4.53, allocations: 1.043 MB / 1.617 GB, free: 20.11 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001086/4.531, allocations: 454.2 kB / 1.618 GB, free: 19.62 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002436/4.534, allocations: 1.151 MB / 1.619 GB, free: 18.44 MB / 490.7 MB Notification: Performance of pre-optimization done (n=162): time 6.352e-06/4.534, allocations: 0 / 1.619 GB, free: 18.44 MB / 490.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=185): time 0.02813/4.562, allocations: 8.477 MB / 1.627 GB, free: 9.859 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.211e-05/4.562, allocations: 257.3 kB / 1.627 GB, free: 9.551 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002381/4.564, allocations: 1.333 MB / 1.629 GB, free: 8.219 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005487/4.565, allocations: 65.7 kB / 1.629 GB, free: 8.148 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006688/4.566, allocations: 0.8082 MB / 1.629 GB, free: 7.336 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007522/4.567, allocations: 0.6229 MB / 1.63 GB, free: 6.719 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00023/4.567, allocations: 40 kB / 1.63 GB, free: 6.68 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/4.567, allocations: 394.9 kB / 1.63 GB, free: 6.285 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002111/4.569, allocations: 0.9802 MB / 1.631 GB, free: 5.305 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002637/4.572, allocations: 1.438 MB / 1.633 GB, free: 3.703 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002675/4.574, allocations: 1.266 MB / 1.634 GB, free: 2.426 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.307e-05/4.574, allocations: 0 / 1.634 GB, free: 2.426 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.006924/4.581, allocations: 2.889 MB / 1.637 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002305/4.584, allocations: 4.16 MB / 1.641 GB, free: 11.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-05/4.584, allocations: 8 kB / 1.641 GB, free: 11.01 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007041/4.585, allocations: 195.3 kB / 1.641 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003662/4.588, allocations: 0.5422 MB / 1.642 GB, free: 10.26 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002277/4.591, allocations: 2.33 MB / 1.644 GB, free: 7.828 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003396/4.594, allocations: 219.9 kB / 1.644 GB, free: 7.613 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008705/4.595, allocations: 187.9 kB / 1.644 GB, free: 7.43 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/4.595, allocations: 4.781 kB / 1.644 GB, free: 7.426 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007315/4.602, allocations: 2.72 MB / 1.647 GB, free: 4.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.704e-05/4.602, allocations: 12 kB / 1.647 GB, free: 4.668 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006136/4.603, allocations: 195.8 kB / 1.647 GB, free: 4.465 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003479/4.606, allocations: 0.5344 MB / 1.648 GB, free: 3.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002245/4.609, allocations: 2.325 MB / 1.65 GB, free: 1.504 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002604/4.611, allocations: 211.9 kB / 1.65 GB, free: 1.297 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006948/4.612, allocations: 187.9 kB / 1.65 GB, free: 1.113 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * 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.0009463/4.613, allocations: 299.3 kB / 1.651 GB, free: 0.8047 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006745/4.614, allocations: 209.4 kB / 1.651 GB, free: 0.5977 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01113/4.625, allocations: 3.475 MB / 1.654 GB, free: 13.11 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.119e-05/4.625, allocations: 20 kB / 1.654 GB, free: 13.09 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/4.625, allocations: 0 / 1.654 GB, free: 13.09 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006413/4.631, allocations: 2.701 MB / 1.657 GB, free: 10.28 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01854/4.65, allocations: 6.876 MB / 1.664 GB, free: 3.133 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-05/4.65, allocations: 4 kB / 1.664 GB, free: 3.129 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002884/4.653, allocations: 447.4 kB / 1.664 GB, free: 2.691 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006978/4.654, allocations: 187.8 kB / 1.664 GB, free: 2.496 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004985/4.654, allocations: 99.95 kB / 1.664 GB, free: 2.398 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3288/4.983, allocations: 3.065 MB / 1.667 GB, free: 66.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.458e-05/4.983, allocations: 12.27 kB / 1.667 GB, free: 66.01 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009758/4.993, allocations: 4.646 MB / 1.672 GB, free: 64.95 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001876/4.995, allocations: 0.5251 MB / 1.672 GB, free: 64.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008262/4.996, allocations: 59.12 kB / 1.672 GB, free: 64.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002544/4.998, allocations: 131 kB / 1.672 GB, free: 64.85 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007179/4.999, allocations: 178.2 kB / 1.673 GB, free: 64.85 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000602/5, allocations: 168.8 kB / 1.673 GB, free: 64.85 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002565/5.002, allocations: 1.006 MB / 1.674 GB, free: 64.73 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.758e-06/5.002, allocations: 0 / 1.674 GB, free: 64.73 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008695/5.011, allocations: 1.953 MB / 1.676 GB, free: 64.73 MB / 0.5105 GB 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: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.008169/5.019, allocations: 2.441 MB / 1.678 GB, free: 64.44 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01091/5.03, allocations: 4.278 MB / 1.682 GB, free: 64.14 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/5.03, allocations: 1.375 kB / 1.682 GB, free: 64.14 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003496/5.034, allocations: 1.537 MB / 1.684 GB, free: 63.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006008/5.04, allocations: 0.9082 MB / 1.685 GB, free: 63.89 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01606/5.056, allocations: 5.57 MB / 1.69 GB, free: 62.91 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00148/5.057, allocations: 1.701 MB / 1.692 GB, free: 62.18 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002304/5.06, allocations: 368 kB / 1.692 GB, free: 62.18 MB / 0.5105 GB Notification: Performance of SimCode: time 2.107e-06/5.06, allocations: 0 / 1.692 GB, free: 62.18 MB / 0.5105 GB Notification: Performance of Templates: time 0.1122/5.172, allocations: 83.2 MB / 1.773 GB, free: 57.8 MB / 0.5105 GB