Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,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.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,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.BranchingPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001458/0.001458, allocations: 186.9 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.861/1.861, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001036/0.001036, allocations: 88.48 kB / 270.9 MB, free: 8.383 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.4883/0.4883, allocations: 43.55 MB / 362.7 MB, free: 51.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004614/0.0004615, allocations: 12 kB / 431.4 MB, free: 5.965 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1181, allocations: 58.85 MB / 490.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.186/8.305, allocations: 2.826 GB / 3.305 GB, free: 60.85 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/8.305, allocations: 86.7 kB / 3.305 GB, free: 60.8 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.29/12.59, allocations: 0.8703 GB / 4.175 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.455e-06/12.59, allocations: 0 / 4.175 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002842/12.6, allocations: 63.92 kB / 4.175 GB, free: 12.91 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.01996/12.61, allocations: 4.079 MB / 4.179 GB, free: 8.754 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/12.62, allocations: 16.03 kB / 4.179 GB, free: 8.738 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008604/12.62, allocations: 0.7864 MB / 4.18 GB, free: 7.949 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008384/12.63, allocations: 1.964 MB / 4.182 GB, free: 5.93 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003268/12.63, allocations: 163.4 kB / 4.182 GB, free: 5.77 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008826/12.63, allocations: 180 kB / 4.182 GB, free: 5.594 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01232/12.65, allocations: 3.307 MB / 4.185 GB, free: 2.129 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-05/12.65, allocations: 7.938 kB / 4.185 GB, free: 2.121 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004281/12.65, allocations: 79.97 kB / 4.185 GB, free: 2.043 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003278/12.65, allocations: 151.3 kB / 4.185 GB, free: 1.895 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4638/13.11, allocations: 3.03 MB / 4.188 GB, free: 35.02 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.04681/13.16, allocations: 14.23 MB / 4.202 GB, free: 26.71 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01344/13.17, allocations: 2.063 MB / 4.204 GB, free: 26.68 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1183/13.29, allocations: 24.53 MB / 4.228 GB, free: 27.68 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01055/13.3, allocations: 1.591 MB / 4.23 GB, free: 27.56 MB / 0.5574 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002385/13.3, allocations: 171.2 kB / 4.23 GB, free: 27.52 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=146): time 9.357e-06/13.3, allocations: 0 / 4.23 GB, free: 27.52 MB / 0.5574 GB Notification: Performance of matching and sorting (n=158): time 0.04539/13.35, allocations: 8.402 MB / 4.238 GB, free: 26.32 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000159/13.35, allocations: 256.2 kB / 4.238 GB, free: 26.04 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003229/13.35, allocations: 1.42 MB / 4.24 GB, free: 25.87 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.000553/13.35, allocations: 52.95 kB / 4.24 GB, free: 25.84 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008663/13.35, allocations: 0.8272 MB / 4.241 GB, free: 25.51 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009144/13.35, allocations: 0.5216 MB / 4.241 GB, free: 25.25 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002462/13.35, allocations: 35.09 kB / 4.241 GB, free: 25.25 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.000201/13.35, allocations: 384.9 kB / 4.242 GB, free: 24.93 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003683/13.36, allocations: 1.029 MB / 4.243 GB, free: 24.93 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004069/13.36, allocations: 1.411 MB / 4.244 GB, free: 24.55 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003796/13.37, allocations: 1.247 MB / 4.245 GB, free: 24.46 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.505e-05/13.37, allocations: 5.531 kB / 4.245 GB, free: 24.46 MB / 0.5574 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.01103/13.38, allocations: 3.094 MB / 4.248 GB, free: 24.25 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.001338/13.38, allocations: 3.721 MB / 4.252 GB, free: 20.38 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.315e-05/13.38, allocations: 13.42 kB / 4.252 GB, free: 20.38 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00526/13.38, allocations: 0.6178 MB / 4.252 GB, free: 20.35 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003715/13.39, allocations: 431.7 kB / 4.253 GB, free: 20.35 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003431/13.39, allocations: 2.826 MB / 4.256 GB, free: 18.27 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003964/13.39, allocations: 231.3 kB / 4.256 GB, free: 18.26 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004618/13.4, allocations: 96.77 kB / 4.256 GB, free: 18.26 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/13.4, allocations: 4.375 kB / 4.256 GB, free: 18.26 MB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009907/13.41, allocations: 2.808 MB / 4.259 GB, free: 18.13 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.768e-05/13.41, allocations: 9.531 kB / 4.259 GB, free: 18.13 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/13.41, allocations: 210.6 kB / 4.259 GB, free: 18.11 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003744/13.41, allocations: 453.2 kB / 4.259 GB, free: 18.11 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001733/13.41, allocations: 1.878 MB / 4.261 GB, free: 16.55 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003272/13.42, allocations: 237.5 kB / 4.261 GB, free: 16.54 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006192/13.42, allocations: 91.52 kB / 4.262 GB, free: 16.54 MB / 0.5574 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 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.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_b.phase,pipe2.state_b.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 (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.002572/13.42, allocations: 0.7046 MB / 4.262 GB, free: 16.29 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007605/13.42, allocations: 194.7 kB / 4.262 GB, free: 16.19 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01633/13.44, allocations: 7.557 MB / 4.27 GB, free: 15.58 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001224/13.44, allocations: 80.27 kB / 4.27 GB, free: 15.58 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/13.44, allocations: 0 / 4.27 GB, free: 15.58 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01334/13.45, allocations: 6.621 MB / 4.276 GB, free: 30.73 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01981/13.47, allocations: 10.51 MB / 4.287 GB, free: 30.08 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.221e-05/13.47, allocations: 0 / 4.287 GB, free: 30.08 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002537/13.47, allocations: 331.8 kB / 4.287 GB, free: 30.08 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004791/13.48, allocations: 1.36 MB / 4.288 GB, free: 30.01 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003162/13.48, allocations: 72.06 kB / 4.288 GB, free: 30 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003663/13.48, allocations: 3.47 MB / 4.292 GB, free: 27.91 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/13.48, allocations: 6.25 kB / 4.292 GB, free: 27.91 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01448/13.49, allocations: 7.385 MB / 4.299 GB, free: 27.32 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002094/13.5, allocations: 0.7296 MB / 4.3 GB, free: 27 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005242/13.5, allocations: 48 kB / 4.3 GB, free: 27 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002468/13.5, allocations: 194.2 kB / 4.3 GB, free: 26.98 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000387/13.5, allocations: 133.7 kB / 4.3 GB, free: 26.98 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002113/13.5, allocations: 70.36 kB / 4.3 GB, free: 26.98 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002761/13.5, allocations: 1.278 MB / 4.301 GB, free: 26.84 MB / 0.573 GB Notification: Performance of sort global known variables: time 6.31e-07/13.5, allocations: 0 / 4.301 GB, free: 26.84 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01131/13.51, allocations: 2.734 MB / 4.304 GB, free: 26.71 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (166): * Single equations (assignments): 140 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01609/13.53, allocations: 2.895 MB / 4.307 GB, free: 26.41 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01361/13.54, allocations: 4.854 MB / 4.312 GB, free: 26.09 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/13.54, allocations: 0 / 4.312 GB, free: 26.09 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004836/13.55, allocations: 2.314 MB / 4.314 GB, free: 25.95 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00785/13.56, allocations: 0.9661 MB / 4.315 GB, free: 25.92 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01466/13.57, allocations: 8.113 MB / 4.323 GB, free: 22.89 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001983/13.57, allocations: 2.136 MB / 4.325 GB, free: 22.14 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001287/13.58, allocations: 194.1 kB / 4.325 GB, free: 22.14 MB / 0.573 GB Notification: Performance of SimCode: time 1.613e-06/13.58, allocations: 0 / 4.325 GB, free: 22.14 MB / 0.573 GB Notification: Performance of Templates: time 0.6633/14.24, allocations: 112.3 MB / 4.435 GB, free: 65.24 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1)