Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.005049/0.005049, allocations: 175.9 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.267/1.267, allocations: 194.5 MB / 210.3 MB, free: 8.52 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001727/0.001727, allocations: 124.6 kB / 255.6 MB, free: 11.11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1732/0.1732, allocations: 40.01 MB / 340.8 MB, free: 11.54 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004059/0.0004059, allocations: 13.09 kB / 406.1 MB, free: 52.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.09653, allocations: 54.88 MB / 461 MB, free: 3.449 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.034/6.13, allocations: 2.658 GB / 3.108 GB, free: 4.957 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/6.131, allocations: 83.44 kB / 3.108 GB, free: 4.914 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/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 3.308/9.438, allocations: 0.7993 GB / 3.908 GB, free: 36.63 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.124e-06/9.439, allocations: 1.25 kB / 3.908 GB, free: 36.63 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002086/9.439, allocations: 63.25 kB / 3.908 GB, free: 36.63 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.01983/9.459, allocations: 4.135 MB / 3.912 GB, free: 34.83 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.869e-05/9.459, allocations: 11.53 kB / 3.912 GB, free: 34.83 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006874/9.466, allocations: 0.8374 MB / 3.913 GB, free: 34.7 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006074/9.472, allocations: 2.119 MB / 3.915 GB, free: 34.25 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000204/9.472, allocations: 179.9 kB / 3.915 GB, free: 34.25 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005276/9.472, allocations: 195.5 kB / 3.915 GB, free: 34.25 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007196/9.48, allocations: 3.576 MB / 3.919 GB, free: 33.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.518e-05/9.48, allocations: 18.83 kB / 3.919 GB, free: 33.69 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002439/9.48, allocations: 86.83 kB / 3.919 GB, free: 33.69 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002182/9.48, allocations: 158.3 kB / 3.919 GB, free: 33.69 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006618/9.487, allocations: 3.293 MB / 3.922 GB, free: 33.67 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.01726/9.504, allocations: 15.07 MB / 3.937 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004845/9.509, allocations: 2.294 MB / 3.939 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03221/9.541, allocations: 18.81 MB / 3.957 GB, free: 28.89 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004353/9.546, allocations: 1.638 MB / 3.959 GB, free: 28.79 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 4.499e-06/9.546, allocations: 0 / 3.959 GB, free: 28.79 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.02146/9.567, allocations: 8.872 MB / 3.968 GB, free: 27.76 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001645/9.567, allocations: 282.6 kB / 3.968 GB, free: 27.45 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002103/9.569, allocations: 1.418 MB / 3.969 GB, free: 27.27 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002421/9.57, allocations: 59.27 kB / 3.969 GB, free: 27.23 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007152/9.57, allocations: 0.9814 MB / 3.97 GB, free: 26.83 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004506/9.571, allocations: 0.5851 MB / 3.971 GB, free: 26.46 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/9.571, allocations: 44.58 kB / 3.971 GB, free: 26.46 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001551/9.571, allocations: 390.6 kB / 3.971 GB, free: 26.15 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001846/9.573, allocations: 1.154 MB / 3.972 GB, free: 26.14 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002077/9.575, allocations: 1.639 MB / 3.974 GB, free: 25.59 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002093/9.577, allocations: 1.379 MB / 3.975 GB, free: 25.54 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.876e-06/9.577, allocations: 7.125 kB / 3.975 GB, free: 25.54 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.005703/9.583, allocations: 3.316 MB / 3.979 GB, free: 25.29 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002058/9.585, allocations: 5.331 MB / 3.984 GB, free: 19.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.582e-05/9.585, allocations: 13.03 kB / 3.984 GB, free: 19.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00092/9.586, allocations: 276.7 kB / 3.984 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002115/9.588, allocations: 0.5189 MB / 3.985 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001579/9.59, allocations: 2.494 MB / 3.987 GB, free: 17.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002546/9.592, allocations: 259.8 kB / 3.987 GB, free: 17.56 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002371/9.593, allocations: 106.6 kB / 3.987 GB, free: 17.56 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/9.593, allocations: 11.52 kB / 3.987 GB, free: 17.56 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004982/9.598, allocations: 3.061 MB / 3.99 GB, free: 17.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.198e-05/9.598, allocations: 15.81 kB / 3.99 GB, free: 17.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008278/9.598, allocations: 274.3 kB / 3.991 GB, free: 17.41 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001912/9.6, allocations: 0.5101 MB / 3.991 GB, free: 17.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001744/9.602, allocations: 2.505 MB / 3.994 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002577/9.605, allocations: 260.3 kB / 3.994 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000221/9.605, allocations: 104.1 kB / 3.994 GB, free: 15.33 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.001779/9.607, allocations: 0.7242 MB / 3.995 GB, free: 15.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004491/9.607, allocations: 200.6 kB / 3.995 GB, free: 15 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009154/9.616, allocations: 7.769 MB / 4.002 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.009e-05/9.616, allocations: 92.52 kB / 4.003 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/9.616, allocations: 3.375 kB / 4.003 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007715/9.624, allocations: 6.666 MB / 4.009 GB, free: 13.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01555/9.64, allocations: 10.92 MB / 4.02 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.225e-05/9.64, allocations: 0 / 4.02 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001648/9.642, allocations: 400.4 kB / 4.02 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001398/9.643, allocations: 380.2 kB / 4.02 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002361/9.643, allocations: 66.31 kB / 4.021 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00175/9.645, allocations: 2.579 MB / 4.023 GB, free: 10.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/9.645, allocations: 3.469 kB / 4.023 GB, free: 10.53 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009568/9.655, allocations: 7.23 MB / 4.03 GB, free: 9.891 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002063/9.657, allocations: 0.7453 MB / 4.031 GB, free: 9.555 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005321/9.657, allocations: 51.67 kB / 4.031 GB, free: 9.555 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/9.659, allocations: 193.2 kB / 4.031 GB, free: 9.547 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002759/9.659, allocations: 144.6 kB / 4.031 GB, free: 9.547 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001455/9.659, allocations: 68.09 kB / 4.031 GB, free: 9.547 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00179/9.661, allocations: 1.188 MB / 4.032 GB, free: 9.402 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.41e-07/9.661, allocations: 0 / 4.032 GB, free: 9.402 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01138/9.672, allocations: 2.774 MB / 4.035 GB, free: 9 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.01385/9.686, allocations: 2.812 MB / 4.038 GB, free: 8.41 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00984/9.696, allocations: 5.283 MB / 4.043 GB, free: 6.684 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/9.696, allocations: 4.812 kB / 4.043 GB, free: 6.684 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00335/9.7, allocations: 2.444 MB / 4.045 GB, free: 5.645 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005055/9.705, allocations: 0.8745 MB / 4.046 GB, free: 5.445 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5352/10.24, allocations: 131.3 MB / 4.175 GB, free: 55.05 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001621/10.24, allocations: 2.304 MB / 4.177 GB, free: 54.24 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004774/10.25, allocations: 2.646 MB / 4.179 GB, free: 54.15 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006056/10.25, allocations: 192.7 kB / 4.18 GB, free: 54.15 MB / 0.5417 GB Notification: Performance of SimCode: time 2.325e-06/10.25, allocations: 0 / 4.18 GB, free: 54.15 MB / 0.5417 GB Notification: Performance of Templates: time 0.1154/10.36, allocations: 81.81 MB / 4.259 GB, free: 29.2 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1)