Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004024/0.00403, allocations: 347.7 kB / 15.94 MB, free: 6.219 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.393/3.393, allocations: 341.5 MB / 358.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003475/0.003476, allocations: 218.1 kB / 397.9 MB, free: 4.891 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4836/0.4836, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007295/0.0007299, allocations: 16 kB / 0.5592 GB, free: 53.45 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.12, allocations: 48.71 MB / 0.6067 GB, free: 4.637 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.881/8.001, allocations: 2.566 GB / 3.173 GB, free: 96.41 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003005/8.001, allocations: 87.91 kB / 3.173 GB, free: 96.41 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.824/12.83, allocations: 0.8424 GB / 4.016 GB, free: 29.73 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.154e-06/12.83, allocations: 0 / 4.016 GB, free: 29.73 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000342/12.83, allocations: 69.52 kB / 4.016 GB, free: 29.72 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.02009/12.85, allocations: 4.105 MB / 4.02 GB, free: 27.91 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/12.85, allocations: 8.906 kB / 4.02 GB, free: 27.91 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009611/12.86, allocations: 0.8506 MB / 4.021 GB, free: 27.77 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03663/12.89, allocations: 13.29 MB / 4.033 GB, free: 27.23 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003337/12.89, allocations: 187.3 kB / 4.034 GB, free: 27.22 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00092/12.89, allocations: 201 kB / 4.034 GB, free: 27.22 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01215/12.91, allocations: 3.658 MB / 4.037 GB, free: 26.66 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.45e-05/12.91, allocations: 11.75 kB / 4.037 GB, free: 26.66 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004334/12.91, allocations: 94.48 kB / 4.038 GB, free: 26.66 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003658/12.91, allocations: 165 kB / 4.038 GB, free: 26.66 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01358/12.92, allocations: 3.332 MB / 4.041 GB, free: 26.64 MB / 474.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.02808/12.95, allocations: 15.41 MB / 4.056 GB, free: 17.22 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009198/12.96, allocations: 2.787 MB / 4.059 GB, free: 16.61 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003613/12.96, allocations: 1.229 MB / 4.06 GB, free: 16.61 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05792/13.02, allocations: 18.68 MB / 4.078 GB, free: 20.76 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006886/13.03, allocations: 1.706 MB / 4.08 GB, free: 20.62 MB / 490.7 MB Notification: Performance of pre-optimization done (n=169): time 8.616e-06/13.03, allocations: 0 / 4.08 GB, free: 20.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=185): time 0.03936/13.07, allocations: 9.016 MB / 4.089 GB, free: 19.49 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001817/13.07, allocations: 269.5 kB / 4.089 GB, free: 19.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002847/13.07, allocations: 1.527 MB / 4.09 GB, free: 19.01 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005584/13.07, allocations: 59.64 kB / 4.09 GB, free: 18.98 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001021/13.07, allocations: 0.979 MB / 4.091 GB, free: 18.57 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008559/13.07, allocations: 0.6244 MB / 4.092 GB, free: 18.18 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002117/13.07, allocations: 40.03 kB / 4.092 GB, free: 18.18 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002265/13.07, allocations: 387.9 kB / 4.092 GB, free: 17.87 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003417/13.08, allocations: 1.122 MB / 4.093 GB, free: 17.86 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004071/13.08, allocations: 1.632 MB / 4.095 GB, free: 17.34 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004216/13.08, allocations: 1.373 MB / 4.096 GB, free: 17.23 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.791e-05/13.08, allocations: 3.906 kB / 4.096 GB, free: 17.23 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.01065/13.09, allocations: 3.327 MB / 4.1 GB, free: 16.93 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003903/13.09, allocations: 0.5131 MB / 4.1 GB, free: 16.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.531e-05/13.09, allocations: 13.28 kB / 4.1 GB, free: 16.32 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001458/13.1, allocations: 248.7 kB / 4.1 GB, free: 16.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004482/13.1, allocations: 0.5317 MB / 4.101 GB, free: 16.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002277/13.1, allocations: 2.431 MB / 4.103 GB, free: 14.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004841/13.11, allocations: 309.5 kB / 4.104 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008022/13.11, allocations: 114 kB / 4.104 GB, free: 14.16 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/13.11, allocations: 3.344 kB / 4.104 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01056/13.12, allocations: 3.06 MB / 4.107 GB, free: 14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.727e-05/13.12, allocations: 14.69 kB / 4.107 GB, free: 14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/13.12, allocations: 244.8 kB / 4.107 GB, free: 13.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004355/13.13, allocations: 0.5282 MB / 4.107 GB, free: 13.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002245/13.13, allocations: 2.436 MB / 4.11 GB, free: 11.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004602/13.13, allocations: 307 kB / 4.11 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007225/13.13, allocations: 105.1 kB / 4.11 GB, free: 11.84 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * 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.002498/13.14, allocations: 0.7558 MB / 4.111 GB, free: 11.58 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006966/13.14, allocations: 204.5 kB / 4.111 GB, free: 11.48 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01721/13.15, allocations: 7.565 MB / 4.119 GB, free: 10.68 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-05/13.15, allocations: 90.66 kB / 4.119 GB, free: 10.68 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/13.15, allocations: 0 / 4.119 GB, free: 10.68 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01335/13.17, allocations: 6.581 MB / 4.125 GB, free: 9.758 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02747/13.19, allocations: 12.19 MB / 4.137 GB, free: 6.059 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.243e-05/13.19, allocations: 6.219 kB / 4.137 GB, free: 6.059 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003317/13.2, allocations: 439.7 kB / 4.137 GB, free: 6.035 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002295/13.2, allocations: 366.5 kB / 4.138 GB, free: 5.922 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005992/13.2, allocations: 67.95 kB / 4.138 GB, free: 5.891 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002213/13.2, allocations: 2.532 MB / 4.14 GB, free: 3.617 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/13.2, allocations: 7.562 kB / 4.14 GB, free: 3.617 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01713/13.22, allocations: 7.388 MB / 4.148 GB, free: 280 kB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002611/13.22, allocations: 0.736 MB / 4.148 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008682/13.22, allocations: 62.89 kB / 4.148 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003459/13.23, allocations: 223.8 kB / 4.149 GB, free: 15.58 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006127/13.23, allocations: 171.9 kB / 4.149 GB, free: 15.47 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003107/13.23, allocations: 81.86 kB / 4.149 GB, free: 15.4 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002825/13.23, allocations: 1.127 MB / 4.15 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.12e-07/13.23, allocations: 4 kB / 4.15 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0138/13.25, allocations: 2.626 MB / 4.152 GB, free: 11.87 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase) * 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 (212): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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 Backend phase and start with SimCode phase: time 0.01533/13.26, allocations: 2.713 MB / 4.155 GB, free: 9.812 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01662/13.28, allocations: 5.246 MB / 4.16 GB, free: 5.141 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.469e-05/13.28, allocations: 4 kB / 4.16 GB, free: 5.137 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007859/13.29, allocations: 2.695 MB / 4.163 GB, free: 2.711 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009595/13.29, allocations: 1.006 MB / 4.164 GB, free: 1.988 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6449/13.94, allocations: 81.34 MB / 4.243 GB, free: 49.71 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003906/13.94, allocations: 2.285 MB / 4.245 GB, free: 48.91 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01084/13.95, allocations: 2.365 MB / 4.248 GB, free: 48.83 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001931/13.96, allocations: 208.7 kB / 4.248 GB, free: 48.82 MB / 0.4948 GB Notification: Performance of SimCode: time 3.927e-06/13.96, allocations: 0 / 4.248 GB, free: 48.82 MB / 0.4948 GB Notification: Performance of Templates: time 0.2718/14.23, allocations: 85.36 MB / 4.331 GB, free: 15.83 MB / 0.4948 GB