Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,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.SeriesPipes13") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004104/0.004104, allocations: 363.1 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.096/4.096, allocations: 388.9 MB / 405.6 MB, free: 9.586 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.003494/0.003493, allocations: 228.4 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.5298/0.5298, allocations: 80.02 MB / 0.5627 GB, free: 19.76 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007102/0.0007106, allocations: 12 kB / 0.6265 GB, free: 96.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09682/0.09758, allocations: 54.87 MB / 0.6801 GB, free: 41.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.398/8.496, allocations: 2.658 GB / 3.338 GB, free: 106.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/8.496, allocations: 84.58 kB / 3.338 GB, free: 106.1 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.575/13.07, allocations: 0.8182 GB / 4.157 GB, free: 37.54 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.956e-06/13.07, allocations: 0 / 4.157 GB, free: 37.54 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002874/13.07, allocations: 67.64 kB / 4.157 GB, free: 37.53 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.01929/13.09, allocations: 4.129 MB / 4.161 GB, free: 35.48 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/13.09, allocations: 9.719 kB / 4.161 GB, free: 35.48 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008911/13.1, allocations: 0.8486 MB / 4.161 GB, free: 35.34 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04368/13.14, allocations: 13.52 MB / 4.175 GB, free: 34.78 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003193/13.14, allocations: 177.4 kB / 4.175 GB, free: 34.78 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009508/13.14, allocations: 200.6 kB / 4.175 GB, free: 34.77 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01242/13.16, allocations: 3.603 MB / 4.179 GB, free: 34.21 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.711e-05/13.16, allocations: 14.89 kB / 4.179 GB, free: 34.21 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004113/13.16, allocations: 84.81 kB / 4.179 GB, free: 34.21 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003139/13.16, allocations: 163.6 kB / 4.179 GB, free: 34.21 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01266/13.17, allocations: 3.291 MB / 4.182 GB, free: 34.19 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.02884/13.2, allocations: 15.01 MB / 4.197 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008976/13.21, allocations: 2.307 MB / 4.199 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003351/13.21, allocations: 1.142 MB / 4.2 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05685/13.27, allocations: 18.82 MB / 4.218 GB, free: 12.81 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006833/13.28, allocations: 1.644 MB / 4.22 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.362e-06/13.28, allocations: 0 / 4.22 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.0325/13.31, allocations: 8.096 MB / 4.228 GB, free: 27.73 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001796/13.31, allocations: 285 kB / 4.228 GB, free: 27.41 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003064/13.31, allocations: 1.582 MB / 4.23 GB, free: 27.22 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005137/13.31, allocations: 55.36 kB / 4.23 GB, free: 27.19 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001015/13.31, allocations: 0.9824 MB / 4.231 GB, free: 26.78 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008522/13.31, allocations: 0.5921 MB / 4.231 GB, free: 26.41 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002181/13.31, allocations: 37.25 kB / 4.231 GB, free: 26.41 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002053/13.31, allocations: 392.3 kB / 4.232 GB, free: 26.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003442/13.32, allocations: 1.148 MB / 4.233 GB, free: 26.09 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00375/13.32, allocations: 1.656 MB / 4.234 GB, free: 25.52 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003833/13.33, allocations: 1.377 MB / 4.236 GB, free: 25.44 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.356e-05/13.33, allocations: 6.344 kB / 4.236 GB, free: 25.44 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01142/13.34, allocations: 3.944 MB / 4.24 GB, free: 24.31 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003601/13.34, allocations: 0.5098 MB / 4.24 GB, free: 23.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.197e-05/13.34, allocations: 15.69 kB / 4.24 GB, free: 23.64 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02389/13.36, allocations: 2.926 MB / 4.243 GB, free: 23.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002236/13.36, allocations: 317.6 kB / 4.243 GB, free: 23.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009798/13.37, allocations: 3.494 MB / 4.247 GB, free: 21.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004013/13.38, allocations: 252.8 kB / 4.247 GB, free: 21.58 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005574/13.38, allocations: 112.8 kB / 4.247 GB, free: 21.55 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/13.38, allocations: 3.594 kB / 4.247 GB, free: 21.55 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01114/13.39, allocations: 3.522 MB / 4.251 GB, free: 18.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.095e-05/13.39, allocations: 16 kB / 4.251 GB, free: 18.63 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01348/13.4, allocations: 1.768 MB / 4.252 GB, free: 17.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003551/13.41, allocations: 356.2 kB / 4.253 GB, free: 16.99 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009907/13.42, allocations: 2.758 MB / 4.255 GB, free: 14.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005142/13.42, allocations: 259.1 kB / 4.256 GB, free: 14.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009587/13.42, allocations: 112.9 kB / 4.256 GB, free: 14.3 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.00334/13.43, allocations: 0.718 MB / 4.256 GB, free: 13.64 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009878/13.43, allocations: 200.8 kB / 4.257 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02877/13.46, allocations: 7.774 MB / 4.264 GB, free: 6.547 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002364/13.46, allocations: 92.52 kB / 4.264 GB, free: 6.492 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/13.46, allocations: 0 / 4.264 GB, free: 6.492 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01832/13.47, allocations: 6.668 MB / 4.271 GB, free: 352 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5279/14, allocations: 10.96 MB / 4.281 GB, free: 51.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.708e-05/14, allocations: 0 / 4.281 GB, free: 51.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004574/14.01, allocations: 403 kB / 4.282 GB, free: 51.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003394/14.01, allocations: 382.1 kB / 4.282 GB, free: 51.65 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006683/14.01, allocations: 64.42 kB / 4.282 GB, free: 51.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002595/14.01, allocations: 2.574 MB / 4.285 GB, free: 49.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/14.01, allocations: 3.578 kB / 4.285 GB, free: 49.59 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02626/14.04, allocations: 7.222 MB / 4.292 GB, free: 49.14 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003177/14.04, allocations: 0.7399 MB / 4.293 GB, free: 49.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001243/14.05, allocations: 49.23 kB / 4.293 GB, free: 49.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005013/14.05, allocations: 209.2 kB / 4.293 GB, free: 49.05 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007695/14.05, allocations: 148.9 kB / 4.293 GB, free: 49.05 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003586/14.05, allocations: 66.66 kB / 4.293 GB, free: 49.05 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00411/14.06, allocations: 1.171 MB / 4.294 GB, free: 48.91 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.72e-07/14.06, allocations: 0.9844 kB / 4.294 GB, free: 48.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01758/14.07, allocations: 2.648 MB / 4.297 GB, free: 48.91 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.02066/14.09, allocations: 2.66 MB / 4.299 GB, free: 48.77 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02492/14.12, allocations: 5.38 MB / 4.305 GB, free: 48.47 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-05/14.12, allocations: 3.594 kB / 4.305 GB, free: 48.47 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008928/14.13, allocations: 2.447 MB / 4.307 GB, free: 48.39 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01336/14.14, allocations: 0.9026 MB / 4.308 GB, free: 48.38 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.215/14.36, allocations: 81.9 MB / 4.388 GB, free: 41.48 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002714/14.36, allocations: 2.311 MB / 4.39 GB, free: 40.67 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005786/14.37, allocations: 1.721 MB / 4.392 GB, free: 40.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/14.37, allocations: 168 kB / 4.392 GB, free: 40.59 MB / 0.5261 GB Notification: Performance of SimCode: time 1.413e-06/14.37, allocations: 3.75 kB / 4.392 GB, free: 40.59 MB / 0.5261 GB Notification: Performance of Templates: time 0.6485/15.01, allocations: 92.86 MB / 4.483 GB, free: 66.92 MB / 0.5417 GB