Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001246/0.001246, allocations: 181.9 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.635/1.635, allocations: 194.3 MB / 207.5 MB, free: 3.398 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.002057/0.002057, allocations: 104 kB / 252.6 MB, free: 4.816 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.2104/0.2104, allocations: 39.95 MB / 337.5 MB, free: 464 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.113e-05/5.115e-05, allocations: 4 kB / 400.3 MB, free: 69.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1141, allocations: 54.87 MB / 455.2 MB, free: 14.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.877/5.991, allocations: 2.658 GB / 3.103 GB, free: 9.117 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/5.991, allocations: 75.53 kB / 3.103 GB, free: 9.082 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.293/9.284, allocations: 0.7985 GB / 3.901 GB, free: 36.95 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.743e-06/9.284, allocations: 0 / 3.901 GB, free: 36.95 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001954/9.284, allocations: 66.09 kB / 3.901 GB, free: 36.94 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.01852/9.303, allocations: 3.851 MB / 3.905 GB, free: 35.27 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 7.109e-05/9.303, allocations: 10.09 kB / 3.905 GB, free: 35.27 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00752/9.31, allocations: 0.8404 MB / 3.906 GB, free: 35.14 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007185/9.318, allocations: 2.099 MB / 3.908 GB, free: 34.69 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002429/9.318, allocations: 179.4 kB / 3.908 GB, free: 34.69 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006261/9.318, allocations: 197 kB / 3.908 GB, free: 34.68 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007909/9.326, allocations: 3.564 MB / 3.912 GB, free: 34.13 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.717e-05/9.326, allocations: 7.719 kB / 3.912 GB, free: 34.13 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002711/9.327, allocations: 91.36 kB / 3.912 GB, free: 34.13 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002686/9.327, allocations: 159.6 kB / 3.912 GB, free: 34.13 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007831/9.335, allocations: 3.166 MB / 3.915 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.01878/9.354, allocations: 15.06 MB / 3.93 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004367/9.358, allocations: 2.214 MB / 3.932 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001338/9.359, allocations: 1.047 MB / 3.933 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03615/9.396, allocations: 18.87 MB / 3.951 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004445/9.4, allocations: 1.643 MB / 3.953 GB, free: 29.21 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 5.651e-06/9.4, allocations: 0 / 3.953 GB, free: 29.21 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.01704/9.417, allocations: 6.947 MB / 3.96 GB, free: 28.28 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001738/9.417, allocations: 281.5 kB / 3.96 GB, free: 27.97 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002525/9.42, allocations: 1.399 MB / 3.961 GB, free: 27.78 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000334/9.42, allocations: 54.58 kB / 3.961 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008456/9.421, allocations: 0.9776 MB / 3.962 GB, free: 27.35 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005922/9.422, allocations: 0.5837 MB / 3.963 GB, free: 26.98 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/9.422, allocations: 42.47 kB / 3.963 GB, free: 26.98 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002137/9.422, allocations: 394.2 kB / 3.963 GB, free: 26.67 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001574/9.424, allocations: 1.038 MB / 3.964 GB, free: 26.66 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001819/9.426, allocations: 1.538 MB / 3.966 GB, free: 26.11 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001905/9.427, allocations: 1.282 MB / 3.967 GB, free: 26.05 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.178e-05/9.427, allocations: 3.625 kB / 3.967 GB, free: 26.05 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.006371/9.434, allocations: 3.651 MB / 3.971 GB, free: 25.83 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002686/9.437, allocations: 5.323 MB / 3.976 GB, free: 20.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.193e-05/9.437, allocations: 16.98 kB / 3.976 GB, free: 20.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01336/9.45, allocations: 2.764 MB / 3.979 GB, free: 20.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/9.452, allocations: 312.2 kB / 3.979 GB, free: 20.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005231/9.457, allocations: 3.3 MB / 3.982 GB, free: 19.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003221/9.46, allocations: 263.5 kB / 3.982 GB, free: 19.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003454/9.46, allocations: 102.9 kB / 3.982 GB, free: 19.61 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/9.461, allocations: 4.562 kB / 3.982 GB, free: 19.61 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005888/9.466, allocations: 3.252 MB / 3.986 GB, free: 19.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-05/9.466, allocations: 19.61 kB / 3.986 GB, free: 19.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005891/9.472, allocations: 1.634 MB / 3.987 GB, free: 19.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001593/9.474, allocations: 355.7 kB / 3.988 GB, free: 19.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003731/9.478, allocations: 2.565 MB / 3.99 GB, free: 18.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0034/9.481, allocations: 257.5 kB / 3.99 GB, free: 18.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000317/9.482, allocations: 105.2 kB / 3.99 GB, free: 18.93 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.001109/9.483, allocations: 260.5 kB / 3.991 GB, free: 18.78 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006133/9.483, allocations: 199.6 kB / 3.991 GB, free: 18.68 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01038/9.494, allocations: 7.7 MB / 3.998 GB, free: 17.88 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.518e-05/9.494, allocations: 96.12 kB / 3.998 GB, free: 17.87 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/9.494, allocations: 4.438 kB / 3.998 GB, free: 17.87 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007456/9.501, allocations: 6.589 MB / 4.005 GB, free: 17.02 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01554/9.517, allocations: 10.81 MB / 4.015 GB, free: 16.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/9.517, allocations: 0 / 4.015 GB, free: 16.26 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001596/9.519, allocations: 402.3 kB / 4.016 GB, free: 16.26 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/9.52, allocations: 359.5 kB / 4.016 GB, free: 16.21 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002163/9.52, allocations: 59.95 kB / 4.016 GB, free: 16.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00169/9.522, allocations: 2.569 MB / 4.019 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/9.522, allocations: 0 / 4.019 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008938/9.531, allocations: 6.908 MB / 4.025 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002346/9.533, allocations: 0.7521 MB / 4.026 GB, free: 13.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004951/9.534, allocations: 51.83 kB / 4.026 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/9.535, allocations: 201.3 kB / 4.026 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003064/9.535, allocations: 141.3 kB / 4.027 GB, free: 13.15 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001469/9.536, allocations: 68.7 kB / 4.027 GB, free: 13.15 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001842/9.537, allocations: 1.17 MB / 4.028 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.3e-07/9.537, allocations: 0 / 4.028 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01637/9.554, allocations: 2.766 MB / 4.031 GB, free: 12.57 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) * 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.01628/9.57, allocations: 2.827 MB / 4.033 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009849/9.58, allocations: 5.112 MB / 4.038 GB, free: 9.992 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/9.58, allocations: 1.594 kB / 4.038 GB, free: 9.992 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003465/9.584, allocations: 2.373 MB / 4.041 GB, free: 8.957 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004979/9.589, allocations: 0.8662 MB / 4.041 GB, free: 8.766 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.712/10.3, allocations: 128.5 MB / 4.167 GB, free: 57.44 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001738/10.3, allocations: 2.309 MB / 4.169 GB, free: 56.63 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004551/10.31, allocations: 1.906 MB / 4.171 GB, free: 56.54 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005225/10.31, allocations: 148.5 kB / 4.171 GB, free: 56.54 MB / 0.5417 GB Notification: Performance of SimCode: time 3.256e-06/10.31, allocations: 0 / 4.171 GB, free: 56.54 MB / 0.5417 GB Notification: Performance of Templates: time 0.1472/10.45, allocations: 97.2 MB / 4.266 GB, free: 18.64 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1)