Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.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.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002616/0.002621, 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.263/3.263, allocations: 341.5 MB / 358.2 MB, free: 28.73 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003603/0.003603, allocations: 208.8 kB / 397.8 MB, free: 6.152 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4897/0.4897, allocations: 76.11 MB / 0.5014 GB, free: 0.832 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007477/0.000748, allocations: 12 kB / 0.5592 GB, free: 60.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1226, allocations: 48.71 MB / 0.6067 GB, free: 11.55 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.735/7.858, allocations: 2.548 GB / 3.154 GB, free: 39.48 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000353/7.859, allocations: 83.39 kB / 3.154 GB, free: 39.44 MB / 442.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+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 5.216/13.07, allocations: 0.747 GB / 3.901 GB, free: 30.88 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.585e-06/13.08, allocations: 2.969 kB / 3.901 GB, free: 30.88 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003197/13.08, allocations: 65.73 kB / 3.901 GB, free: 30.88 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: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01993/13.1, allocations: 4.02 MB / 3.905 GB, free: 29.14 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/13.1, allocations: 10.06 kB / 3.905 GB, free: 29.14 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009106/13.1, allocations: 0.8201 MB / 3.906 GB, free: 29.01 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03948/13.14, allocations: 13.28 MB / 3.919 GB, free: 28.47 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002913/13.14, allocations: 183.2 kB / 3.919 GB, free: 28.46 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008892/13.15, allocations: 204.2 kB / 3.919 GB, free: 28.46 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01246/13.16, allocations: 3.582 MB / 3.923 GB, free: 27.94 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-05/13.16, allocations: 12.98 kB / 3.923 GB, free: 27.93 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004458/13.16, allocations: 86.89 kB / 3.923 GB, free: 27.93 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003084/13.16, allocations: 168.3 kB / 3.923 GB, free: 27.93 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0127/13.17, allocations: 3.285 MB / 3.926 GB, free: 27.91 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.02982/13.2, allocations: 15 MB / 3.941 GB, free: 18.9 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008799/13.21, allocations: 2.302 MB / 3.943 GB, free: 18.86 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003418/13.21, allocations: 1.135 MB / 3.944 GB, free: 18.85 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05793/13.27, allocations: 18.8 MB / 3.963 GB, free: 23.1 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006766/13.28, allocations: 1.637 MB / 3.964 GB, free: 23.01 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 5.711e-06/13.28, allocations: 0 / 3.964 GB, free: 23.01 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.03223/13.31, allocations: 8.089 MB / 3.972 GB, free: 22.09 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001786/13.31, allocations: 277.3 kB / 3.973 GB, free: 21.78 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003286/13.31, allocations: 1.582 MB / 3.974 GB, free: 21.59 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005579/13.31, allocations: 60.62 kB / 3.974 GB, free: 21.56 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001106/13.32, allocations: 0.9832 MB / 3.975 GB, free: 21.15 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009909/13.32, allocations: 0.5799 MB / 3.976 GB, free: 20.78 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000273/13.32, allocations: 40.62 kB / 3.976 GB, free: 20.78 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002391/13.32, allocations: 391.5 kB / 3.976 GB, free: 20.47 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003503/13.32, allocations: 1.146 MB / 3.977 GB, free: 20.46 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004114/13.33, allocations: 1.651 MB / 3.979 GB, free: 19.91 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00422/13.33, allocations: 1.371 MB / 3.98 GB, free: 19.86 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.151e-05/13.33, allocations: 8.531 kB / 3.98 GB, free: 19.86 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01272/13.34, allocations: 3.944 MB / 3.984 GB, free: 19.64 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000404/13.34, allocations: 0.505 MB / 3.985 GB, free: 19.06 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.766e-05/13.34, allocations: 19.41 kB / 3.985 GB, free: 19.06 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02455/13.37, allocations: 2.916 MB / 3.987 GB, free: 19.04 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00231/13.37, allocations: 321.5 kB / 3.988 GB, free: 19.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009736/13.38, allocations: 3.505 MB / 3.991 GB, free: 18.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004043/13.38, allocations: 261.7 kB / 3.991 GB, free: 18.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004792/13.38, allocations: 103.3 kB / 3.991 GB, free: 18.45 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/13.38, allocations: 3.156 kB / 3.991 GB, free: 18.45 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01193/13.4, allocations: 3.54 MB / 3.995 GB, free: 18.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.614e-05/13.4, allocations: 18.64 kB / 3.995 GB, free: 18.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01259/13.41, allocations: 1.764 MB / 3.997 GB, free: 18.28 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002754/13.41, allocations: 363 kB / 3.997 GB, free: 18.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007273/13.42, allocations: 2.748 MB / 4 GB, free: 17.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003921/13.42, allocations: 262.3 kB / 4 GB, free: 17.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006695/13.42, allocations: 101.5 kB / 4 GB, free: 17.68 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 22 (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,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.002538/13.43, allocations: 0.7158 MB / 4.001 GB, free: 17.45 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007229/13.43, allocations: 205 kB / 4.001 GB, free: 17.34 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01745/13.44, allocations: 7.771 MB / 4.009 GB, free: 16.53 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001044/13.44, allocations: 91.33 kB / 4.009 GB, free: 16.53 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/13.44, allocations: 0 / 4.009 GB, free: 16.53 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01396/13.46, allocations: 6.69 MB / 4.015 GB, free: 15.68 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02348/13.48, allocations: 10.9 MB / 4.026 GB, free: 14.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.858e-05/13.48, allocations: 0 / 4.026 GB, free: 14.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003369/13.49, allocations: 401.6 kB / 4.026 GB, free: 14.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002328/13.49, allocations: 382 kB / 4.027 GB, free: 14.85 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005595/13.49, allocations: 64.2 kB / 4.027 GB, free: 14.85 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002155/13.49, allocations: 2.579 MB / 4.029 GB, free: 12.77 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/13.49, allocations: 0 / 4.029 GB, free: 12.77 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01675/13.51, allocations: 7.222 MB / 4.036 GB, free: 9.73 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002358/13.51, allocations: 0.7387 MB / 4.037 GB, free: 9.27 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009295/13.51, allocations: 46.3 kB / 4.037 GB, free: 9.242 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003384/13.51, allocations: 201.3 kB / 4.037 GB, free: 9.191 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006583/13.51, allocations: 144.8 kB / 4.037 GB, free: 9.176 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002828/13.52, allocations: 69.64 kB / 4.037 GB, free: 9.164 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002876/13.52, allocations: 1.182 MB / 4.039 GB, free: 8.707 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.153e-06/13.52, allocations: 0 / 4.039 GB, free: 8.707 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01332/13.53, allocations: 2.633 MB / 4.041 GB, free: 8.164 MB / 490.7 MB 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: 53 ($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,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,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.01551/13.55, allocations: 2.645 MB / 4.044 GB, free: 7.441 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01668/13.56, allocations: 5.334 MB / 4.049 GB, free: 4.559 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/13.56, allocations: 0 / 4.049 GB, free: 4.559 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006393/13.57, allocations: 2.414 MB / 4.051 GB, free: 2.414 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008722/13.58, allocations: 0.9063 MB / 4.052 GB, free: 1.754 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6034/14.18, allocations: 81.64 MB / 4.132 GB, free: 54.54 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002655/14.19, allocations: 2.3 MB / 4.134 GB, free: 53.74 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005738/14.19, allocations: 1.724 MB / 4.136 GB, free: 53.66 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/14.19, allocations: 168.5 kB / 4.136 GB, free: 53.66 MB / 0.4948 GB Notification: Performance of SimCode: time 1.453e-06/14.19, allocations: 0 / 4.136 GB, free: 53.66 MB / 0.4948 GB Notification: Performance of Templates: time 0.2008/14.39, allocations: 92.45 MB / 4.226 GB, free: 34.97 MB / 0.4948 GB