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.001166/0.001166, allocations: 181.8 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 2.032/2.032, allocations: 194.3 MB / 207.5 MB, free: 3.457 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.001814/0.001814, allocations: 118.4 kB / 252.6 MB, free: 4.777 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.3128/0.3128, allocations: 39.95 MB / 337.5 MB, free: 476 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.271e-05/5.273e-05, allocations: 8 kB / 400.3 MB, free: 69.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1634, allocations: 54.86 MB / 455.1 MB, free: 14.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.446/7.61, allocations: 2.658 GB / 3.102 GB, free: 8.773 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/7.61, allocations: 79.77 kB / 3.103 GB, free: 8.734 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.192/10.8, allocations: 0.7972 GB / 3.9 GB, free: 37.04 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.563e-06/10.8, allocations: 0 / 3.9 GB, free: 37.04 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002464/10.8, allocations: 62.11 kB / 3.9 GB, free: 37.04 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.01674/10.82, allocations: 3.85 MB / 3.904 GB, free: 35.38 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/10.82, allocations: 9.312 kB / 3.904 GB, free: 35.38 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007072/10.83, allocations: 0.841 MB / 3.904 GB, free: 35.25 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006982/10.83, allocations: 2.096 MB / 3.906 GB, free: 34.8 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002553/10.83, allocations: 185 kB / 3.907 GB, free: 34.8 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006238/10.83, allocations: 195.4 kB / 3.907 GB, free: 34.79 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008667/10.84, allocations: 3.562 MB / 3.91 GB, free: 34.24 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001307/10.84, allocations: 8.469 kB / 3.91 GB, free: 34.24 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003546/10.84, allocations: 86.95 kB / 3.91 GB, free: 34.24 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002873/10.84, allocations: 163.3 kB / 3.911 GB, free: 34.24 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007477/10.85, allocations: 3.16 MB / 3.914 GB, free: 34.22 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.02082/10.87, allocations: 15.08 MB / 3.928 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00483/10.88, allocations: 2.216 MB / 3.931 GB, free: 25.16 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/10.88, allocations: 1.047 MB / 3.932 GB, free: 25.16 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03379/10.91, allocations: 18.86 MB / 3.95 GB, free: 29.42 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004802/10.92, allocations: 1.654 MB / 3.952 GB, free: 29.32 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 8.766e-06/10.92, allocations: 0 / 3.952 GB, free: 29.32 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.0205/10.94, allocations: 7.548 MB / 3.959 GB, free: 28.39 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/10.94, allocations: 277.3 kB / 3.959 GB, free: 28.08 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002009/10.94, allocations: 1.399 MB / 3.961 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002408/10.94, allocations: 54.58 kB / 3.961 GB, free: 27.86 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006533/10.94, allocations: 0.9858 MB / 3.962 GB, free: 27.45 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004511/10.94, allocations: 0.5822 MB / 3.962 GB, free: 27.08 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/10.94, allocations: 40.97 kB / 3.962 GB, free: 27.08 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001712/10.94, allocations: 389.3 kB / 3.963 GB, free: 26.77 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001405/10.94, allocations: 1.045 MB / 3.964 GB, free: 26.77 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001705/10.94, allocations: 1.537 MB / 3.965 GB, free: 26.21 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001749/10.95, allocations: 1.282 MB / 3.966 GB, free: 26.16 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.347e-06/10.95, allocations: 3.125 kB / 3.966 GB, free: 26.16 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.004871/10.95, allocations: 3.103 MB / 3.969 GB, free: 25.91 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001845/10.95, allocations: 5.315 MB / 3.975 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.126e-05/10.95, allocations: 17.61 kB / 3.975 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008249/10.95, allocations: 259.7 kB / 3.975 GB, free: 20.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002368/10.96, allocations: 0.5162 MB / 3.975 GB, free: 20.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001483/10.96, allocations: 2.492 MB / 3.978 GB, free: 18.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002661/10.96, allocations: 258.9 kB / 3.978 GB, free: 18.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002816/10.96, allocations: 107 kB / 3.978 GB, free: 18.18 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/10.96, allocations: 9.5 kB / 3.978 GB, free: 18.18 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004271/10.97, allocations: 2.828 MB / 3.981 GB, free: 18.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.584e-05/10.97, allocations: 18.05 kB / 3.981 GB, free: 18.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007457/10.97, allocations: 261.5 kB / 3.981 GB, free: 18.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001939/10.97, allocations: 0.5094 MB / 3.982 GB, free: 18.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001559/10.97, allocations: 2.503 MB / 3.984 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00229/10.97, allocations: 256.4 kB / 3.984 GB, free: 15.95 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002071/10.97, allocations: 99.25 kB / 3.984 GB, free: 15.95 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 (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.0006248/10.97, allocations: 268.8 kB / 3.985 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003597/10.97, allocations: 203.8 kB / 3.985 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00823/10.98, allocations: 7.695 MB / 3.992 GB, free: 14.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-05/10.98, allocations: 89.94 kB / 3.993 GB, free: 14.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/10.98, allocations: 0 / 3.993 GB, free: 14.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006159/10.99, allocations: 6.594 MB / 3.999 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/11, allocations: 10.81 MB / 4.009 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/11, allocations: 6.656 kB / 4.01 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001587/11, allocations: 398.2 kB / 4.01 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/11, allocations: 360.1 kB / 4.01 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001409/11, allocations: 63.67 kB / 4.01 GB, free: 13.24 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001432/11, allocations: 2.572 MB / 4.013 GB, free: 11.17 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/11, allocations: 2.531 kB / 4.013 GB, free: 11.17 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007246/11.01, allocations: 6.907 MB / 4.02 GB, free: 10.53 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001477/11.01, allocations: 0.7502 MB / 4.02 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003723/11.01, allocations: 51.98 kB / 4.02 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001424/11.01, allocations: 196.2 kB / 4.021 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002775/11.02, allocations: 149.2 kB / 4.021 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/11.02, allocations: 63 kB / 4.021 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001548/11.02, allocations: 1.172 MB / 4.022 GB, free: 10.02 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.61e-07/11.02, allocations: 0 / 4.022 GB, free: 10.02 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01151/11.03, allocations: 2.766 MB / 4.025 GB, free: 9.621 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.01317/11.04, allocations: 2.825 MB / 4.027 GB, free: 9.047 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00787/11.05, allocations: 5.077 MB / 4.032 GB, free: 8.762 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/11.05, allocations: 0 / 4.032 GB, free: 8.762 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003019/11.05, allocations: 2.381 MB / 4.035 GB, free: 8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004606/11.06, allocations: 0.8744 MB / 4.035 GB, free: 7.805 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5587/11.62, allocations: 129.1 MB / 4.161 GB, free: 58.68 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001883/11.62, allocations: 2.309 MB / 4.164 GB, free: 57.87 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005774/11.62, allocations: 2.829 MB / 4.167 GB, free: 57.77 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005746/11.62, allocations: 169.5 kB / 4.167 GB, free: 57.77 MB / 0.5417 GB Notification: Performance of SimCode: time 2.655e-06/11.62, allocations: 0 / 4.167 GB, free: 57.77 MB / 0.5417 GB Notification: Performance of Templates: time 0.1223/11.75, allocations: 87.2 MB / 4.252 GB, free: 33.13 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)