Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,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|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001454/0.001453, allocations: 185.4 kB / 16.4 MB, free: 5.746 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.896/1.896, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001105/0.001105, allocations: 93.47 kB / 270.9 MB, free: 8.355 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.4927/0.4927, allocations: 43.55 MB / 362.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004449/0.000445, allocations: 12 kB / 431.4 MB, free: 6.168 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1176, allocations: 58.85 MB / 490.2 MB, free: 11.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.352/8.47, allocations: 2.843 GB / 3.321 GB, free: 44.09 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/8.47, allocations: 83.52 kB / 3.322 GB, free: 44.05 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.817/13.29, allocations: 0.8754 GB / 4.197 GB, free: 36 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.354e-06/13.29, allocations: 2.141 kB / 4.197 GB, free: 36 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003153/13.29, allocations: 60.52 kB / 4.197 GB, free: 36 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01939/13.31, allocations: 4.032 MB / 4.201 GB, free: 34.4 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/13.31, allocations: 8.578 kB / 4.201 GB, free: 34.4 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008464/13.32, allocations: 0.786 MB / 4.202 GB, free: 34.27 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00821/13.32, allocations: 1.985 MB / 4.204 GB, free: 33.84 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003231/13.32, allocations: 161.1 kB / 4.204 GB, free: 33.84 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009892/13.33, allocations: 185.7 kB / 4.204 GB, free: 33.84 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01167/13.34, allocations: 3.283 MB / 4.207 GB, free: 33.35 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.029e-05/13.34, allocations: 8.906 kB / 4.207 GB, free: 33.35 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003829/13.34, allocations: 84.38 kB / 4.207 GB, free: 33.35 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002867/13.34, allocations: 145.7 kB / 4.207 GB, free: 33.34 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01156/13.35, allocations: 2.958 MB / 4.21 GB, free: 33.33 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.02593/13.38, allocations: 14.06 MB / 4.224 GB, free: 24.87 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008008/13.38, allocations: 2.088 MB / 4.226 GB, free: 24.84 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07878/13.46, allocations: 24.6 MB / 4.25 GB, free: 25.72 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006755/13.47, allocations: 1.622 MB / 4.252 GB, free: 25.59 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001809/13.47, allocations: 177.1 kB / 4.252 GB, free: 25.52 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 5.831e-06/13.47, allocations: 0 / 4.252 GB, free: 25.52 MB / 0.5573 GB Notification: Performance of matching and sorting (n=167): time 0.03945/13.51, allocations: 8.528 MB / 4.26 GB, free: 24.29 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001839/13.51, allocations: 256.4 kB / 4.26 GB, free: 24 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002936/13.51, allocations: 1.335 MB / 4.262 GB, free: 23.84 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005346/13.51, allocations: 59.45 kB / 4.262 GB, free: 23.8 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008101/13.51, allocations: 0.8207 MB / 4.263 GB, free: 23.42 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000736/13.52, allocations: 0.5558 MB / 4.263 GB, free: 23.06 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000245/13.52, allocations: 37.66 kB / 4.263 GB, free: 23.06 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002073/13.52, allocations: 388.7 kB / 4.264 GB, free: 22.75 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003099/13.52, allocations: 1.038 MB / 4.265 GB, free: 22.74 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003441/13.52, allocations: 1.436 MB / 4.266 GB, free: 22.35 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003541/13.53, allocations: 1.259 MB / 4.267 GB, free: 22.27 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/13.53, allocations: 3.438 kB / 4.267 GB, free: 22.27 MB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.009815/13.54, allocations: 3.075 MB / 4.27 GB, free: 22.06 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001545/13.54, allocations: 3.731 MB / 4.274 GB, free: 18.19 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.502e-05/13.54, allocations: 7.75 kB / 4.274 GB, free: 18.19 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00448/13.54, allocations: 0.5344 MB / 4.274 GB, free: 18.16 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003601/13.55, allocations: 444.4 kB / 4.275 GB, free: 18.16 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002888/13.55, allocations: 2.701 MB / 4.277 GB, free: 16.09 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004206/13.55, allocations: 277.1 kB / 4.278 GB, free: 16.07 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003077/13.55, allocations: 94.3 kB / 4.278 GB, free: 16.07 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/13.55, allocations: 4.875 kB / 4.278 GB, free: 16.07 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00816/13.56, allocations: 2.826 MB / 4.281 GB, free: 15.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.211e-05/13.56, allocations: 13.53 kB / 4.281 GB, free: 15.93 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/13.56, allocations: 211 kB / 4.281 GB, free: 15.91 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003392/13.57, allocations: 460.5 kB / 4.281 GB, free: 15.91 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00162/13.57, allocations: 1.877 MB / 4.283 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003164/13.57, allocations: 264.4 kB / 4.283 GB, free: 14.34 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002667/13.57, allocations: 92.42 kB / 4.283 GB, free: 14.34 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.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 (211): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001931/13.57, allocations: 0.7178 MB / 4.284 GB, free: 14.07 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006469/13.57, allocations: 197.2 kB / 4.284 GB, free: 13.98 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01488/13.59, allocations: 7.56 MB / 4.292 GB, free: 13.22 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.239e-05/13.59, allocations: 81.88 kB / 4.292 GB, free: 13.22 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/13.59, allocations: 3.953 kB / 4.292 GB, free: 13.21 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01213/13.6, allocations: 6.618 MB / 4.298 GB, free: 12.3 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02364/13.62, allocations: 11.42 MB / 4.309 GB, free: 11.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.665e-05/13.62, allocations: 3.906 kB / 4.309 GB, free: 11.13 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002664/13.63, allocations: 358.1 kB / 4.31 GB, free: 11.13 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004119/13.63, allocations: 1.183 MB / 4.311 GB, free: 11.07 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003508/13.63, allocations: 63.17 kB / 4.311 GB, free: 11.07 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003646/13.64, allocations: 3.189 MB / 4.314 GB, free: 24.98 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.726e-06/13.64, allocations: 9.906 kB / 4.314 GB, free: 24.98 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0147/13.65, allocations: 7.622 MB / 4.321 GB, free: 23.69 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002226/13.65, allocations: 0.7305 MB / 4.322 GB, free: 23.37 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005668/13.65, allocations: 56.38 kB / 4.322 GB, free: 23.37 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002554/13.66, allocations: 189.8 kB / 4.322 GB, free: 23.36 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004054/13.66, allocations: 156.8 kB / 4.323 GB, free: 23.36 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002185/13.66, allocations: 78.59 kB / 4.323 GB, free: 23.36 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002426/13.66, allocations: 1.222 MB / 4.324 GB, free: 23.21 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.8e-07/13.66, allocations: 0 / 4.324 GB, free: 23.21 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01179/13.67, allocations: 2.635 MB / 4.326 GB, free: 22.88 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($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,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,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 (179): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0149/13.69, allocations: 2.768 MB / 4.329 GB, free: 22.35 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0128/13.7, allocations: 4.875 MB / 4.334 GB, free: 22.02 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.327e-05/13.7, allocations: 3.875 kB / 4.334 GB, free: 22.02 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005568/13.7, allocations: 2.517 MB / 4.336 GB, free: 21.87 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008299/13.71, allocations: 0.995 MB / 4.337 GB, free: 21.83 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01538/13.73, allocations: 8.282 MB / 4.345 GB, free: 18.34 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002104/13.73, allocations: 2.151 MB / 4.347 GB, free: 17.55 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001269/13.73, allocations: 186.7 kB / 4.348 GB, free: 17.55 MB / 0.573 GB Notification: Performance of SimCode: time 1.292e-06/13.73, allocations: 0 / 4.348 GB, free: 17.55 MB / 0.573 GB Notification: Performance of Templates: time 0.6329/14.36, allocations: 111.9 MB / 4.457 GB, free: 59.84 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1)