Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0014/0.0014, allocations: 156.1 kB / 7.633 MB, free: 1.445 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.373/1.373, allocations: 170.7 MB / 178.7 MB, free: 7.035 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.001646/0.001646, allocations: 108.5 kB / 218 MB, free: 15.33 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.1929/0.1929, allocations: 37.97 MB / 295.1 MB, free: 2.082 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.31e-05/2.304e-05, allocations: 4 kB / 350 MB, free: 32.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2907, allocations: 48.68 MB / 398.7 MB, free: 6.055 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.605/5.896, allocations: 2.547 GB / 2.936 GB, free: 66.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003215/5.896, allocations: 75.95 kB / 2.936 GB, free: 66.63 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 3.962/9.858, allocations: 0.7727 GB / 3.709 GB, free: 25.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.244e-06/9.858, allocations: 3.5 kB / 3.709 GB, free: 25.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004717/9.859, allocations: 66.77 kB / 3.709 GB, free: 25.19 MB / 458.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.02411/9.883, allocations: 3.731 MB / 3.713 GB, free: 23.39 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.482e-05/9.883, allocations: 9.656 kB / 3.713 GB, free: 23.39 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008133/9.891, allocations: 0.81 MB / 3.713 GB, free: 23.26 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01021/9.901, allocations: 2.092 MB / 3.715 GB, free: 22.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004149/9.902, allocations: 102.4 kB / 3.716 GB, free: 22.79 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001505/9.903, allocations: 112.9 kB / 3.716 GB, free: 22.79 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007699/9.911, allocations: 2.523 MB / 3.718 GB, free: 22.79 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008932/9.92, allocations: 2.787 MB / 3.721 GB, free: 22.27 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.837e-05/9.92, allocations: 9.938 kB / 3.721 GB, free: 22.27 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003614/9.92, allocations: 8.812 kB / 3.721 GB, free: 22.27 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002638/9.921, allocations: 159.2 kB / 3.721 GB, free: 22.26 MB / 458.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.189/10.11, allocations: 78.57 MB / 3.798 GB, free: 12.96 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004065/10.11, allocations: 1.625 MB / 3.799 GB, free: 12.93 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002098/10.12, allocations: 0.9648 MB / 3.8 GB, free: 12.91 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04056/10.16, allocations: 17.46 MB / 3.817 GB, free: 17.44 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003589/10.16, allocations: 1.158 MB / 3.818 GB, free: 17.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=145): time 4.324e-05/10.16, allocations: 0 / 3.818 GB, free: 17.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=161): time 0.03114/10.19, allocations: 7.987 MB / 3.826 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002445/10.19, allocations: 386.9 kB / 3.827 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00197/10.19, allocations: 1.121 MB / 3.828 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002748/10.19, allocations: 25.7 kB / 3.828 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001109/10.2, allocations: 1.016 MB / 3.829 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006299/10.2, allocations: 0.5362 MB / 3.829 GB, free: 14.13 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/10.2, allocations: 0 / 3.829 GB, free: 14.13 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002488/10.2, allocations: 392.3 kB / 3.83 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00158/10.2, allocations: 1.014 MB / 3.831 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001873/10.2, allocations: 1.491 MB / 3.832 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01274/10.21, allocations: 3.305 MB / 3.835 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.09e-05/10.21, allocations: 3.469 kB / 3.835 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.0177/10.23, allocations: 5.545 MB / 3.841 GB, free: 12.27 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002324/10.23, allocations: 5.26 MB / 3.846 GB, free: 6.809 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.675e-05/10.23, allocations: 12.62 kB / 3.846 GB, free: 6.797 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006658/10.24, allocations: 2.032 MB / 3.848 GB, free: 5.566 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/10.24, allocations: 316.3 kB / 3.848 GB, free: 5.332 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005766/10.25, allocations: 3.658 MB / 3.852 GB, free: 3.238 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003/10.25, allocations: 259.3 kB / 3.852 GB, free: 3.051 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000263/10.25, allocations: 109.3 kB / 3.852 GB, free: 2.977 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/10.25, allocations: 4 kB / 3.852 GB, free: 2.973 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01636/10.27, allocations: 4.95 MB / 3.857 GB, free: 204 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.507e-05/10.27, allocations: 17.41 kB / 3.857 GB, free: 188 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5237/10.79, allocations: 1.59 MB / 3.859 GB, free: 70.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/10.79, allocations: 353.5 kB / 3.859 GB, free: 70.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004606/10.8, allocations: 2.68 MB / 3.861 GB, free: 69.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003332/10.8, allocations: 228.3 kB / 3.862 GB, free: 69.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000343/10.8, allocations: 99.52 kB / 3.862 GB, free: 69.77 MB / 0.4948 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.0007908/10.8, allocations: 189.7 kB / 3.862 GB, free: 69.63 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005695/10.8, allocations: 192.2 kB / 3.862 GB, free: 69.63 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01329/10.82, allocations: 6.835 MB / 3.869 GB, free: 69.21 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.219e-05/10.82, allocations: 77.31 kB / 3.869 GB, free: 69.21 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.616e-05/10.82, allocations: 0 / 3.869 GB, free: 69.21 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009363/10.82, allocations: 5.657 MB / 3.874 GB, free: 68.53 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01808/10.84, allocations: 9.247 MB / 3.883 GB, free: 68.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.331e-05/10.84, allocations: 5.844 kB / 3.883 GB, free: 68.09 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/10.84, allocations: 364 kB / 3.884 GB, free: 68.09 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008449/10.85, allocations: 332.8 kB / 3.884 GB, free: 68.06 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001481/10.85, allocations: 37.39 kB / 3.884 GB, free: 68.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001567/10.85, allocations: 2.692 MB / 3.887 GB, free: 66 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/10.85, allocations: 0 / 3.887 GB, free: 66 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009984/10.86, allocations: 6.408 MB / 3.893 GB, free: 65.46 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00215/10.86, allocations: 0.6906 MB / 3.894 GB, free: 65.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003801/10.86, allocations: 20.59 kB / 3.894 GB, free: 65.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001442/10.86, allocations: 166.7 kB / 3.894 GB, free: 65.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003165/10.86, allocations: 136.8 kB / 3.894 GB, free: 65.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001455/10.86, allocations: 62.64 kB / 3.894 GB, free: 65.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00171/10.86, allocations: 1.033 MB / 3.895 GB, free: 65.09 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/10.86, allocations: 0.6562 kB / 3.895 GB, free: 65.09 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01557/10.88, allocations: 2.614 MB / 3.898 GB, free: 65.05 MB / 0.4948 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.02038/10.9, allocations: 2.954 MB / 3.901 GB, free: 64.77 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01091/10.91, allocations: 4.714 MB / 3.905 GB, free: 64.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/10.91, allocations: 1.312 kB / 3.905 GB, free: 64.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003857/10.91, allocations: 2.132 MB / 3.907 GB, free: 64.43 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005844/10.92, allocations: 0.7824 MB / 3.908 GB, free: 64.41 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0142/10.93, allocations: 5.65 MB / 3.914 GB, free: 63.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00345/10.94, allocations: 2.214 MB / 3.916 GB, free: 62.53 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006072/10.94, allocations: 1.929 MB / 3.918 GB, free: 62.49 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009059/10.94, allocations: 141.4 kB / 3.918 GB, free: 62.48 MB / 0.4948 GB Notification: Performance of SimCode: time 1.823e-06/10.94, allocations: 0 / 3.918 GB, free: 62.48 MB / 0.4948 GB Notification: Performance of Templates: time 0.1427/11.09, allocations: 81.49 MB / 3.997 GB, free: 49.23 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1)