Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009922/0.0009921, allocations: 182.6 kB / 7.655 MB, free: 1.426 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.488/1.488, allocations: 194.4 MB / 202.4 MB, free: 12.96 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.001769/0.001769, allocations: 108.1 kB / 247.4 MB, free: 15.96 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.1751/0.1751, allocations: 39.95 MB / 332.2 MB, free: 0.6367 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.783e-05/1.777e-05, allocations: 0 / 393.3 MB, free: 3.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2602, allocations: 54.87 MB / 448.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.634/6.895, allocations: 2.657 GB / 3.095 GB, free: 117.3 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/6.895, allocations: 79.95 kB / 3.095 GB, free: 117.3 MB / 474.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.705/10.6, allocations: 0.8532 GB / 3.948 GB, free: 1.328 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.924e-06/10.6, allocations: 3.938 kB / 3.948 GB, free: 1.324 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002429/10.6, allocations: 63.44 kB / 3.949 GB, free: 1.266 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.4736/11.07, allocations: 3.836 MB / 3.952 GB, free: 37.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.642e-05/11.07, allocations: 9.406 kB / 3.952 GB, free: 37.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007142/11.08, allocations: 0.8373 MB / 3.953 GB, free: 37.07 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006721/11.09, allocations: 2.101 MB / 3.955 GB, free: 36.72 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/11.09, allocations: 88.22 kB / 3.955 GB, free: 36.72 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004607/11.09, allocations: 116.1 kB / 3.955 GB, free: 36.71 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004438/11.09, allocations: 2.534 MB / 3.958 GB, free: 36.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005862/11.1, allocations: 2.782 MB / 3.961 GB, free: 36.16 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.538e-05/11.1, allocations: 16.42 kB / 3.961 GB, free: 36.16 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002996/11.1, allocations: 7.875 kB / 3.961 GB, free: 36.16 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002695/11.1, allocations: 157.6 kB / 3.961 GB, free: 36.16 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.1763/11.28, allocations: 78.62 MB / 4.038 GB, free: 27.78 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003176/11.28, allocations: 1.637 MB / 4.039 GB, free: 27.74 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001691/11.28, allocations: 0.9739 MB / 4.04 GB, free: 27.73 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0369/11.32, allocations: 17.46 MB / 4.057 GB, free: 16.28 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002913/11.32, allocations: 1.164 MB / 4.058 GB, free: 16.15 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=147): time 8.476e-06/11.32, allocations: 0 / 4.058 GB, free: 16.15 MB / 0.5417 GB Notification: Performance of matching and sorting (n=163): time 0.02927/11.35, allocations: 7.973 MB / 4.066 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002942/11.35, allocations: 383.3 kB / 4.066 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00283/11.35, allocations: 1.133 MB / 4.068 GB, free: 13.83 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005676/11.35, allocations: 28.77 kB / 4.068 GB, free: 13.8 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001258/11.36, allocations: 1.013 MB / 4.069 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009988/11.36, allocations: 0.5374 MB / 4.069 GB, free: 12.99 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003931/11.36, allocations: 4 kB / 4.069 GB, free: 12.98 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0003104/11.36, allocations: 386.9 kB / 4.069 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001972/11.36, allocations: 1.012 MB / 4.07 GB, free: 12.67 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002199/11.36, allocations: 1.498 MB / 4.072 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01371/11.38, allocations: 3.314 MB / 4.075 GB, free: 12.04 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.311e-05/11.38, allocations: 3.781 kB / 4.075 GB, free: 12.04 MB / 0.5417 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02154/11.4, allocations: 5.533 MB / 4.081 GB, free: 11.81 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.003491/11.4, allocations: 5.262 MB / 4.086 GB, free: 22.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.678e-05/11.4, allocations: 13.19 kB / 4.086 GB, free: 22.38 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00783/11.41, allocations: 2.024 MB / 4.088 GB, free: 22.33 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001557/11.41, allocations: 314.6 kB / 4.088 GB, free: 22.33 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008363/11.42, allocations: 3.667 MB / 4.092 GB, free: 21.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003872/11.42, allocations: 253.6 kB / 4.092 GB, free: 21.71 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007256/11.42, allocations: 103.5 kB / 4.092 GB, free: 21.71 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/11.42, allocations: 3.188 kB / 4.092 GB, free: 21.71 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02033/11.44, allocations: 4.942 MB / 4.097 GB, free: 21.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.467e-05/11.44, allocations: 21.05 kB / 4.097 GB, free: 21.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005632/11.45, allocations: 1.539 MB / 4.098 GB, free: 21.55 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001858/11.45, allocations: 359.8 kB / 4.099 GB, free: 21.54 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004466/11.46, allocations: 2.684 MB / 4.101 GB, free: 20.98 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003946/11.46, allocations: 237.2 kB / 4.101 GB, free: 20.95 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008565/11.46, allocations: 104.8 kB / 4.102 GB, free: 20.95 MB / 0.5573 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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete 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.001765/11.46, allocations: 189.2 kB / 4.102 GB, free: 20.8 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001295/11.46, allocations: 186.9 kB / 4.102 GB, free: 20.71 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01246/11.48, allocations: 6.823 MB / 4.109 GB, free: 20.06 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.779e-05/11.48, allocations: 76.17 kB / 4.109 GB, free: 20.06 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-05/11.48, allocations: 128 / 4.109 GB, free: 20.06 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008222/11.48, allocations: 5.655 MB / 4.114 GB, free: 19.36 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01562/11.5, allocations: 9.239 MB / 4.123 GB, free: 18.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.488e-05/11.5, allocations: 6.953 kB / 4.123 GB, free: 18.79 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/11.5, allocations: 360.5 kB / 4.123 GB, free: 18.79 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009751/11.5, allocations: 337.4 kB / 4.124 GB, free: 18.74 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003052/11.5, allocations: 38.97 kB / 4.124 GB, free: 18.74 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002781/11.51, allocations: 2.694 MB / 4.126 GB, free: 16.64 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.648e-06/11.51, allocations: 0 / 4.126 GB, free: 16.64 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01062/11.52, allocations: 6.402 MB / 4.133 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002277/11.52, allocations: 0.696 MB / 4.133 GB, free: 12.89 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009647/11.52, allocations: 24.5 kB / 4.133 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002298/11.52, allocations: 156.6 kB / 4.134 GB, free: 12.77 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002688/11.52, allocations: 133.2 kB / 4.134 GB, free: 12.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001655/11.52, allocations: 61.83 kB / 4.134 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002047/11.52, allocations: 1.031 MB / 4.135 GB, free: 12.05 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.2e-07/11.52, allocations: 0 / 4.135 GB, free: 12.05 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01207/11.54, allocations: 2.633 MB / 4.137 GB, free: 9.852 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 44 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,pipe1.statesFM[2].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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 21 * 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.01464/11.55, allocations: 2.988 MB / 4.14 GB, free: 7.793 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01016/11.56, allocations: 4.767 MB / 4.145 GB, free: 5.051 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/11.56, allocations: 1.125 kB / 4.145 GB, free: 5.051 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003892/11.57, allocations: 2.172 MB / 4.147 GB, free: 3.949 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005378/11.57, allocations: 0.7782 MB / 4.148 GB, free: 3.52 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4401/12.01, allocations: 5.656 MB / 4.153 GB, free: 80.36 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002082/12.01, allocations: 2.219 MB / 4.155 GB, free: 79.59 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.004383/12.02, allocations: 1.926 MB / 4.157 GB, free: 79.57 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004435/12.02, allocations: 145.4 kB / 4.158 GB, free: 79.56 MB / 0.5573 GB Notification: Performance of SimCode: time 1.392e-06/12.02, allocations: 2.812 kB / 4.158 GB, free: 79.56 MB / 0.5573 GB Notification: Performance of Templates: time 0.1247/12.14, allocations: 81.86 MB / 4.237 GB, free: 75.8 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1)