Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,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.SeriesPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,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.SeriesPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001448/0.001448, allocations: 186.3 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.873/1.873, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001125/0.001125, allocations: 95.5 kB / 270.9 MB, free: 8.359 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.5007/0.5007, allocations: 43.55 MB / 362.7 MB, free: 51.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004705/0.0004707, allocations: 12 kB / 431.4 MB, free: 5.93 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1227, allocations: 58.85 MB / 490.2 MB, free: 11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.338/8.46, allocations: 2.828 GB / 3.306 GB, free: 57.51 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002708/8.461, allocations: 84.56 kB / 3.306 GB, free: 57.46 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.384/12.85, allocations: 0.8676 GB / 4.174 GB, free: 13.67 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.555e-06/12.85, allocations: 7.938 kB / 4.174 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003098/12.85, allocations: 69.78 kB / 4.174 GB, free: 13.6 MB / 0.5417 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.02096/12.87, allocations: 4.13 MB / 4.178 GB, free: 9.414 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/12.87, allocations: 12.03 kB / 4.178 GB, free: 9.402 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009495/12.88, allocations: 0.8444 MB / 4.179 GB, free: 8.555 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009394/12.89, allocations: 2.1 MB / 4.181 GB, free: 6.398 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004058/12.89, allocations: 179.7 kB / 4.181 GB, free: 6.223 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001112/12.89, allocations: 203.9 kB / 4.181 GB, free: 6.023 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01444/12.9, allocations: 3.596 MB / 4.185 GB, free: 2.223 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001034/12.9, allocations: 7.922 kB / 4.185 GB, free: 2.215 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006644/12.9, allocations: 87.97 kB / 4.185 GB, free: 2.129 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003554/12.9, allocations: 159.6 kB / 4.185 GB, free: 1.973 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4503/13.35, allocations: 3.294 MB / 4.188 GB, free: 34.92 MB / 0.5417 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.03397/13.39, allocations: 15.19 MB / 4.203 GB, free: 26.12 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009812/13.4, allocations: 2.345 MB / 4.205 GB, free: 26.09 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07899/13.48, allocations: 24.46 MB / 4.229 GB, free: 27.17 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007439/13.48, allocations: 1.661 MB / 4.231 GB, free: 27.08 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 6.813e-06/13.48, allocations: 3.188 kB / 4.231 GB, free: 27.08 MB / 0.5573 GB Notification: Performance of matching and sorting (n=171): time 0.03656/13.52, allocations: 8.323 MB / 4.239 GB, free: 26.13 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001907/13.52, allocations: 280.7 kB / 4.239 GB, free: 25.82 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003835/13.52, allocations: 1.467 MB / 4.241 GB, free: 25.65 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006282/13.52, allocations: 58.42 kB / 4.241 GB, free: 25.62 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001179/13.53, allocations: 0.898 MB / 4.242 GB, free: 25.26 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001094/13.53, allocations: 0.5892 MB / 4.242 GB, free: 24.97 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003517/13.53, allocations: 43.34 kB / 4.242 GB, free: 24.97 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002821/13.53, allocations: 394.6 kB / 4.243 GB, free: 24.65 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00402/13.53, allocations: 1.161 MB / 4.244 GB, free: 24.65 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004753/13.54, allocations: 1.62 MB / 4.245 GB, free: 24.15 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004626/13.54, allocations: 1.383 MB / 4.247 GB, free: 24.1 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.469e-05/13.54, allocations: 3.594 kB / 4.247 GB, free: 24.1 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01454/13.56, allocations: 3.851 MB / 4.251 GB, free: 23.94 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001965/13.56, allocations: 4.653 MB / 4.255 GB, free: 19.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.244e-05/13.56, allocations: 12.44 kB / 4.255 GB, free: 19.11 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02954/13.59, allocations: 3.192 MB / 4.258 GB, free: 19.09 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00236/13.59, allocations: 308.6 kB / 4.259 GB, free: 19.09 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01015/13.6, allocations: 3.511 MB / 4.262 GB, free: 18.51 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004261/13.6, allocations: 257.2 kB / 4.262 GB, free: 18.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007053/13.61, allocations: 103.2 kB / 4.262 GB, free: 18.5 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/13.61, allocations: 3.281 kB / 4.262 GB, free: 18.5 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01291/13.62, allocations: 3.553 MB / 4.266 GB, free: 18.42 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.798e-05/13.62, allocations: 20.3 kB / 4.266 GB, free: 18.42 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01204/13.63, allocations: 1.721 MB / 4.268 GB, free: 18.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002648/13.63, allocations: 350.6 kB / 4.268 GB, free: 18.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007372/13.64, allocations: 2.743 MB / 4.271 GB, free: 17.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003274/13.64, allocations: 257.9 kB / 4.271 GB, free: 17.84 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005534/13.64, allocations: 99.12 kB / 4.271 GB, free: 17.84 MB / 0.5573 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.002437/13.65, allocations: 0.7234 MB / 4.272 GB, free: 17.61 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007613/13.65, allocations: 205.8 kB / 4.272 GB, free: 17.51 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01741/13.67, allocations: 7.829 MB / 4.279 GB, free: 16.82 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000102/13.67, allocations: 91.34 kB / 4.279 GB, free: 16.82 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.496e-05/13.67, allocations: 3.781 kB / 4.279 GB, free: 16.82 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0142/13.68, allocations: 6.734 MB / 4.286 GB, free: 16 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02443/13.7, allocations: 11.05 MB / 4.297 GB, free: 15.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.318e-05/13.7, allocations: 0 / 4.297 GB, free: 15.29 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003385/13.71, allocations: 408.9 kB / 4.297 GB, free: 15.29 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002409/13.71, allocations: 382.2 kB / 4.298 GB, free: 15.25 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005389/13.71, allocations: 63.72 kB / 4.298 GB, free: 15.25 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002747/13.71, allocations: 2.572 MB / 4.3 GB, free: 29.17 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/13.71, allocations: 2.625 kB / 4.3 GB, free: 29.17 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0174/13.73, allocations: 7.302 MB / 4.307 GB, free: 28.54 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00259/13.73, allocations: 0.7827 MB / 4.308 GB, free: 28.2 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001043/13.73, allocations: 46.84 kB / 4.308 GB, free: 28.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003531/13.74, allocations: 208.7 kB / 4.308 GB, free: 28.19 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007401/13.74, allocations: 150.4 kB / 4.308 GB, free: 28.18 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003127/13.74, allocations: 64.98 kB / 4.309 GB, free: 28.18 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003397/13.74, allocations: 1.318 MB / 4.31 GB, free: 28.04 MB / 0.573 GB Notification: Performance of sort global known variables: time 8.51e-07/13.74, allocations: 0 / 4.31 GB, free: 28.04 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0134/13.76, allocations: 2.805 MB / 4.313 GB, free: 27.91 MB / 0.573 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.01603/13.77, allocations: 2.817 MB / 4.315 GB, free: 27.61 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01674/13.79, allocations: 5.386 MB / 4.321 GB, free: 27.3 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/13.79, allocations: 0 / 4.321 GB, free: 27.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005906/13.79, allocations: 2.45 MB / 4.323 GB, free: 27.21 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008497/13.8, allocations: 0.9249 MB / 4.324 GB, free: 27.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0198/13.82, allocations: 9.077 MB / 4.333 GB, free: 23.79 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003628/13.83, allocations: 2.265 MB / 4.335 GB, free: 23 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001388/13.83, allocations: 187.8 kB / 4.335 GB, free: 22.99 MB / 0.573 GB Notification: Performance of SimCode: time 1.913e-06/13.83, allocations: 0 / 4.335 GB, free: 22.99 MB / 0.573 GB Notification: Performance of Templates: time 0.6338/14.46, allocations: 98.82 MB / 4.432 GB, free: 65.12 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1)