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.001391/0.001391, allocations: 164.4 kB / 7.635 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.454/1.454, allocations: 170.6 MB / 178.7 MB, free: 15.59 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.001864/0.001864, allocations: 107.5 kB / 218 MB, free: 8.348 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.1836/0.1836, allocations: 37.99 MB / 295.1 MB, free: 9.492 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.548e-05/1.552e-05, allocations: 2.375 kB / 350 MB, free: 36.97 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09912/0.09915, allocations: 48.72 MB / 398.7 MB, free: 5.344 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.067/6.166, allocations: 2.547 GB / 2.936 GB, free: 115.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/6.166, allocations: 72.95 kB / 2.936 GB, free: 115.1 MB / 426.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 4.287/10.45, allocations: 0.8332 GB / 3.77 GB, free: 33.24 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.285e-06/10.45, allocations: 2.312 kB / 3.77 GB, free: 33.24 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005081/10.45, allocations: 65.25 kB / 3.77 GB, free: 33.24 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.02206/10.48, allocations: 3.735 MB / 3.773 GB, free: 31.6 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.704e-05/10.48, allocations: 10.03 kB / 3.773 GB, free: 31.6 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008396/10.48, allocations: 0.8181 MB / 3.774 GB, free: 31.46 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01092/10.5, allocations: 2.081 MB / 3.776 GB, free: 31.02 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004183/10.5, allocations: 94.31 kB / 3.776 GB, free: 31.02 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001574/10.5, allocations: 113.3 kB / 3.776 GB, free: 31.02 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007054/10.51, allocations: 2.535 MB / 3.779 GB, free: 31.02 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008724/10.51, allocations: 2.784 MB / 3.781 GB, free: 30.5 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001534/10.51, allocations: 8.344 kB / 3.781 GB, free: 30.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007673/10.51, allocations: 6.906 kB / 3.781 GB, free: 30.5 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002889/10.52, allocations: 159.9 kB / 3.782 GB, free: 30.49 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.1939/10.71, allocations: 78.57 MB / 3.858 GB, free: 21.26 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004481/10.71, allocations: 1.627 MB / 3.86 GB, free: 21.23 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002479/10.72, allocations: 0.9678 MB / 3.861 GB, free: 21.21 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04214/10.76, allocations: 17.46 MB / 3.878 GB, free: 9.746 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004277/10.76, allocations: 1.155 MB / 3.879 GB, free: 9.613 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=145): time 1.342e-05/10.76, allocations: 0 / 3.879 GB, free: 9.613 MB / 0.4948 GB Notification: Performance of matching and sorting (n=161): time 0.02992/10.79, allocations: 7.986 MB / 3.887 GB, free: 7.895 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002822/10.79, allocations: 382.4 kB / 3.887 GB, free: 7.457 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00235/10.8, allocations: 1.125 MB / 3.888 GB, free: 7.277 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004479/10.8, allocations: 29.58 kB / 3.888 GB, free: 7.246 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001476/10.8, allocations: 1.008 MB / 3.889 GB, free: 22.78 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008817/10.8, allocations: 0.539 MB / 3.89 GB, free: 22.43 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002593/10.8, allocations: 4 kB / 3.89 GB, free: 22.43 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002686/10.8, allocations: 390.2 kB / 3.89 GB, free: 22.12 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001664/10.8, allocations: 1.01 MB / 3.891 GB, free: 22.11 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001934/10.8, allocations: 1.497 MB / 3.893 GB, free: 21.56 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01279/10.82, allocations: 3.299 MB / 3.896 GB, free: 21.48 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.786e-05/10.82, allocations: 3.531 kB / 3.896 GB, free: 21.48 MB / 0.5105 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.02088/10.84, allocations: 5.548 MB / 3.901 GB, free: 21.24 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.003231/10.84, allocations: 5.268 MB / 3.906 GB, free: 15.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.865e-05/10.84, allocations: 14.27 kB / 3.906 GB, free: 15.81 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007588/10.85, allocations: 2.03 MB / 3.908 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/10.85, allocations: 319.6 kB / 3.909 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006804/10.86, allocations: 3.665 MB / 3.912 GB, free: 15.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003665/10.86, allocations: 249.6 kB / 3.913 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006407/10.86, allocations: 98.7 kB / 3.913 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/10.86, allocations: 4.469 kB / 3.913 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02574/10.89, allocations: 4.957 MB / 3.918 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-05/10.89, allocations: 23.42 kB / 3.918 GB, free: 14.17 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008278/10.89, allocations: 1.54 MB / 3.919 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002397/10.9, allocations: 358.5 kB / 3.919 GB, free: 12.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005593/10.9, allocations: 2.68 MB / 3.922 GB, free: 11.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003996/10.91, allocations: 244.1 kB / 3.922 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006476/10.91, allocations: 101.6 kB / 3.922 GB, free: 11.11 MB / 0.5105 GB 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,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,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.001284/10.91, allocations: 193.4 kB / 3.923 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/10.91, allocations: 181.8 kB / 3.923 GB, free: 10.77 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01706/10.93, allocations: 6.834 MB / 3.929 GB, free: 7.02 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001135/10.93, allocations: 76.27 kB / 3.929 GB, free: 6.992 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.539e-05/10.93, allocations: 4 kB / 3.929 GB, free: 6.988 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01339/10.94, allocations: 5.658 MB / 3.935 GB, free: 3.688 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5166/11.46, allocations: 9.39 MB / 3.944 GB, free: 78.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.66e-05/11.46, allocations: 4.531 kB / 3.944 GB, free: 78.83 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002086/11.46, allocations: 362.6 kB / 3.944 GB, free: 78.83 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001005/11.46, allocations: 339.4 kB / 3.945 GB, free: 78.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003037/11.46, allocations: 37.75 kB / 3.945 GB, free: 78.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001926/11.46, allocations: 2.683 MB / 3.947 GB, free: 76.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/11.46, allocations: 4.469 kB / 3.947 GB, free: 76.74 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01257/11.47, allocations: 6.403 MB / 3.954 GB, free: 76.34 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002244/11.48, allocations: 0.6895 MB / 3.954 GB, free: 76.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004521/11.48, allocations: 24.84 kB / 3.954 GB, free: 76.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/11.48, allocations: 158.3 kB / 3.955 GB, free: 76.24 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003439/11.48, allocations: 137.2 kB / 3.955 GB, free: 76.24 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001678/11.48, allocations: 63.75 kB / 3.955 GB, free: 76.24 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002037/11.48, allocations: 1.029 MB / 3.956 GB, free: 76.13 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.71e-07/11.48, allocations: 0 / 3.956 GB, free: 76.13 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01503/11.5, allocations: 2.616 MB / 3.958 GB, free: 76.13 MB / 0.5105 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: 43 ($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,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 (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.01617/11.51, allocations: 2.961 MB / 3.961 GB, free: 75.99 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0104/11.52, allocations: 4.712 MB / 3.966 GB, free: 75.71 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/11.52, allocations: 2.688 kB / 3.966 GB, free: 75.71 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004078/11.53, allocations: 2.134 MB / 3.968 GB, free: 75.65 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00659/11.53, allocations: 0.7742 MB / 3.969 GB, free: 75.62 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01526/11.55, allocations: 5.649 MB / 3.974 GB, free: 74.55 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003467/11.55, allocations: 2.216 MB / 3.976 GB, free: 73.78 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.006043/11.56, allocations: 1.935 MB / 3.978 GB, free: 73.75 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009201/11.56, allocations: 140.2 kB / 3.978 GB, free: 73.74 MB / 0.5105 GB Notification: Performance of SimCode: time 2.144e-06/11.56, allocations: 0 / 3.978 GB, free: 73.74 MB / 0.5105 GB Notification: Performance of Templates: time 0.1547/11.71, allocations: 81.49 MB / 4.058 GB, free: 69.06 MB / 0.5105 GB 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)