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.001644/0.001644, allocations: 181.8 kB / 12.74 MB, free: 2.582 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.708/1.708, allocations: 194.3 MB / 207.5 MB, free: 3.453 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.001635/0.001634, allocations: 108.2 kB / 252.6 MB, free: 4.793 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2163/0.2163, allocations: 39.93 MB / 337.5 MB, free: 488 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.582e-05/3.583e-05, allocations: 0 / 400.3 MB, free: 69.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1002, allocations: 54.87 MB / 455.1 MB, free: 14.97 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.344/5.445, allocations: 2.658 GB / 3.103 GB, free: 8.59 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/5.445, allocations: 78.64 kB / 3.103 GB, free: 8.551 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.899/9.344, allocations: 0.8605 GB / 3.963 GB, free: 37.16 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.365e-06/9.344, allocations: 0 / 3.963 GB, free: 37.16 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002534/9.344, allocations: 64.53 kB / 3.963 GB, free: 37.15 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.02069/9.365, allocations: 3.852 MB / 3.967 GB, free: 35.29 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.659e-05/9.365, allocations: 11.56 kB / 3.967 GB, free: 35.29 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007586/9.373, allocations: 0.8414 MB / 3.968 GB, free: 35.16 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00764/9.381, allocations: 2.095 MB / 3.97 GB, free: 34.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003306/9.381, allocations: 176.2 kB / 3.97 GB, free: 34.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001204/9.382, allocations: 200.7 kB / 3.97 GB, free: 34.69 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008443/9.391, allocations: 3.563 MB / 3.974 GB, free: 34.14 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.222e-05/9.391, allocations: 11.47 kB / 3.974 GB, free: 34.14 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003345/9.391, allocations: 85.94 kB / 3.974 GB, free: 34.14 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002365/9.391, allocations: 160.6 kB / 3.974 GB, free: 34.13 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009017/9.4, allocations: 3.174 MB / 3.977 GB, free: 34.11 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.03059/9.431, allocations: 15.04 MB / 3.992 GB, free: 25.1 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005795/9.437, allocations: 2.211 MB / 3.994 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001931/9.439, allocations: 1.042 MB / 3.995 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04037/9.479, allocations: 18.88 MB / 4.013 GB, free: 29.26 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004536/9.484, allocations: 1.65 MB / 4.015 GB, free: 29.15 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 5.961e-06/9.484, allocations: 0 / 4.015 GB, free: 29.15 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.01648/9.5, allocations: 6.949 MB / 4.022 GB, free: 28.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001745/9.501, allocations: 278.7 kB / 4.022 GB, free: 27.88 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002335/9.503, allocations: 1.396 MB / 4.023 GB, free: 27.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002043/9.503, allocations: 60.11 kB / 4.023 GB, free: 27.67 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009048/9.504, allocations: 0.9798 MB / 4.024 GB, free: 27.25 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000499/9.505, allocations: 0.5891 MB / 4.025 GB, free: 26.88 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/9.505, allocations: 43.5 kB / 4.025 GB, free: 26.88 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001934/9.505, allocations: 383.5 kB / 4.025 GB, free: 26.58 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001507/9.506, allocations: 1.042 MB / 4.026 GB, free: 26.57 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/9.508, allocations: 1.538 MB / 4.028 GB, free: 26 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001714/9.51, allocations: 1.277 MB / 4.029 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/9.51, allocations: 9.312 kB / 4.029 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.005895/9.516, allocations: 3.65 MB / 4.033 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0023/9.518, allocations: 5.325 MB / 4.038 GB, free: 20.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.41e-05/9.518, allocations: 14.59 kB / 4.038 GB, free: 20.04 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01269/9.531, allocations: 2.76 MB / 4.041 GB, free: 19.95 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001455/9.533, allocations: 322.9 kB / 4.041 GB, free: 19.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004914/9.537, allocations: 3.301 MB / 4.044 GB, free: 19.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003079/9.541, allocations: 257.8 kB / 4.044 GB, free: 19.35 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002486/9.541, allocations: 97.95 kB / 4.045 GB, free: 19.35 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/9.541, allocations: 3.719 kB / 4.045 GB, free: 19.35 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005253/9.546, allocations: 3.25 MB / 4.048 GB, free: 19.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.772e-05/9.546, allocations: 14.12 kB / 4.048 GB, free: 19.24 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005732/9.552, allocations: 1.634 MB / 4.049 GB, free: 19.19 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/9.553, allocations: 360 kB / 4.05 GB, free: 19.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003244/9.557, allocations: 2.582 MB / 4.052 GB, free: 18.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003024/9.56, allocations: 264.9 kB / 4.052 GB, free: 18.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002973/9.56, allocations: 105.9 kB / 4.053 GB, free: 18.57 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 () * 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.0008187/9.561, allocations: 254 kB / 4.053 GB, free: 18.38 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004773/9.561, allocations: 200.5 kB / 4.053 GB, free: 18.28 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009877/9.571, allocations: 7.7 MB / 4.061 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.621e-05/9.571, allocations: 89.23 kB / 4.061 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/9.571, allocations: 3.969 kB / 4.061 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007528/9.579, allocations: 6.593 MB / 4.067 GB, free: 9.074 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01679/9.596, allocations: 10.82 MB / 4.078 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/9.596, allocations: 4 kB / 4.078 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001682/9.598, allocations: 403.2 kB / 4.078 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001243/9.599, allocations: 353.2 kB / 4.078 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001675/9.599, allocations: 61.47 kB / 4.078 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001814/9.601, allocations: 2.576 MB / 4.081 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/9.601, allocations: 0 / 4.081 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009845/9.611, allocations: 6.895 MB / 4.088 GB, free: 6.105 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002869/9.614, allocations: 0.7486 MB / 4.088 GB, free: 5.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005108/9.614, allocations: 51.33 kB / 4.088 GB, free: 5.383 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00156/9.616, allocations: 196.8 kB / 4.089 GB, free: 5.234 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003967/9.616, allocations: 152 kB / 4.089 GB, free: 5.141 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001693/9.616, allocations: 67.55 kB / 4.089 GB, free: 5.082 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00217/9.619, allocations: 1.166 MB / 4.09 GB, free: 4.004 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.31e-07/9.619, allocations: 0 / 4.09 GB, free: 4.004 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0145/9.633, allocations: 2.765 MB / 4.093 GB, free: 1.297 MB / 0.5417 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) * 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.5235/10.16, allocations: 2.816 MB / 4.095 GB, free: 67.39 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01067/10.17, allocations: 5.113 MB / 4.1 GB, free: 67.08 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/10.17, allocations: 0 / 4.1 GB, free: 67.08 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003906/10.17, allocations: 2.377 MB / 4.103 GB, free: 67.01 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005672/10.18, allocations: 0.8597 MB / 4.104 GB, free: 66.99 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2314/10.41, allocations: 127.9 MB / 4.228 GB, free: 56.01 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001772/10.41, allocations: 2.308 MB / 4.231 GB, free: 54.3 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004493/10.41, allocations: 1.904 MB / 4.233 GB, free: 53.17 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005182/10.42, allocations: 152.5 kB / 4.233 GB, free: 53.04 MB / 0.5417 GB Notification: Performance of SimCode: time 2.104e-06/10.42, allocations: 0 / 4.233 GB, free: 53.04 MB / 0.5417 GB Notification: Performance of Templates: time 0.6593/11.07, allocations: 97.19 MB / 4.328 GB, free: 61.04 MB / 0.5417 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)