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.001754/0.001755, allocations: 187.4 kB / 7.654 MB, free: 1.402 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.356/1.356, allocations: 194.3 MB / 202.4 MB, free: 8.473 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.001657/0.001657, allocations: 113 kB / 247.4 MB, free: 6.215 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.1776/0.1776, allocations: 39.94 MB / 332.2 MB, free: 4.77 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.618e-05/1.62e-05, allocations: 4 kB / 393.3 MB, free: 75.54 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1022, allocations: 54.87 MB / 448.2 MB, free: 20.65 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.15/6.252, allocations: 2.657 GB / 3.095 GB, free: 89.97 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003005/6.252, allocations: 78.95 kB / 3.095 GB, free: 89.93 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.27/9.522, allocations: 0.7905 GB / 3.886 GB, free: 32 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.535e-06/9.522, allocations: 0 / 3.886 GB, free: 32 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003584/9.522, allocations: 66.7 kB / 3.886 GB, free: 31.99 MB / 0.4948 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.01722/9.54, allocations: 3.848 MB / 3.889 GB, free: 29.87 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/9.54, allocations: 7.344 kB / 3.889 GB, free: 29.87 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007067/9.547, allocations: 0.844 MB / 3.89 GB, free: 29.66 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00862/9.555, allocations: 2.103 MB / 3.892 GB, free: 28.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003752/9.556, allocations: 91.06 kB / 3.892 GB, free: 28.69 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001474/9.557, allocations: 119.7 kB / 3.893 GB, free: 28.68 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006184/9.564, allocations: 2.534 MB / 3.895 GB, free: 27.81 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007092/9.571, allocations: 2.788 MB / 3.898 GB, free: 26.5 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-05/9.571, allocations: 7.344 kB / 3.898 GB, free: 26.49 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006346/9.571, allocations: 3.375 kB / 3.898 GB, free: 26.49 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002277/9.572, allocations: 171.9 kB / 3.898 GB, free: 26.46 MB / 0.4948 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.6519/10.22, allocations: 78.63 MB / 3.975 GB, free: 33.82 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002442/10.23, allocations: 1.63 MB / 3.976 GB, free: 33.79 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001202/10.23, allocations: 0.9822 MB / 3.977 GB, free: 33.77 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03122/10.26, allocations: 17.46 MB / 3.994 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003229/10.26, allocations: 1.16 MB / 3.995 GB, free: 22.66 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=147): time 8.967e-06/10.26, allocations: 0 / 3.995 GB, free: 22.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=163): time 0.02633/10.29, allocations: 7.955 MB / 4.003 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001705/10.29, allocations: 387.8 kB / 4.004 GB, free: 20.73 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002025/10.29, allocations: 1.135 MB / 4.005 GB, free: 20.55 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001484/10.29, allocations: 29.33 kB / 4.005 GB, free: 20.52 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009778/10.29, allocations: 1.004 MB / 4.006 GB, free: 20.18 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005878/10.29, allocations: 0.5417 MB / 4.006 GB, free: 19.89 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/10.29, allocations: 4 kB / 4.006 GB, free: 19.89 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000161/10.29, allocations: 385.6 kB / 4.007 GB, free: 19.59 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001464/10.29, allocations: 1.014 MB / 4.008 GB, free: 19.58 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001753/10.3, allocations: 1.496 MB / 4.009 GB, free: 19.03 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01232/10.31, allocations: 3.312 MB / 4.012 GB, free: 18.95 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.031e-05/10.31, allocations: 6.625 kB / 4.012 GB, free: 18.95 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01549/10.32, allocations: 4.993 MB / 4.017 GB, free: 18.69 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001438/10.33, allocations: 5.257 MB / 4.022 GB, free: 13.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-05/10.33, allocations: 17.41 kB / 4.022 GB, free: 13.26 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006359/10.33, allocations: 242.9 kB / 4.023 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001984/10.33, allocations: 0.5221 MB / 4.023 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001363/10.33, allocations: 2.525 MB / 4.025 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002594/10.33, allocations: 253.7 kB / 4.026 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000233/10.33, allocations: 100.1 kB / 4.026 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/10.33, allocations: 8.734 kB / 4.026 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01383/10.35, allocations: 4.558 MB / 4.03 GB, free: 10.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.358e-05/10.35, allocations: 18.44 kB / 4.03 GB, free: 10.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000536/10.35, allocations: 247.7 kB / 4.031 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001941/10.35, allocations: 0.5102 MB / 4.031 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002414/10.35, allocations: 2.523 MB / 4.034 GB, free: 24.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002506/10.35, allocations: 228.7 kB / 4.034 GB, free: 24.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001938/10.35, allocations: 104.1 kB / 4.034 GB, free: 24.84 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,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 (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.000785/10.35, allocations: 201.8 kB / 4.034 GB, free: 24.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004389/10.35, allocations: 186.2 kB / 4.034 GB, free: 24.61 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01015/10.37, allocations: 6.819 MB / 4.041 GB, free: 24.02 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-05/10.37, allocations: 80.38 kB / 4.041 GB, free: 24.02 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/10.37, allocations: 6.312 kB / 4.041 GB, free: 24.02 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006953/10.37, allocations: 5.652 MB / 4.046 GB, free: 23.32 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01385/10.39, allocations: 9.242 MB / 4.055 GB, free: 22.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/10.39, allocations: 0 / 4.055 GB, free: 22.74 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/10.39, allocations: 365.5 kB / 4.056 GB, free: 22.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008826/10.39, allocations: 340.8 kB / 4.056 GB, free: 22.69 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001335/10.39, allocations: 40.55 kB / 4.056 GB, free: 22.69 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002052/10.39, allocations: 2.687 MB / 4.059 GB, free: 20.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/10.39, allocations: 5.297 kB / 4.059 GB, free: 20.59 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009727/10.4, allocations: 6.403 MB / 4.065 GB, free: 20 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00173/10.4, allocations: 0.6961 MB / 4.066 GB, free: 19.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003147/10.4, allocations: 20.16 kB / 4.066 GB, free: 19.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/10.4, allocations: 160.9 kB / 4.066 GB, free: 19.67 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003232/10.4, allocations: 136.1 kB / 4.066 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001535/10.4, allocations: 65.55 kB / 4.066 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001839/10.41, allocations: 1.032 MB / 4.067 GB, free: 19.55 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.41e-07/10.41, allocations: 0 / 4.067 GB, free: 19.55 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01215/10.42, allocations: 2.632 MB / 4.07 GB, free: 19.43 MB / 0.5261 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.01209/10.43, allocations: 2.978 MB / 4.073 GB, free: 19.02 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007675/10.44, allocations: 4.705 MB / 4.077 GB, free: 18.77 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/10.44, allocations: 0 / 4.077 GB, free: 18.77 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003022/10.44, allocations: 2.167 MB / 4.079 GB, free: 18.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004586/10.45, allocations: 0.7781 MB / 4.08 GB, free: 18.65 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008977/10.45, allocations: 5.673 MB / 4.086 GB, free: 17.28 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001724/10.46, allocations: 2.217 MB / 4.088 GB, free: 16.48 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005037/10.46, allocations: 2.853 MB / 4.091 GB, free: 16.36 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004848/10.46, allocations: 164.5 kB / 4.091 GB, free: 16.36 MB / 0.5261 GB Notification: Performance of SimCode: time 9.02e-07/10.46, allocations: 0 / 4.091 GB, free: 16.36 MB / 0.5261 GB Notification: Performance of Templates: time 0.5673/11.03, allocations: 72.25 MB / 4.161 GB, free: 79.79 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)