Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,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.SeriesPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,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.SeriesPipes12") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001478/0.001478, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.909/1.909, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001161/0.001161, allocations: 90.67 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5037/0.5037, allocations: 43.56 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006395/0.0006396, allocations: 16 kB / 431.4 MB, free: 6.148 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1244, allocations: 58.84 MB / 490.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.494/8.619, allocations: 2.828 GB / 3.306 GB, free: 58.53 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/8.619, allocations: 82.7 kB / 3.306 GB, free: 58.49 MB / 0.5105 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.231/12.85, allocations: 0.8054 GB / 4.112 GB, free: 33.06 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.166e-06/12.85, allocations: 0 / 4.112 GB, free: 33.06 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003372/12.85, allocations: 68.5 kB / 4.112 GB, free: 33.04 MB / 0.5261 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.02006/12.87, allocations: 4.129 MB / 4.116 GB, free: 30.79 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/12.87, allocations: 7.781 kB / 4.116 GB, free: 30.79 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009357/12.88, allocations: 0.849 MB / 4.117 GB, free: 30.57 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008856/12.89, allocations: 2.105 MB / 4.119 GB, free: 29.62 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000379/12.89, allocations: 176.8 kB / 4.119 GB, free: 29.55 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001166/12.89, allocations: 210.5 kB / 4.119 GB, free: 29.48 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01313/12.9, allocations: 3.595 MB / 4.123 GB, free: 27.98 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.301e-05/12.9, allocations: 3.938 kB / 4.123 GB, free: 27.98 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004286/12.9, allocations: 90.14 kB / 4.123 GB, free: 27.92 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002961/12.9, allocations: 167.2 kB / 4.123 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01296/12.92, allocations: 3.294 MB / 4.126 GB, free: 26.93 MB / 0.5261 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.03157/12.95, allocations: 15.19 MB / 4.141 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009413/12.96, allocations: 2.345 MB / 4.143 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07746/13.04, allocations: 24.46 MB / 4.167 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007166/13.04, allocations: 1.66 MB / 4.169 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=155): time 6.071e-06/13.04, allocations: 4 kB / 4.169 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=171): time 0.03659/13.08, allocations: 8.302 MB / 4.177 GB, free: 3.086 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001685/13.08, allocations: 278.3 kB / 4.177 GB, free: 2.754 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003813/13.08, allocations: 1.479 MB / 4.179 GB, free: 1.504 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006115/13.08, allocations: 57.7 kB / 4.179 GB, free: 1.441 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001263/13.09, allocations: 0.9021 MB / 4.179 GB, free: 0.5898 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001219/13.09, allocations: 0.5865 MB / 4.18 GB, free: 64 kB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003316/13.09, allocations: 44 kB / 4.18 GB, free: 20 kB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.4361/13.52, allocations: 396.5 kB / 4.18 GB, free: 49.96 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004878/13.53, allocations: 1.158 MB / 4.182 GB, free: 49.95 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005146/13.53, allocations: 1.627 MB / 4.183 GB, free: 49.46 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005209/13.54, allocations: 1.381 MB / 4.185 GB, free: 49.41 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.789e-05/13.54, allocations: 3.875 kB / 4.185 GB, free: 49.41 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01429/13.55, allocations: 3.851 MB / 4.188 GB, free: 49.29 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001098/13.55, allocations: 4.66 MB / 4.193 GB, free: 44.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-05/13.56, allocations: 12.12 kB / 4.193 GB, free: 44.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02941/13.58, allocations: 3.19 MB / 4.196 GB, free: 44.44 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002345/13.59, allocations: 307.8 kB / 4.196 GB, free: 44.44 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/13.6, allocations: 3.508 MB / 4.2 GB, free: 43.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004161/13.6, allocations: 259.7 kB / 4.2 GB, free: 43.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000719/13.6, allocations: 102.2 kB / 4.2 GB, free: 43.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/13.6, allocations: 7.328 kB / 4.2 GB, free: 43.89 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01264/13.61, allocations: 3.562 MB / 4.204 GB, free: 43.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.333e-05/13.61, allocations: 16.45 kB / 4.204 GB, free: 43.81 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0119/13.63, allocations: 1.715 MB / 4.205 GB, free: 43.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002731/13.63, allocations: 349.5 kB / 4.206 GB, free: 43.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007658/13.64, allocations: 2.75 MB / 4.208 GB, free: 43.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003452/13.64, allocations: 255.2 kB / 4.208 GB, free: 43.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007698/13.64, allocations: 99.73 kB / 4.209 GB, free: 43.25 MB / 0.5417 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,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 (157): * Single equations (assignments): 153 * 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.002507/13.64, allocations: 0.7131 MB / 4.209 GB, free: 43.03 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007017/13.64, allocations: 207.9 kB / 4.209 GB, free: 43.03 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01946/13.66, allocations: 7.839 MB / 4.217 GB, free: 42.48 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001221/13.66, allocations: 89.02 kB / 4.217 GB, free: 42.48 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.534e-05/13.66, allocations: 3.141 kB / 4.217 GB, free: 42.48 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01478/13.68, allocations: 6.731 MB / 4.224 GB, free: 41.66 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02732/13.71, allocations: 11.05 MB / 4.235 GB, free: 41.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.495e-05/13.71, allocations: 2.781 kB / 4.235 GB, free: 41.05 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003559/13.71, allocations: 409.8 kB / 4.235 GB, free: 41.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002501/13.71, allocations: 384 kB / 4.235 GB, free: 41.01 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006272/13.71, allocations: 73.92 kB / 4.235 GB, free: 41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001925/13.72, allocations: 2.566 MB / 4.238 GB, free: 38.93 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/13.72, allocations: 0 / 4.238 GB, free: 38.93 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01838/13.73, allocations: 7.305 MB / 4.245 GB, free: 38.29 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002622/13.74, allocations: 0.7754 MB / 4.246 GB, free: 38.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008394/13.74, allocations: 54.89 kB / 4.246 GB, free: 38.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003504/13.74, allocations: 198.2 kB / 4.246 GB, free: 38.02 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007306/13.74, allocations: 150.3 kB / 4.246 GB, free: 38.01 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002756/13.74, allocations: 70.84 kB / 4.246 GB, free: 38.01 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003164/13.75, allocations: 1.316 MB / 4.248 GB, free: 37.86 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.222e-06/13.75, allocations: 0 / 4.248 GB, free: 37.86 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01395/13.76, allocations: 2.801 MB / 4.25 GB, free: 37.86 MB / 0.5417 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 (198): * Single equations (assignments): 168 * 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.01577/13.78, allocations: 2.819 MB / 4.253 GB, free: 37.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01651/13.79, allocations: 5.395 MB / 4.258 GB, free: 37.28 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/13.79, allocations: 0 / 4.258 GB, free: 37.28 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005863/13.8, allocations: 2.449 MB / 4.261 GB, free: 37.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008425/13.81, allocations: 0.9292 MB / 4.262 GB, free: 37.18 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02033/13.83, allocations: 9.06 MB / 4.27 GB, free: 33.89 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003373/13.83, allocations: 2.267 MB / 4.273 GB, free: 33.14 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00128/13.83, allocations: 186.8 kB / 4.273 GB, free: 33.13 MB / 0.5417 GB Notification: Performance of SimCode: time 2.685e-06/13.83, allocations: 0 / 4.273 GB, free: 33.13 MB / 0.5417 GB Notification: Performance of Templates: time 0.1784/14.01, allocations: 98.65 MB / 4.369 GB, free: 2.348 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1)