Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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.SeriesPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009921/0.0009922, 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.076/1.076, 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.001532/0.001532, allocations: 114.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.1536/0.1536, allocations: 37.98 MB / 300.4 MB, free: 5.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.222e-05/3.225e-05, allocations: 4 kB / 357 MB, free: 32.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07341/0.07346, allocations: 48.71 MB / 405.7 MB, free: 15.65 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.846/5.919, allocations: 2.547 GB / 2.944 GB, free: 87.96 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/5.92, allocations: 78.56 kB / 2.944 GB, free: 87.95 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.135/9.055, allocations: 0.7779 GB / 3.722 GB, free: 11.57 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.723e-06/9.055, allocations: 0 / 3.722 GB, free: 11.57 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002244/9.055, allocations: 63.77 kB / 3.722 GB, free: 11.51 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.01951/9.075, allocations: 3.735 MB / 3.725 GB, free: 7.738 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/9.075, allocations: 8.031 kB / 3.725 GB, free: 7.73 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007103/9.082, allocations: 0.8166 MB / 3.726 GB, free: 6.91 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006821/9.089, allocations: 2.092 MB / 3.728 GB, free: 4.797 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002364/9.089, allocations: 186.2 kB / 3.728 GB, free: 4.625 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006615/9.09, allocations: 187.7 kB / 3.728 GB, free: 4.449 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008113/9.098, allocations: 3.564 MB / 3.732 GB, free: 0.7305 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.283e-05/9.098, allocations: 7.938 kB / 3.732 GB, free: 0.7227 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002645/9.098, allocations: 82.62 kB / 3.732 GB, free: 0.6523 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002222/9.098, allocations: 163.6 kB / 3.732 GB, free: 0.4922 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4367/9.535, allocations: 3.164 MB / 3.735 GB, free: 30.89 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.02434/9.56, allocations: 15.05 MB / 3.75 GB, free: 22.07 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004928/9.564, allocations: 2.214 MB / 3.752 GB, free: 22.04 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00173/9.566, allocations: 1.035 MB / 3.753 GB, free: 22.03 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03518/9.601, allocations: 18.85 MB / 3.772 GB, free: 26.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004174/9.606, allocations: 1.639 MB / 3.773 GB, free: 26.21 MB / 490.7 MB Notification: Performance of pre-optimization done (n=153): time 5.22e-06/9.606, allocations: 0 / 3.773 GB, free: 26.21 MB / 490.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe2.mediums[2].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=169): time 0.02183/9.628, allocations: 9.094 MB / 3.782 GB, free: 25.33 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/9.628, allocations: 284 kB / 3.782 GB, free: 25.02 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002231/9.63, allocations: 1.396 MB / 3.784 GB, free: 24.84 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000233/9.63, allocations: 63.27 kB / 3.784 GB, free: 24.81 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008076/9.631, allocations: 0.9815 MB / 3.785 GB, free: 24.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004868/9.632, allocations: 0.5804 MB / 3.785 GB, free: 24.21 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/9.632, allocations: 44.62 kB / 3.785 GB, free: 24.21 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001971/9.632, allocations: 390.2 kB / 3.786 GB, free: 23.9 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001427/9.633, allocations: 1.032 MB / 3.787 GB, free: 23.89 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001707/9.635, allocations: 1.533 MB / 3.788 GB, free: 23.34 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001767/9.637, allocations: 1.276 MB / 3.789 GB, free: 23.28 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/9.637, allocations: 4.5 kB / 3.789 GB, free: 23.28 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.005338/9.642, allocations: 3.11 MB / 3.792 GB, free: 23.04 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002506/9.645, allocations: 5.315 MB / 3.798 GB, free: 17.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.883e-05/9.645, allocations: 17.7 kB / 3.798 GB, free: 17.43 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008769/9.646, allocations: 264.4 kB / 3.798 GB, free: 17.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002272/9.648, allocations: 0.5197 MB / 3.798 GB, free: 17.39 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/9.65, allocations: 2.491 MB / 3.801 GB, free: 15.32 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002776/9.652, allocations: 261.9 kB / 3.801 GB, free: 15.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000232/9.653, allocations: 106.2 kB / 3.801 GB, free: 15.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/9.653, allocations: 3.562 kB / 3.801 GB, free: 15.32 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004492/9.657, allocations: 2.846 MB / 3.804 GB, free: 15.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.154e-05/9.657, allocations: 12.94 kB / 3.804 GB, free: 15.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007396/9.658, allocations: 260 kB / 3.804 GB, free: 15.17 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00186/9.66, allocations: 0.5147 MB / 3.805 GB, free: 15.17 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001628/9.662, allocations: 2.504 MB / 3.807 GB, free: 13.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002507/9.664, allocations: 259.1 kB / 3.807 GB, free: 13.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002041/9.664, allocations: 98.52 kB / 3.808 GB, free: 13.09 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 (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.0008448/9.665, allocations: 263.6 kB / 3.808 GB, free: 12.95 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003685/9.665, allocations: 194.2 kB / 3.808 GB, free: 12.85 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009144/9.675, allocations: 7.711 MB / 3.815 GB, free: 12.07 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.717e-05/9.675, allocations: 85.17 kB / 3.816 GB, free: 12.07 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/9.675, allocations: 3.969 kB / 3.816 GB, free: 12.07 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006847/9.682, allocations: 6.597 MB / 3.822 GB, free: 11.22 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01429/9.696, allocations: 10.81 MB / 3.833 GB, free: 10.47 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/9.696, allocations: 0 / 3.833 GB, free: 10.47 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001641/9.698, allocations: 405.6 kB / 3.833 GB, free: 10.47 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/9.699, allocations: 355.6 kB / 3.833 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001539/9.699, allocations: 60.08 kB / 3.833 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001971/9.701, allocations: 2.572 MB / 3.836 GB, free: 8.352 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/9.701, allocations: 2.844 kB / 3.836 GB, free: 8.352 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008465/9.71, allocations: 6.902 MB / 3.843 GB, free: 7.715 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002072/9.712, allocations: 0.7468 MB / 3.843 GB, free: 7.379 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003614/9.712, allocations: 48.64 kB / 3.843 GB, free: 7.379 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001459/9.714, allocations: 195.8 kB / 3.844 GB, free: 7.371 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003122/9.714, allocations: 150.3 kB / 3.844 GB, free: 7.371 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/9.714, allocations: 63.88 kB / 3.844 GB, free: 7.371 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001912/9.716, allocations: 1.169 MB / 3.845 GB, free: 7.211 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.61e-07/9.716, allocations: 0 / 3.845 GB, free: 7.211 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01155/9.728, allocations: 2.747 MB / 3.848 GB, free: 7.086 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.01364/9.741, allocations: 2.812 MB / 3.85 GB, free: 22.78 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008746/9.75, allocations: 5.028 MB / 3.855 GB, free: 22.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/9.75, allocations: 0 / 3.855 GB, free: 22.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003185/9.753, allocations: 2.34 MB / 3.858 GB, free: 22.41 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004625/9.758, allocations: 0.86 MB / 3.858 GB, free: 22.39 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5932/10.35, allocations: 125.9 MB / 3.981 GB, free: 56.52 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001536/10.35, allocations: 2.313 MB / 3.984 GB, free: 55.71 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005367/10.36, allocations: 2.822 MB / 3.986 GB, free: 55.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005439/10.36, allocations: 168.6 kB / 3.986 GB, free: 55.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.543e-06/10.36, allocations: 3.562 kB / 3.986 GB, free: 55.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.1196/10.48, allocations: 86.8 MB / 4.071 GB, free: 23.28 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1)