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/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.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.898/1.898, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.601e-05/1.612e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2612, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.645/1.906, allocations: 0.6803 GB / 0.9929 GB, free: 78.12 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001862/1.906, allocations: 79.72 kB / 0.9929 GB, free: 78.08 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.511/4.417, allocations: 0.5438 GB / 1.537 GB, free: 24.48 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.023e-06/4.417, allocations: 0 / 1.537 GB, free: 24.48 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001918/4.417, allocations: 60 kB / 1.537 GB, free: 24.42 MB / 442.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.008876/4.426, allocations: 3.004 MB / 1.54 GB, free: 21.37 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/4.426, allocations: 12.03 kB / 1.54 GB, free: 21.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003764/4.43, allocations: 440.8 kB / 1.54 GB, free: 20.92 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005893/4.436, allocations: 1.921 MB / 1.542 GB, free: 18.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/4.436, allocations: 52 kB / 1.542 GB, free: 18.94 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005567/4.437, allocations: 103.3 kB / 1.542 GB, free: 18.84 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004472/4.441, allocations: 2.103 MB / 1.544 GB, free: 16.74 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004496/4.446, allocations: 2.344 MB / 1.547 GB, free: 14.24 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.808e-05/4.446, allocations: 7.938 kB / 1.547 GB, free: 14.23 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003016/4.446, allocations: 8 kB / 1.547 GB, free: 14.23 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000211/4.446, allocations: 150.9 kB / 1.547 GB, free: 14.08 MB / 442.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.01595/4.462, allocations: 10.7 MB / 1.557 GB, free: 2.715 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003093/4.465, allocations: 1.705 MB / 1.559 GB, free: 0.9531 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001605/4.467, allocations: 0.9451 MB / 1.56 GB, free: 8 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001126/4.468, allocations: 461.6 kB / 1.56 GB, free: 15.51 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002214/4.471, allocations: 1.032 MB / 1.561 GB, free: 14.45 MB / 458.7 MB Notification: Performance of pre-optimization done (n=149): time 5.286e-06/4.471, allocations: 0 / 1.561 GB, free: 14.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=172): time 0.05043/4.521, allocations: 9.342 MB / 1.57 GB, free: 5.047 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001902/4.521, allocations: 264.6 kB / 1.571 GB, free: 4.73 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002326/4.524, allocations: 1.064 MB / 1.572 GB, free: 3.66 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005273/4.524, allocations: 25.7 kB / 1.572 GB, free: 3.629 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009907/4.525, allocations: 0.8709 MB / 1.572 GB, free: 2.75 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009104/4.526, allocations: 0.5698 MB / 1.573 GB, free: 2.172 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002015/4.526, allocations: 0 / 1.573 GB, free: 2.172 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002697/4.527, allocations: 390.8 kB / 1.573 GB, free: 1.781 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002285/4.529, allocations: 0.9567 MB / 1.574 GB, free: 0.8242 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2953/4.824, allocations: 1.381 MB / 1.576 GB, free: 44.71 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01356/4.838, allocations: 2.305 MB / 1.578 GB, free: 44.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.364e-05/4.838, allocations: 2.906 kB / 1.578 GB, free: 44.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=262) (initialization): time 0.01785/4.856, allocations: 3.845 MB / 1.582 GB, free: 44.59 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008712/4.857, allocations: 4.161 MB / 1.586 GB, free: 40.28 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.792e-05/4.857, allocations: 12.09 kB / 1.586 GB, free: 40.28 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005002/4.857, allocations: 170.6 kB / 1.586 GB, free: 40.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003464/4.861, allocations: 0.5486 MB / 1.586 GB, free: 40.25 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001495/4.862, allocations: 2.339 MB / 1.589 GB, free: 38.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003438/4.866, allocations: 172.1 kB / 1.589 GB, free: 38.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006267/4.866, allocations: 192.4 kB / 1.589 GB, free: 38.18 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/4.866, allocations: 4.625 kB / 1.589 GB, free: 38.18 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01584/4.882, allocations: 3.466 MB / 1.592 GB, free: 38.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.975e-05/4.882, allocations: 8.688 kB / 1.592 GB, free: 38.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004342/4.883, allocations: 168.5 kB / 1.593 GB, free: 38.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003233/4.886, allocations: 0.5377 MB / 1.593 GB, free: 38.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001428/4.887, allocations: 2.342 MB / 1.595 GB, free: 36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/4.89, allocations: 167.5 kB / 1.596 GB, free: 36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004457/4.89, allocations: 186.6 kB / 1.596 GB, free: 36 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.0007781/4.891, allocations: 230 kB / 1.596 GB, free: 35.83 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005789/4.892, allocations: 189.2 kB / 1.596 GB, free: 35.83 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01954/4.911, allocations: 3.896 MB / 1.6 GB, free: 35.68 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.545e-05/4.911, allocations: 21.55 kB / 1.6 GB, free: 35.67 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.121e-05/4.912, allocations: 2.094 kB / 1.6 GB, free: 35.67 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.06909/4.981, allocations: 3.406 MB / 1.603 GB, free: 35.16 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04068/5.021, allocations: 6.876 MB / 1.61 GB, free: 34.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.202e-05/5.021, allocations: 7.594 kB / 1.61 GB, free: 34.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003413/5.025, allocations: 415.5 kB / 1.61 GB, free: 34.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007298/5.026, allocations: 166.9 kB / 1.611 GB, free: 34.03 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004509/5.026, allocations: 64.19 kB / 1.611 GB, free: 34.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002514/5.029, allocations: 3.029 MB / 1.614 GB, free: 31.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-05/5.029, allocations: 4.625 kB / 1.614 GB, free: 31.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02418/5.053, allocations: 5.103 MB / 1.619 GB, free: 30.35 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002029/5.055, allocations: 0.4949 MB / 1.619 GB, free: 30.16 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000729/5.056, allocations: 27.08 kB / 1.619 GB, free: 30.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002837/5.059, allocations: 89.92 kB / 1.619 GB, free: 30.16 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005188/5.059, allocations: 156.2 kB / 1.619 GB, free: 30.15 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004938/5.06, allocations: 146.2 kB / 1.62 GB, free: 30.14 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002135/5.062, allocations: 0.7885 MB / 1.62 GB, free: 30.04 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.125e-06/5.062, allocations: 6.125 kB / 1.62 GB, free: 30.04 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01045/5.072, allocations: 1.787 MB / 1.622 GB, free: 30.04 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * 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 (184): * Single equations (assignments): 178 * 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.01001/5.082, allocations: 2.651 MB / 1.625 GB, free: 29.74 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01406/5.096, allocations: 3.954 MB / 1.628 GB, free: 29.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.667e-05/5.097, allocations: 1.969 kB / 1.628 GB, free: 29.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004246/5.101, allocations: 1.363 MB / 1.63 GB, free: 29.22 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00869/5.11, allocations: 0.7677 MB / 1.631 GB, free: 29.21 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02163/5.131, allocations: 5.434 MB / 1.636 GB, free: 28.28 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001509/5.133, allocations: 1.695 MB / 1.638 GB, free: 27.54 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002144/5.135, allocations: 339.7 kB / 1.638 GB, free: 27.54 MB / 458.7 MB Notification: Performance of SimCode: time 1.85e-06/5.135, allocations: 0 / 1.638 GB, free: 27.54 MB / 458.7 MB Notification: Performance of Templates: time 0.1066/5.242, allocations: 81.34 MB / 1.717 GB, free: 2.855 MB / 458.7 MB