Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00121/0.00121, allocations: 169.2 kB / 12.72 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.133/1.133, allocations: 170.6 MB / 183.8 MB, free: 11.42 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001464/0.001464, allocations: 103.5 kB / 223.2 MB, free: 4.047 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1657/0.1657, allocations: 38 MB / 300.4 MB, free: 5.344 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.965e-05/2.996e-05, allocations: 7.984 kB / 357 MB, free: 32.31 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09177/0.09182, allocations: 48.71 MB / 405.7 MB, free: 15.63 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.75/6.842, allocations: 2.548 GB / 2.944 GB, free: 63.62 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003195/6.843, allocations: 73.91 kB / 2.944 GB, free: 63.59 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+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.4/10.24, allocations: 0.8402 GB / 3.784 GB, free: 31.89 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.242e-06/10.24, allocations: 0 / 3.784 GB, free: 31.89 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001798/10.24, allocations: 66.67 kB / 3.784 GB, free: 31.88 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01253/10.26, allocations: 3.73 MB / 3.788 GB, free: 30.08 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/10.26, allocations: 13.88 kB / 3.788 GB, free: 30.08 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006315/10.26, allocations: 0.8167 MB / 3.788 GB, free: 29.95 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006196/10.27, allocations: 2.094 MB / 3.791 GB, free: 29.48 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001915/10.27, allocations: 178.9 kB / 3.791 GB, free: 29.48 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007072/10.27, allocations: 201.8 kB / 3.791 GB, free: 29.48 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007322/10.28, allocations: 3.56 MB / 3.794 GB, free: 28.95 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.027e-05/10.28, allocations: 6.625 kB / 3.794 GB, free: 28.95 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002633/10.28, allocations: 88.06 kB / 3.794 GB, free: 28.95 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001918/10.28, allocations: 161.8 kB / 3.795 GB, free: 28.95 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006256/10.28, allocations: 3.162 MB / 3.798 GB, free: 28.93 MB / 474.7 MB 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.01822/10.3, allocations: 15.02 MB / 3.812 GB, free: 19.91 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004166/10.31, allocations: 2.222 MB / 3.815 GB, free: 19.87 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001209/10.31, allocations: 1.036 MB / 3.816 GB, free: 19.86 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.034/10.34, allocations: 18.85 MB / 3.834 GB, free: 23.87 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005124/10.35, allocations: 1.639 MB / 3.836 GB, free: 23.77 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 5.841e-06/10.35, allocations: 4 kB / 3.836 GB, free: 23.77 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.01674/10.36, allocations: 6.957 MB / 3.842 GB, free: 22.81 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001651/10.36, allocations: 275.6 kB / 3.843 GB, free: 22.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00214/10.37, allocations: 1.398 MB / 3.844 GB, free: 22.31 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002235/10.37, allocations: 56.98 kB / 3.844 GB, free: 22.28 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007414/10.37, allocations: 0.9807 MB / 3.845 GB, free: 21.88 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004449/10.37, allocations: 0.5744 MB / 3.846 GB, free: 21.51 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/10.37, allocations: 42.03 kB / 3.846 GB, free: 21.51 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001749/10.37, allocations: 388.7 kB / 3.846 GB, free: 21.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/10.37, allocations: 1.037 MB / 3.847 GB, free: 21.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001593/10.37, allocations: 1.531 MB / 3.848 GB, free: 20.63 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001627/10.37, allocations: 1.278 MB / 3.85 GB, free: 20.55 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.328e-06/10.37, allocations: 3.656 kB / 3.85 GB, free: 20.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.005416/10.38, allocations: 3.662 MB / 3.853 GB, free: 20.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001988/10.38, allocations: 5.326 MB / 3.858 GB, free: 14.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.595e-05/10.38, allocations: 16.78 kB / 3.859 GB, free: 14.66 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01241/10.39, allocations: 2.75 MB / 3.861 GB, free: 14.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001362/10.39, allocations: 312 kB / 3.861 GB, free: 14.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004651/10.4, allocations: 3.307 MB / 3.865 GB, free: 14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00268/10.4, allocations: 259.4 kB / 3.865 GB, free: 13.97 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002292/10.4, allocations: 107.8 kB / 3.865 GB, free: 13.97 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/10.4, allocations: 7.656 kB / 3.865 GB, free: 13.96 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004839/10.41, allocations: 3.252 MB / 3.868 GB, free: 13.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.455e-05/10.41, allocations: 19.19 kB / 3.868 GB, free: 13.83 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005772/10.41, allocations: 1.63 MB / 3.87 GB, free: 13.78 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/10.41, allocations: 361.1 kB / 3.87 GB, free: 13.76 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003102/10.42, allocations: 2.577 MB / 3.873 GB, free: 12.92 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002752/10.42, allocations: 250.4 kB / 3.873 GB, free: 12.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003148/10.42, allocations: 101 kB / 3.873 GB, free: 12.84 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 22 (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,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.0008226/10.42, allocations: 260.2 kB / 3.873 GB, free: 12.61 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005822/10.42, allocations: 192.7 kB / 3.873 GB, free: 12.52 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009169/10.43, allocations: 7.701 MB / 3.881 GB, free: 5.961 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.697e-05/10.43, allocations: 87.62 kB / 3.881 GB, free: 5.91 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/10.43, allocations: 5.312 kB / 3.881 GB, free: 5.906 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.3609/10.79, allocations: 6.606 MB / 3.888 GB, free: 45.71 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01854/10.81, allocations: 10.81 MB / 3.898 GB, free: 45.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/10.81, allocations: 3.562 kB / 3.898 GB, free: 45.14 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001949/10.81, allocations: 403.2 kB / 3.898 GB, free: 45.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001347/10.81, allocations: 356.9 kB / 3.899 GB, free: 45.11 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003607/10.81, allocations: 70.06 kB / 3.899 GB, free: 45.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001528/10.81, allocations: 2.572 MB / 3.901 GB, free: 43.05 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/10.81, allocations: 0 / 3.901 GB, free: 43.05 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009961/10.82, allocations: 6.898 MB / 3.908 GB, free: 42.61 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001577/10.83, allocations: 0.7445 MB / 3.909 GB, free: 42.46 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003495/10.83, allocations: 48.16 kB / 3.909 GB, free: 42.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001435/10.83, allocations: 204.1 kB / 3.909 GB, free: 42.45 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000292/10.83, allocations: 148.5 kB / 3.909 GB, free: 42.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001425/10.83, allocations: 65.72 kB / 3.909 GB, free: 42.45 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001648/10.83, allocations: 1.17 MB / 3.91 GB, free: 42.29 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.51e-07/10.83, allocations: 1.125 kB / 3.91 GB, free: 42.29 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01003/10.84, allocations: 2.743 MB / 3.913 GB, free: 42.29 MB / 490.7 MB 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: 53 ($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,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,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.01259/10.85, allocations: 2.822 MB / 3.916 GB, free: 42.12 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008497/10.86, allocations: 5.047 MB / 3.921 GB, free: 41.81 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/10.86, allocations: 1.969 kB / 3.921 GB, free: 41.81 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00285/10.86, allocations: 2.324 MB / 3.923 GB, free: 41.74 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004405/10.87, allocations: 0.8644 MB / 3.924 GB, free: 41.71 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1892/11.06, allocations: 125.8 MB / 4.047 GB, free: 13.75 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001379/11.06, allocations: 2.304 MB / 4.049 GB, free: 12.04 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003885/11.06, allocations: 1.908 MB / 4.051 GB, free: 10.91 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004502/11.06, allocations: 148 kB / 4.051 GB, free: 10.77 MB / 490.7 MB Notification: Performance of SimCode: time 1.082e-06/11.06, allocations: 0 / 4.051 GB, free: 10.77 MB / 490.7 MB Notification: Performance of Templates: time 0.4161/11.48, allocations: 97.06 MB / 4.146 GB, free: 39.93 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1)