Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001471/0.001471, allocations: 180.1 kB / 8.366 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.976/1.976, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 87.44 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.32/0.32, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.645e-05/1.642e-05, allocations: 4.219 kB / 418.2 MB, free: 41.03 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3954/0.3954, allocations: 58.85 MB / 477.1 MB, free: 5.246 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.771/9.166, allocations: 2.827 GB / 3.293 GB, free: 103.2 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003155/9.166, allocations: 81.3 kB / 3.293 GB, free: 103.2 MB / 0.4952 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308: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 4.304/13.47, allocations: 0.7952 GB / 4.088 GB, free: 37.12 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.224e-06/13.47, allocations: 1.531 kB / 4.088 GB, free: 37.12 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.000305/13.47, allocations: 65.03 kB / 4.088 GB, free: 37.11 MB / 0.5265 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.01892/13.49, allocations: 3.858 MB / 4.092 GB, free: 35.32 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 6.942e-05/13.49, allocations: 10.66 kB / 4.092 GB, free: 35.32 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009355/13.5, allocations: 0.8403 MB / 4.093 GB, free: 35.19 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009695/13.51, allocations: 2.087 MB / 4.095 GB, free: 34.73 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000307/13.51, allocations: 90.73 kB / 4.095 GB, free: 34.73 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001099/13.51, allocations: 122 kB / 4.095 GB, free: 34.73 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007889/13.52, allocations: 2.541 MB / 4.097 GB, free: 34.71 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008974/13.53, allocations: 2.794 MB / 4.1 GB, free: 34.17 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.842e-05/13.53, allocations: 9.5 kB / 4.1 GB, free: 34.17 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003729/13.53, allocations: 7.312 kB / 4.1 GB, free: 34.17 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000329/13.53, allocations: 163.4 kB / 4.1 GB, free: 34.17 MB / 0.5265 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.2998/13.83, allocations: 93.93 MB / 4.192 GB, free: 23.61 MB / 0.5733 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003941/13.83, allocations: 1.645 MB / 4.194 GB, free: 23.56 MB / 0.5733 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002076/13.83, allocations: 0.9847 MB / 4.195 GB, free: 23.55 MB / 0.5733 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05418/13.89, allocations: 16.94 MB / 4.211 GB, free: 12.55 MB / 0.5733 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002843/13.89, allocations: 1.177 MB / 4.212 GB, free: 12.41 MB / 0.5733 GB Notification: Performance of pre-optimization done (n=147): time 7.204e-06/13.89, allocations: 4 kB / 4.212 GB, free: 12.41 MB / 0.5733 GB Notification: Performance of matching and sorting (n=163): time 0.03376/13.93, allocations: 8.085 MB / 4.22 GB, free: 26.7 MB / 0.589 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002593/13.93, allocations: 387 kB / 4.22 GB, free: 26.27 MB / 0.589 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002369/13.93, allocations: 1.124 MB / 4.222 GB, free: 26.09 MB / 0.589 GB Notification: Performance of collectPreVariables (initialization): time 0.0005521/13.93, allocations: 29.05 kB / 4.222 GB, free: 26.06 MB / 0.589 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009796/13.93, allocations: 0.9674 MB / 4.223 GB, free: 25.54 MB / 0.589 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008786/13.93, allocations: 0.5445 MB / 4.223 GB, free: 25.18 MB / 0.589 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000207/13.93, allocations: 1.938 kB / 4.223 GB, free: 25.18 MB / 0.589 GB Notification: Performance of setup shared object (initialization): time 0.0002377/13.93, allocations: 396.3 kB / 4.223 GB, free: 24.86 MB / 0.589 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002294/13.93, allocations: 1.019 MB / 4.224 GB, free: 24.86 MB / 0.589 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002646/13.94, allocations: 1.475 MB / 4.226 GB, free: 24.35 MB / 0.589 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02263/13.96, allocations: 3.32 MB / 4.229 GB, free: 23.1 MB / 0.589 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.843e-05/13.96, allocations: 7.75 kB / 4.229 GB, free: 23.1 MB / 0.589 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.0282/13.99, allocations: 4.932 MB / 4.234 GB, free: 20.26 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 0.002035/13.99, allocations: 4.651 MB / 4.239 GB, free: 15.36 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-05/13.99, allocations: 19 kB / 4.239 GB, free: 15.34 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/13.99, allocations: 245.6 kB / 4.239 GB, free: 15.19 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004263/13.99, allocations: 0.5086 MB / 4.239 GB, free: 14.81 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002435/14, allocations: 2.524 MB / 4.242 GB, free: 12.47 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004336/14, allocations: 263.6 kB / 4.242 GB, free: 12.27 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003726/14, allocations: 105.8 kB / 4.242 GB, free: 12.2 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/14, allocations: 4 kB / 4.242 GB, free: 12.2 MB / 0.589 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02644/14.03, allocations: 4.59 MB / 4.247 GB, free: 9.602 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.924e-05/14.03, allocations: 13.88 kB / 4.247 GB, free: 9.59 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008978/14.03, allocations: 245.5 kB / 4.247 GB, free: 9.441 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004336/14.03, allocations: 0.5052 MB / 4.247 GB, free: 9.062 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002736/14.04, allocations: 2.514 MB / 4.25 GB, free: 6.727 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003697/14.04, allocations: 232.7 kB / 4.25 GB, free: 6.559 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007144/14.04, allocations: 101.3 kB / 4.25 GB, free: 6.488 MB / 0.589 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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,pipe1.statesFM[2].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,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 (246): * Single equations (assignments): 239 * 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.000908/14.04, allocations: 204.4 kB / 4.25 GB, free: 6.316 MB / 0.589 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008189/14.04, allocations: 181.8 kB / 4.25 GB, free: 6.137 MB / 0.589 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01727/14.06, allocations: 6.884 MB / 4.257 GB, free: 2.363 MB / 0.589 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001091/14.06, allocations: 82.39 kB / 4.257 GB, free: 2.332 MB / 0.589 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/14.06, allocations: 0 / 4.257 GB, free: 2.332 MB / 0.589 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4604/14.52, allocations: 5.786 MB / 4.263 GB, free: 97.27 MB / 0.589 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02687/14.55, allocations: 9.35 MB / 4.272 GB, free: 96.85 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-05/14.55, allocations: 1.688 kB / 4.272 GB, free: 96.85 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005166/14.55, allocations: 363.2 kB / 4.272 GB, free: 96.85 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002605/14.56, allocations: 336.9 kB / 4.273 GB, free: 96.82 MB / 0.589 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006933/14.56, allocations: 38.28 kB / 4.273 GB, free: 96.82 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002454/14.56, allocations: 2.687 MB / 4.275 GB, free: 94.76 MB / 0.589 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/14.56, allocations: 3.875 kB / 4.275 GB, free: 94.76 MB / 0.589 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01775/14.58, allocations: 6.478 MB / 4.282 GB, free: 94.33 MB / 0.589 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002672/14.58, allocations: 0.7018 MB / 4.282 GB, free: 94.21 MB / 0.589 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008649/14.58, allocations: 20.72 kB / 4.282 GB, free: 94.21 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003463/14.58, allocations: 161.9 kB / 4.283 GB, free: 94.21 MB / 0.589 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005852/14.58, allocations: 132.6 kB / 4.283 GB, free: 94.2 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002693/14.58, allocations: 64.77 kB / 4.283 GB, free: 94.2 MB / 0.589 GB Notification: Performance of sorting global known variables: time 0.002763/14.59, allocations: 1.085 MB / 4.284 GB, free: 94.09 MB / 0.589 GB Notification: Performance of sort global known variables: time 1.273e-06/14.59, allocations: 1.094 kB / 4.284 GB, free: 94.09 MB / 0.589 GB Notification: Performance of remove unused functions: time 0.01429/14.6, allocations: 2.662 MB / 4.286 GB, free: 94.09 MB / 0.589 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: 44 ($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,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 (184): * Single equations (assignments): 158 * 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.017/14.62, allocations: 2.993 MB / 4.289 GB, free: 93.95 MB / 0.589 GB Notification: Performance of simCode: created initialization part: time 0.01166/14.63, allocations: 4.645 MB / 4.294 GB, free: 93.71 MB / 0.589 GB Notification: Performance of simCode: created event and clocks part: time 1.259e-05/14.63, allocations: 4.312 kB / 4.294 GB, free: 93.71 MB / 0.589 GB Notification: Performance of simCode: created simulation system equations: time 0.005311/14.64, allocations: 2.166 MB / 4.296 GB, free: 93.65 MB / 0.589 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007823/14.64, allocations: 0.7698 MB / 4.297 GB, free: 93.63 MB / 0.589 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01493/14.66, allocations: 5.719 MB / 4.302 GB, free: 92.54 MB / 0.589 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002399/14.66, allocations: 2.173 MB / 4.304 GB, free: 91.8 MB / 0.589 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001503/14.66, allocations: 201.7 kB / 4.305 GB, free: 91.79 MB / 0.589 GB Notification: Performance of SimCode: time 1.473e-06/14.66, allocations: 0 / 4.305 GB, free: 91.79 MB / 0.589 GB Notification: Performance of Templates: time 0.2008/14.86, allocations: 113.5 MB / 4.416 GB, free: 74.83 MB / 0.589 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1)