Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00282/0.002826, allocations: 361.2 kB / 15.95 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.048/4.048, allocations: 388.9 MB / 405.6 MB, free: 10.24 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003636/0.003636, allocations: 235.3 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5875/0.5875, allocations: 80.02 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004649/0.0004651, allocations: 20 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09995/0.1004, allocations: 54.87 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.402/8.502, allocations: 2.658 GB / 3.338 GB, free: 105.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003108/8.503, allocations: 85.06 kB / 3.338 GB, free: 105.2 MB / 490.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 4.389/12.89, allocations: 0.7599 GB / 4.098 GB, free: 37.2 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.196e-06/12.89, allocations: 3.438 kB / 4.098 GB, free: 37.2 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002968/12.89, allocations: 61.56 kB / 4.098 GB, free: 37.19 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01975/12.91, allocations: 4.133 MB / 4.102 GB, free: 35.36 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/12.91, allocations: 9.531 kB / 4.102 GB, free: 35.36 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009188/12.92, allocations: 0.8437 MB / 4.103 GB, free: 35.22 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04155/12.96, allocations: 13.53 MB / 4.116 GB, free: 34.66 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003517/12.96, allocations: 179.8 kB / 4.116 GB, free: 34.65 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001048/12.96, allocations: 197.9 kB / 4.117 GB, free: 34.65 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01287/12.98, allocations: 3.601 MB / 4.12 GB, free: 34.1 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.938e-05/12.98, allocations: 9.094 kB / 4.12 GB, free: 34.1 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003988/12.98, allocations: 85.89 kB / 4.12 GB, free: 34.1 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002908/12.98, allocations: 155.6 kB / 4.12 GB, free: 34.09 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01256/12.99, allocations: 3.291 MB / 4.124 GB, free: 34.08 MB / 0.5105 GB 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.02892/13.02, allocations: 15.04 MB / 4.138 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008812/13.03, allocations: 2.305 MB / 4.141 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003412/13.03, allocations: 1.142 MB / 4.142 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05783/13.09, allocations: 18.82 MB / 4.16 GB, free: 29.27 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006929/13.1, allocations: 1.643 MB / 4.162 GB, free: 29.17 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 5.971e-06/13.1, allocations: 0 / 4.162 GB, free: 29.17 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.04042/13.14, allocations: 8.776 MB / 4.17 GB, free: 28.25 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001813/13.14, allocations: 284.7 kB / 4.17 GB, free: 27.93 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003307/13.14, allocations: 1.597 MB / 4.172 GB, free: 27.74 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000591/13.14, allocations: 55.02 kB / 4.172 GB, free: 27.71 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001177/13.14, allocations: 0.9801 MB / 4.173 GB, free: 27.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001005/13.14, allocations: 0.5862 MB / 4.174 GB, free: 26.93 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002583/13.14, allocations: 43.41 kB / 4.174 GB, free: 26.93 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000228/13.14, allocations: 385.6 kB / 4.174 GB, free: 26.62 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003678/13.15, allocations: 1.15 MB / 4.175 GB, free: 26.62 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0045/13.15, allocations: 1.652 MB / 4.177 GB, free: 26.07 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004631/13.16, allocations: 1.379 MB / 4.178 GB, free: 26.01 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.892e-05/13.16, allocations: 3.156 kB / 4.178 GB, free: 26.01 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01169/13.17, allocations: 3.326 MB / 4.181 GB, free: 25.77 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000455/13.17, allocations: 0.5027 MB / 4.182 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.353e-05/13.17, allocations: 16.52 kB / 4.182 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001524/13.17, allocations: 277.8 kB / 4.182 GB, free: 25.15 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004474/13.18, allocations: 0.5181 MB / 4.183 GB, free: 25.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002429/13.18, allocations: 2.498 MB / 4.185 GB, free: 23.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004237/13.18, allocations: 263.2 kB / 4.185 GB, free: 23.06 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007977/13.18, allocations: 110.4 kB / 4.185 GB, free: 23.06 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/13.18, allocations: 3.969 kB / 4.185 GB, free: 23.06 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01063/13.19, allocations: 3.059 MB / 4.188 GB, free: 22.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.348e-05/13.19, allocations: 15.83 kB / 4.188 GB, free: 22.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001476/13.19, allocations: 275.9 kB / 4.189 GB, free: 22.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004289/13.2, allocations: 0.5106 MB / 4.189 GB, free: 22.92 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002282/13.2, allocations: 2.504 MB / 4.192 GB, free: 20.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003869/13.21, allocations: 257.6 kB / 4.192 GB, free: 20.81 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007064/13.21, allocations: 106.2 kB / 4.192 GB, free: 20.81 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (251): * Single equations (assignments): 244 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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.002347/13.21, allocations: 0.7202 MB / 4.193 GB, free: 20.58 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000663/13.21, allocations: 202.6 kB / 4.193 GB, free: 20.48 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0175/13.23, allocations: 7.776 MB / 4.2 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001124/13.23, allocations: 90.92 kB / 4.201 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/13.23, allocations: 0 / 4.201 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01442/13.24, allocations: 6.673 MB / 4.207 GB, free: 18.82 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02401/13.27, allocations: 10.91 MB / 4.218 GB, free: 18.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-05/13.27, allocations: 0 / 4.218 GB, free: 18.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003402/13.27, allocations: 400.8 kB / 4.218 GB, free: 18.04 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00237/13.27, allocations: 379 kB / 4.218 GB, free: 17.99 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005442/13.27, allocations: 68.94 kB / 4.219 GB, free: 17.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002176/13.27, allocations: 2.573 MB / 4.221 GB, free: 15.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/13.27, allocations: 0 / 4.221 GB, free: 15.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01687/13.29, allocations: 7.224 MB / 4.228 GB, free: 13.44 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002392/13.29, allocations: 0.7416 MB / 4.229 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008543/13.29, allocations: 62.77 kB / 4.229 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003276/13.3, allocations: 192.9 kB / 4.229 GB, free: 12.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007292/13.3, allocations: 148.4 kB / 4.229 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002863/13.3, allocations: 72.36 kB / 4.229 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002845/13.3, allocations: 1.169 MB / 4.23 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.72e-07/13.3, allocations: 3.938 kB / 4.23 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01287/13.31, allocations: 2.647 MB / 4.233 GB, free: 11.87 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse27.region3boundary,$cse28.region3boundary,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * 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.01487/13.33, allocations: 2.661 MB / 4.236 GB, free: 11.15 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01508/13.34, allocations: 5.281 MB / 4.241 GB, free: 9.277 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/13.34, allocations: 4.188 kB / 4.241 GB, free: 9.273 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005833/13.35, allocations: 2.442 MB / 4.243 GB, free: 8.234 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008601/13.36, allocations: 0.9009 MB / 4.244 GB, free: 7.992 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7177/14.08, allocations: 81.94 MB / 4.324 GB, free: 62.31 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002927/14.08, allocations: 2.306 MB / 4.326 GB, free: 61.55 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00829/14.09, allocations: 2.65 MB / 4.329 GB, free: 61.53 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001308/14.09, allocations: 193.4 kB / 4.329 GB, free: 61.52 MB / 0.5417 GB Notification: Performance of SimCode: time 1.723e-06/14.09, allocations: 2.812 kB / 4.329 GB, free: 61.52 MB / 0.5417 GB Notification: Performance of Templates: time 0.2045/14.29, allocations: 82.9 MB / 4.41 GB, free: 56.6 MB / 0.5417 GB