Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,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.SeriesPipes12") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002724/0.002728, allocations: 360.6 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.121/4.121, allocations: 388.9 MB / 405.6 MB, free: 9.594 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.003416/0.003416, allocations: 240.3 kB / 451 MB, free: 145 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.5056/0.5056, allocations: 80.02 MB / 0.5627 GB, free: 19.77 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000754/0.0007542, allocations: 19.98 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1324, allocations: 54.86 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.32/8.452, allocations: 2.658 GB / 3.338 GB, free: 105.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/8.453, allocations: 86.75 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.276/12.73, allocations: 0.7611 GB / 4.099 GB, free: 37.45 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.246e-06/12.73, allocations: 4.547 kB / 4.099 GB, free: 37.45 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003526/12.73, allocations: 68.45 kB / 4.1 GB, free: 37.44 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.02049/12.75, allocations: 4.137 MB / 4.104 GB, free: 35.57 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/12.75, allocations: 10.25 kB / 4.104 GB, free: 35.57 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00937/12.76, allocations: 0.8391 MB / 4.104 GB, free: 35.44 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04237/12.8, allocations: 13.52 MB / 4.118 GB, free: 34.88 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003704/12.8, allocations: 180.2 kB / 4.118 GB, free: 34.88 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001013/12.8, allocations: 202.6 kB / 4.118 GB, free: 34.87 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01279/12.82, allocations: 3.6 MB / 4.121 GB, free: 34.32 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.474e-05/12.82, allocations: 10.38 kB / 4.121 GB, free: 34.31 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004224/12.82, allocations: 86.42 kB / 4.122 GB, free: 34.31 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003065/12.82, allocations: 160.8 kB / 4.122 GB, free: 34.31 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01331/12.83, allocations: 3.295 MB / 4.125 GB, free: 34.29 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.03012/12.86, allocations: 15.02 MB / 4.14 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00904/12.87, allocations: 2.309 MB / 4.142 GB, free: 25.24 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003531/12.87, allocations: 1.142 MB / 4.143 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05885/12.93, allocations: 18.8 MB / 4.161 GB, free: 29.48 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006797/12.94, allocations: 1.646 MB / 4.163 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 6.622e-06/12.94, allocations: 2.906 kB / 4.163 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.03258/12.97, allocations: 8.096 MB / 4.171 GB, free: 28.46 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001847/12.97, allocations: 290.9 kB / 4.171 GB, free: 28.15 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003127/12.97, allocations: 1.587 MB / 4.173 GB, free: 27.96 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005767/12.97, allocations: 58.05 kB / 4.173 GB, free: 27.93 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001048/12.98, allocations: 0.9802 MB / 4.174 GB, free: 27.52 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009982/12.98, allocations: 0.5848 MB / 4.174 GB, free: 27.14 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002324/12.98, allocations: 40.66 kB / 4.174 GB, free: 27.14 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002403/12.98, allocations: 389.6 kB / 4.175 GB, free: 26.84 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003911/12.98, allocations: 1.148 MB / 4.176 GB, free: 26.83 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006889/12.99, allocations: 1.654 MB / 4.177 GB, free: 26.28 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006855/13, allocations: 1.384 MB / 4.179 GB, free: 26.23 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.832e-05/13, allocations: 3.5 kB / 4.179 GB, free: 26.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01307/13.01, allocations: 3.938 MB / 4.183 GB, free: 26.01 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003955/13.01, allocations: 0.5111 MB / 4.183 GB, free: 25.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.435e-05/13.01, allocations: 18.02 kB / 4.183 GB, free: 25.42 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02437/13.03, allocations: 2.925 MB / 4.186 GB, free: 25.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002259/13.04, allocations: 312 kB / 4.186 GB, free: 25.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009291/13.04, allocations: 3.502 MB / 4.19 GB, free: 24.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003935/13.05, allocations: 256.8 kB / 4.19 GB, free: 24.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005776/13.05, allocations: 105 kB / 4.19 GB, free: 24.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/13.05, allocations: 14.41 kB / 4.19 GB, free: 24.8 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01086/13.06, allocations: 3.53 MB / 4.193 GB, free: 24.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.147e-05/13.06, allocations: 15.75 kB / 4.194 GB, free: 24.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01194/13.07, allocations: 1.766 MB / 4.195 GB, free: 24.63 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00262/13.08, allocations: 357 kB / 4.196 GB, free: 24.63 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006786/13.08, allocations: 2.756 MB / 4.198 GB, free: 24.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003709/13.09, allocations: 264.7 kB / 4.199 GB, free: 24.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004575/13.09, allocations: 106.2 kB / 4.199 GB, free: 24.03 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 (162): * Single equations (assignments): 158 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.002196/13.09, allocations: 0.7224 MB / 4.199 GB, free: 23.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001758/13.09, allocations: 204.1 kB / 4.2 GB, free: 23.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01689/13.11, allocations: 7.765 MB / 4.207 GB, free: 22.88 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/13.11, allocations: 89.25 kB / 4.207 GB, free: 22.88 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/13.11, allocations: 0 / 4.207 GB, free: 22.88 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01329/13.12, allocations: 6.672 MB / 4.214 GB, free: 22.04 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0256/13.15, allocations: 10.91 MB / 4.224 GB, free: 19.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.129e-05/13.15, allocations: 0.5625 kB / 4.224 GB, free: 19.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005259/13.15, allocations: 398.9 kB / 4.225 GB, free: 19.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003899/13.16, allocations: 378.7 kB / 4.225 GB, free: 19.65 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007398/13.16, allocations: 68.75 kB / 4.225 GB, free: 19.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003456/13.16, allocations: 2.572 MB / 4.228 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/13.16, allocations: 0 / 4.228 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02613/13.19, allocations: 7.228 MB / 4.235 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003396/13.19, allocations: 0.7447 MB / 4.235 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001346/13.19, allocations: 56.66 kB / 4.236 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005075/13.2, allocations: 200.9 kB / 4.236 GB, free: 13.65 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009391/13.2, allocations: 145.2 kB / 4.236 GB, free: 13.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004326/13.2, allocations: 70.23 kB / 4.236 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0044/13.2, allocations: 1.175 MB / 4.237 GB, free: 13.17 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.453e-06/13.2, allocations: 0 / 4.237 GB, free: 13.17 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01769/13.22, allocations: 2.64 MB / 4.24 GB, free: 12.63 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.01998/13.24, allocations: 2.666 MB / 4.242 GB, free: 11.65 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01741/13.26, allocations: 5.38 MB / 4.247 GB, free: 6.988 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/13.26, allocations: 0 / 4.247 GB, free: 6.988 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008942/13.27, allocations: 2.447 MB / 4.25 GB, free: 4.816 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01258/13.28, allocations: 0.8938 MB / 4.251 GB, free: 4.152 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6886/13.97, allocations: 82.42 MB / 4.331 GB, free: 61.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002766/13.97, allocations: 2.313 MB / 4.334 GB, free: 60.54 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005756/13.98, allocations: 1.721 MB / 4.335 GB, free: 60.52 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/13.98, allocations: 175.6 kB / 4.335 GB, free: 60.51 MB / 0.5417 GB Notification: Performance of SimCode: time 1.993e-06/13.98, allocations: 3.656 kB / 4.335 GB, free: 60.51 MB / 0.5417 GB Notification: Performance of Templates: time 0.2215/14.2, allocations: 92.86 MB / 4.426 GB, free: 49.29 MB / 0.5417 GB