Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00909/0.00909, allocations: 175.3 kB / 15.12 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.417/1.417, allocations: 194.5 MB / 210.3 MB, free: 7.539 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.001631/0.001631, allocations: 120.6 kB / 255.6 MB, free: 10.15 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1853/0.1853, allocations: 40.01 MB / 340.8 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000393/0.000393, allocations: 12.25 kB / 406.1 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1131, allocations: 54.87 MB / 461 MB, free: 3.324 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.089/6.202, allocations: 2.658 GB / 3.108 GB, free: 4.75 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/6.203, allocations: 87.28 kB / 3.108 GB, free: 4.707 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.314/9.517, allocations: 0.8006 GB / 3.909 GB, free: 36.69 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.385e-06/9.517, allocations: 0 / 3.909 GB, free: 36.69 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000247/9.518, allocations: 63 kB / 3.909 GB, free: 36.69 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.01776/9.535, allocations: 4.138 MB / 3.913 GB, free: 34.88 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/9.535, allocations: 7.875 kB / 3.913 GB, free: 34.88 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007159/9.543, allocations: 0.8415 MB / 3.914 GB, free: 34.75 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006662/9.549, allocations: 2.119 MB / 3.916 GB, free: 34.29 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002616/9.55, allocations: 179.8 kB / 3.916 GB, free: 34.29 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008758/9.55, allocations: 200.6 kB / 3.916 GB, free: 34.28 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008127/9.559, allocations: 3.584 MB / 3.92 GB, free: 33.73 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.55e-05/9.559, allocations: 3.656 kB / 3.92 GB, free: 33.73 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000303/9.559, allocations: 91.39 kB / 3.92 GB, free: 33.73 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002017/9.559, allocations: 162.5 kB / 3.92 GB, free: 33.73 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007428/9.567, allocations: 3.285 MB / 3.923 GB, free: 33.71 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.02068/9.587, allocations: 15.06 MB / 3.938 GB, free: 24.69 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005206/9.593, allocations: 2.296 MB / 3.94 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03363/9.626, allocations: 18.81 MB / 3.959 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00458/9.631, allocations: 1.64 MB / 3.96 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 4.649e-06/9.631, allocations: 3.656 kB / 3.96 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.01885/9.65, allocations: 8.182 MB / 3.968 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000666/9.65, allocations: 284.7 kB / 3.969 GB, free: 27.48 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002097/9.653, allocations: 1.42 MB / 3.97 GB, free: 27.29 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000291/9.653, allocations: 62.62 kB / 3.97 GB, free: 27.26 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007082/9.654, allocations: 0.9709 MB / 3.971 GB, free: 26.86 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004913/9.654, allocations: 0.5873 MB / 3.972 GB, free: 26.48 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/9.654, allocations: 45.78 kB / 3.972 GB, free: 26.48 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001876/9.654, allocations: 386.7 kB / 3.972 GB, free: 26.18 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001878/9.656, allocations: 1.154 MB / 3.973 GB, free: 26.17 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002077/9.658, allocations: 1.642 MB / 3.975 GB, free: 25.62 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002186/9.661, allocations: 1.379 MB / 3.976 GB, free: 25.57 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.618e-06/9.661, allocations: 7.469 kB / 3.976 GB, free: 25.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.007031/9.668, allocations: 3.933 MB / 3.98 GB, free: 25.35 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002019/9.67, allocations: 5.324 MB / 3.985 GB, free: 19.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.221e-05/9.67, allocations: 14.03 kB / 3.985 GB, free: 19.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01369/9.683, allocations: 2.929 MB / 3.988 GB, free: 19.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/9.685, allocations: 319.3 kB / 3.988 GB, free: 19.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005203/9.69, allocations: 3.495 MB / 3.992 GB, free: 19.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002767/9.693, allocations: 260.7 kB / 3.992 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002496/9.693, allocations: 101.8 kB / 3.992 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/9.693, allocations: 3.625 kB / 3.992 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006418/9.7, allocations: 3.529 MB / 3.995 GB, free: 19.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-05/9.7, allocations: 15.09 kB / 3.995 GB, free: 19.04 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006946/9.707, allocations: 1.767 MB / 3.997 GB, free: 19.01 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001675/9.708, allocations: 353 kB / 3.998 GB, free: 19.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004039/9.712, allocations: 2.764 MB / 4 GB, free: 18.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002831/9.715, allocations: 257.2 kB / 4 GB, free: 18.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004028/9.716, allocations: 102.1 kB / 4.001 GB, free: 18.45 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 () * Number of clocked 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.001823/9.717, allocations: 0.7183 MB / 4.001 GB, free: 18.21 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005139/9.718, allocations: 209.6 kB / 4.001 GB, free: 18.11 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01007/9.728, allocations: 7.766 MB / 4.009 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.209e-05/9.728, allocations: 94.06 kB / 4.009 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/9.728, allocations: 0 / 4.009 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008634/9.737, allocations: 6.66 MB / 4.016 GB, free: 16.52 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01447/9.751, allocations: 10.92 MB / 4.026 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.168e-06/9.751, allocations: 0 / 4.026 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001634/9.753, allocations: 403.3 kB / 4.027 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001403/9.755, allocations: 381.2 kB / 4.027 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001974/9.755, allocations: 64.8 kB / 4.027 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001521/9.756, allocations: 2.565 MB / 4.03 GB, free: 13.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/9.756, allocations: 3.406 kB / 4.03 GB, free: 13.64 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008897/9.765, allocations: 7.231 MB / 4.037 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001878/9.767, allocations: 0.7505 MB / 4.037 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004354/9.768, allocations: 52.28 kB / 4.037 GB, free: 11.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/9.769, allocations: 197 kB / 4.038 GB, free: 11.14 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002577/9.769, allocations: 148.4 kB / 4.038 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001373/9.77, allocations: 72.8 kB / 4.038 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001723/9.771, allocations: 1.185 MB / 4.039 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.7e-07/9.771, allocations: 0 / 4.039 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01175/9.783, allocations: 2.773 MB / 4.042 GB, free: 10.06 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) * Number of clocked states: 0 () * 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.0138/9.797, allocations: 2.815 MB / 4.044 GB, free: 9.402 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009011/9.806, allocations: 5.388 MB / 4.05 GB, free: 7.504 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/9.806, allocations: 0 / 4.05 GB, free: 7.504 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003114/9.809, allocations: 2.442 MB / 4.052 GB, free: 6.461 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004342/9.813, allocations: 0.8722 MB / 4.053 GB, free: 6.23 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4958/10.31, allocations: 130.9 MB / 4.181 GB, free: 52.58 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00164/10.31, allocations: 2.311 MB / 4.183 GB, free: 51.78 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.003516/10.31, allocations: 1.722 MB / 4.185 GB, free: 51.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005012/10.31, allocations: 172.9 kB / 4.185 GB, free: 51.7 MB / 0.5417 GB Notification: Performance of SimCode: time 1.263e-06/10.31, allocations: 1.125 kB / 4.185 GB, free: 51.7 MB / 0.5417 GB Notification: Performance of Templates: time 0.1113/10.43, allocations: 91.76 MB / 4.274 GB, free: 11.85 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1)