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.001085/0.001085, allocations: 169.7 kB / 12.72 MB, free: 2.594 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.184/1.184, allocations: 170.6 MB / 183.8 MB, free: 11.43 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.001638/0.001638, allocations: 110.2 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.1767/0.1767, allocations: 38 MB / 300.4 MB, free: 5.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.703e-05/2.706e-05, allocations: 4 kB / 357 MB, free: 32.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09433/0.09437, allocations: 48.71 MB / 405.7 MB, free: 15.65 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.632/6.726, allocations: 2.547 GB / 2.944 GB, free: 63.79 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003742/6.727, allocations: 76.97 kB / 2.944 GB, free: 63.75 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.22/9.946, allocations: 0.7791 GB / 3.723 GB, free: 32.02 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.874e-06/9.946, allocations: 1.969 kB / 3.723 GB, free: 32.02 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002157/9.946, allocations: 63.7 kB / 3.723 GB, free: 32.01 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.01553/9.962, allocations: 3.729 MB / 3.727 GB, free: 30.36 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/9.962, allocations: 9.75 kB / 3.727 GB, free: 30.36 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006705/9.969, allocations: 0.8167 MB / 3.727 GB, free: 30.22 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006535/9.975, allocations: 2.08 MB / 3.729 GB, free: 29.78 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/9.975, allocations: 187.1 kB / 3.73 GB, free: 29.78 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004974/9.976, allocations: 199.7 kB / 3.73 GB, free: 29.77 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006952/9.983, allocations: 3.556 MB / 3.733 GB, free: 29.25 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.315e-05/9.983, allocations: 11.67 kB / 3.733 GB, free: 29.25 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002584/9.983, allocations: 85.12 kB / 3.733 GB, free: 29.25 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000175/9.983, allocations: 161.1 kB / 3.733 GB, free: 29.24 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005675/9.989, allocations: 3.166 MB / 3.737 GB, free: 29.23 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.01824/10.01, allocations: 15.04 MB / 3.751 GB, free: 20.21 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004418/10.01, allocations: 2.216 MB / 3.753 GB, free: 20.18 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001304/10.01, allocations: 1.037 MB / 3.754 GB, free: 20.16 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03305/10.05, allocations: 18.85 MB / 3.773 GB, free: 24.41 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004003/10.05, allocations: 1.64 MB / 3.774 GB, free: 24.32 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 4.999e-06/10.05, allocations: 0 / 3.774 GB, free: 24.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=169): time 0.015/10.07, allocations: 6.938 MB / 3.781 GB, free: 23.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001551/10.07, allocations: 287.6 kB / 3.781 GB, free: 23.09 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002002/10.07, allocations: 1.389 MB / 3.783 GB, free: 22.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001861/10.07, allocations: 56.86 kB / 3.783 GB, free: 22.87 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007608/10.07, allocations: 0.9813 MB / 3.784 GB, free: 22.46 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004528/10.07, allocations: 0.5804 MB / 3.784 GB, free: 22.09 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/10.07, allocations: 39.94 kB / 3.784 GB, free: 22.09 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001842/10.07, allocations: 390.8 kB / 3.785 GB, free: 21.79 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001444/10.07, allocations: 1.039 MB / 3.786 GB, free: 21.78 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001656/10.07, allocations: 1.528 MB / 3.787 GB, free: 21.23 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001615/10.07, allocations: 1.278 MB / 3.789 GB, free: 21.17 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.846e-06/10.07, allocations: 3.844 kB / 3.789 GB, free: 21.17 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.005764/10.08, allocations: 3.657 MB / 3.792 GB, free: 20.95 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002211/10.08, allocations: 5.325 MB / 3.797 GB, free: 15.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.835e-05/10.08, allocations: 16.5 kB / 3.797 GB, free: 15.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01278/10.09, allocations: 2.76 MB / 3.8 GB, free: 15.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/10.1, allocations: 320.6 kB / 3.8 GB, free: 15.31 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004508/10.1, allocations: 3.296 MB / 3.804 GB, free: 14.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002702/10.1, allocations: 254.2 kB / 3.804 GB, free: 14.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002238/10.1, allocations: 108.5 kB / 3.804 GB, free: 14.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/10.1, allocations: 3.156 kB / 3.804 GB, free: 14.73 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004931/10.11, allocations: 3.254 MB / 3.807 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.589e-05/10.11, allocations: 18.53 kB / 3.807 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006101/10.12, allocations: 1.632 MB / 3.809 GB, free: 14.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001798/10.12, allocations: 360.1 kB / 3.809 GB, free: 14.61 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003233/10.12, allocations: 2.568 MB / 3.812 GB, free: 14.05 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002594/10.12, allocations: 261.4 kB / 3.812 GB, free: 14.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002275/10.12, allocations: 98.03 kB / 3.812 GB, free: 14.04 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.0006929/10.12, allocations: 268.8 kB / 3.812 GB, free: 13.89 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003852/10.12, allocations: 196.8 kB / 3.812 GB, free: 13.79 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008904/10.13, allocations: 7.698 MB / 3.82 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.399e-05/10.13, allocations: 88.22 kB / 3.82 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.228e-06/10.13, allocations: 0 / 3.82 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006344/10.14, allocations: 6.6 MB / 3.826 GB, free: 12.14 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01208/10.15, allocations: 10.82 MB / 3.837 GB, free: 11.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/10.15, allocations: 0 / 3.837 GB, free: 11.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001532/10.15, allocations: 405.3 kB / 3.837 GB, free: 11.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001114/10.15, allocations: 359.7 kB / 3.838 GB, free: 11.34 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001611/10.15, allocations: 57.47 kB / 3.838 GB, free: 11.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001522/10.16, allocations: 2.576 MB / 3.84 GB, free: 9.266 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/10.16, allocations: 0 / 3.84 GB, free: 9.266 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008016/10.16, allocations: 6.901 MB / 3.847 GB, free: 8.215 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/10.17, allocations: 0.7368 MB / 3.848 GB, free: 7.754 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003616/10.17, allocations: 51.78 kB / 3.848 GB, free: 7.723 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001424/10.17, allocations: 199.9 kB / 3.848 GB, free: 7.688 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002736/10.17, allocations: 151.9 kB / 3.848 GB, free: 7.668 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001341/10.17, allocations: 64.27 kB / 3.848 GB, free: 7.652 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001574/10.17, allocations: 1.165 MB / 3.849 GB, free: 7.184 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.91e-07/10.17, allocations: 0 / 3.849 GB, free: 7.184 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01043/10.18, allocations: 2.752 MB / 3.852 GB, free: 6.594 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.0114/10.19, allocations: 2.805 MB / 3.855 GB, free: 5.953 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007788/10.2, allocations: 5.054 MB / 3.86 GB, free: 4.062 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/10.2, allocations: 2.562 kB / 3.86 GB, free: 4.062 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00293/10.2, allocations: 2.332 MB / 3.862 GB, free: 3.047 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00477/10.21, allocations: 0.867 MB / 3.863 GB, free: 2.852 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5478/10.75, allocations: 127.1 MB / 3.987 GB, free: 49.12 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001603/10.76, allocations: 2.309 MB / 3.989 GB, free: 48.32 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004149/10.76, allocations: 1.906 MB / 3.991 GB, free: 48.23 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004373/10.76, allocations: 148.3 kB / 3.991 GB, free: 48.22 MB / 0.4948 GB Notification: Performance of SimCode: time 1.062e-06/10.76, allocations: 4 kB / 3.991 GB, free: 48.22 MB / 0.4948 GB Notification: Performance of Templates: time 0.4216/11.18, allocations: 96.8 MB / 4.086 GB, free: 70.68 MB / 0.5105 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)