Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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.",fileNamePrefix="ModelicaTest_trunk_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.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001321, allocations: 196.3 kB / 16.79 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 226.5 MB / 244.1 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009031/0.0009034, allocations: 99.59 kB / 296.1 MB, free: 6.699 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3303/0.3303, allocations: 44.82 MB / 393 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000265/0.0002651, allocations: 11.98 kB / 465.9 MB, free: 12.76 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3604, allocations: 62.95 MB / 0.5165 GB, free: 37.2 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.592/5.952, allocations: 2.834 GB / 3.35 GB, free: 153 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/5.952, allocations: 79.59 kB / 3.35 GB, free: 153 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 2.598/8.55, allocations: 0.8319 GB / 4.182 GB, free: 42.61 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.743e-06/8.55, allocations: 2.781 kB / 4.182 GB, free: 42.61 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002653/8.55, allocations: 64.34 kB / 4.182 GB, free: 42.61 MB / 0.573 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.01422/8.565, allocations: 4.124 MB / 4.186 GB, free: 40.9 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/8.565, allocations: 7.219 kB / 4.186 GB, free: 40.9 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005975/8.571, allocations: 0.8418 MB / 4.187 GB, free: 40.77 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02246/8.593, allocations: 13.6 MB / 4.2 GB, free: 40.17 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002577/8.593, allocations: 179.9 kB / 4.201 GB, free: 40.16 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007978/8.594, allocations: 205.6 kB / 4.201 GB, free: 40.16 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009086/8.603, allocations: 3.611 MB / 4.204 GB, free: 39.6 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.627e-05/8.604, allocations: 10.94 kB / 4.204 GB, free: 39.6 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005077/8.604, allocations: 89.22 kB / 4.204 GB, free: 39.6 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002198/8.604, allocations: 157.4 kB / 4.205 GB, free: 39.59 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007751/8.612, allocations: 3.301 MB / 4.208 GB, free: 39.58 MB / 0.573 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.01692/8.629, allocations: 15.17 MB / 4.223 GB, free: 30.55 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005001/8.634, allocations: 2.343 MB / 4.225 GB, free: 30.52 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001756/8.636, allocations: 1.171 MB / 4.226 GB, free: 30.51 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04042/8.676, allocations: 27.02 MB / 4.252 GB, free: 28.86 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004366/8.681, allocations: 1.674 MB / 4.254 GB, free: 28.75 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=155): time 4.389e-06/8.681, allocations: 0 / 4.254 GB, free: 28.75 MB / 0.5886 GB Notification: Performance of matching and sorting (n=171): time 0.01916/8.7, allocations: 8.244 MB / 4.262 GB, free: 27.77 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/8.7, allocations: 281.8 kB / 4.262 GB, free: 27.45 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002368/8.702, allocations: 1.646 MB / 4.264 GB, free: 27.26 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.000222/8.703, allocations: 61.83 kB / 4.264 GB, free: 27.23 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006926/8.703, allocations: 0.9626 MB / 4.265 GB, free: 26.84 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004706/8.704, allocations: 0.5865 MB / 4.266 GB, free: 26.47 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/8.704, allocations: 43.69 kB / 4.266 GB, free: 26.47 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001652/8.704, allocations: 382.6 kB / 4.266 GB, free: 26.16 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001977/8.706, allocations: 1.167 MB / 4.267 GB, free: 26.15 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002128/8.708, allocations: 1.63 MB / 4.269 GB, free: 25.64 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003943/8.712, allocations: 2.843 MB / 4.271 GB, free: 25.09 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.886e-06/8.712, allocations: 7.531 kB / 4.271 GB, free: 25.08 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.006491/8.719, allocations: 3.97 MB / 4.275 GB, free: 24.84 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002203/8.719, allocations: 481.8 kB / 4.276 GB, free: 24.28 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.983e-05/8.719, allocations: 13.09 kB / 4.276 GB, free: 24.28 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01417/8.733, allocations: 3.201 MB / 4.279 GB, free: 24.17 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/8.734, allocations: 305.7 kB / 4.279 GB, free: 24.17 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005106/8.739, allocations: 3.507 MB / 4.283 GB, free: 23.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002291/8.742, allocations: 268.7 kB / 4.283 GB, free: 23.55 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003011/8.742, allocations: 98.52 kB / 4.283 GB, free: 23.55 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/8.742, allocations: 3.844 kB / 4.283 GB, free: 23.55 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006258/8.748, allocations: 3.565 MB / 4.287 GB, free: 23.44 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.641e-05/8.748, allocations: 13.12 kB / 4.287 GB, free: 23.44 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006372/8.755, allocations: 1.765 MB / 4.288 GB, free: 23.38 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/8.756, allocations: 348.3 kB / 4.289 GB, free: 23.38 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003854/8.76, allocations: 2.766 MB / 4.291 GB, free: 22.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002219/8.762, allocations: 266.2 kB / 4.292 GB, free: 22.77 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003231/8.763, allocations: 99.38 kB / 4.292 GB, free: 22.77 MB / 0.5886 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.001617/8.764, allocations: 0.7188 MB / 4.292 GB, free: 22.54 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004989/8.765, allocations: 203.3 kB / 4.293 GB, free: 22.43 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009794/8.775, allocations: 7.842 MB / 4.3 GB, free: 21.61 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.659e-05/8.775, allocations: 87.88 kB / 4.3 GB, free: 21.61 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/8.775, allocations: 0 / 4.3 GB, free: 21.61 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007479/8.782, allocations: 6.724 MB / 4.307 GB, free: 20.77 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01374/8.796, allocations: 11.07 MB / 4.318 GB, free: 19.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/8.796, allocations: 0 / 4.318 GB, free: 19.98 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001612/8.798, allocations: 399.5 kB / 4.318 GB, free: 19.97 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001329/8.799, allocations: 380.8 kB / 4.318 GB, free: 19.93 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000212/8.799, allocations: 64.75 kB / 4.318 GB, free: 19.93 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001538/8.801, allocations: 2.576 MB / 4.321 GB, free: 17.84 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/8.801, allocations: 3.281 kB / 4.321 GB, free: 17.84 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008901/8.81, allocations: 7.313 MB / 4.328 GB, free: 15 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001432/8.811, allocations: 0.7607 MB / 4.329 GB, free: 14.53 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005709/8.812, allocations: 53.27 kB / 4.329 GB, free: 14.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001776/8.814, allocations: 207 kB / 4.329 GB, free: 14.45 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00029/8.814, allocations: 150.2 kB / 4.329 GB, free: 14.43 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001609/8.814, allocations: 71.09 kB / 4.329 GB, free: 14.42 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002025/8.816, allocations: 1.301 MB / 4.331 GB, free: 13.91 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.61e-07/8.816, allocations: 0 / 4.331 GB, free: 13.91 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.009089/8.825, allocations: 2.688 MB / 4.333 GB, free: 13.36 MB / 0.5886 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.01108/8.836, allocations: 2.693 MB / 4.336 GB, free: 12.62 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.00971/8.846, allocations: 5.385 MB / 4.341 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/8.846, allocations: 3.906 kB / 4.341 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003345/8.849, allocations: 2.452 MB / 4.343 GB, free: 8.906 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005074/8.855, allocations: 0.9504 MB / 4.344 GB, free: 8.227 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01346/8.868, allocations: 9.001 MB / 4.353 GB, free: 140 kB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00264/8.871, allocations: 2.231 MB / 4.355 GB, free: 14.43 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009601/8.872, allocations: 184.2 kB / 4.356 GB, free: 14.26 MB / 0.6042 GB Notification: Performance of SimCode: time 9.52e-07/8.872, allocations: 0 / 4.356 GB, free: 14.26 MB / 0.6042 GB Notification: Performance of Templates: time 0.3763/9.248, allocations: 96.86 MB / 4.45 GB, free: 65.26 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1)