Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,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.BranchingPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,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.BranchingPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002176/0.002176, 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.882/1.882, 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.001103/0.001103, allocations: 95.48 kB / 270.9 MB, free: 8.363 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.4916/0.4916, allocations: 43.55 MB / 362.7 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00047/0.0004699, allocations: 12 kB / 431.4 MB, free: 5.93 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1238, allocations: 58.85 MB / 490.2 MB, free: 10.99 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.271/8.394, allocations: 2.842 GB / 3.321 GB, free: 43.32 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/8.395, allocations: 82.12 kB / 3.321 GB, free: 43.28 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.153/12.55, allocations: 0.8054 GB / 4.126 GB, free: 29 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.064e-06/12.55, allocations: 0 / 4.126 GB, free: 29 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002791/12.55, allocations: 57.47 kB / 4.126 GB, free: 28.98 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.02085/12.57, allocations: 3.935 MB / 4.13 GB, free: 26.78 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/12.57, allocations: 7.812 kB / 4.13 GB, free: 26.78 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008467/12.58, allocations: 0.7766 MB / 4.131 GB, free: 26.59 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00807/12.59, allocations: 2.009 MB / 4.133 GB, free: 25.68 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003072/12.59, allocations: 169.3 kB / 4.133 GB, free: 25.61 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009976/12.59, allocations: 183.9 kB / 4.133 GB, free: 25.56 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01202/12.6, allocations: 3.351 MB / 4.137 GB, free: 24.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-05/12.6, allocations: 12.56 kB / 4.137 GB, free: 24.19 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004233/12.6, allocations: 81.75 kB / 4.137 GB, free: 24.14 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002824/12.6, allocations: 143.9 kB / 4.137 GB, free: 24.12 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01249/12.61, allocations: 3.19 MB / 4.14 GB, free: 23.16 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.02717/12.64, allocations: 13.82 MB / 4.153 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008165/12.65, allocations: 2.094 MB / 4.155 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07826/12.73, allocations: 24.6 MB / 4.179 GB, free: 5.691 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00695/12.73, allocations: 1.623 MB / 4.181 GB, free: 4.449 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001691/12.74, allocations: 180 kB / 4.181 GB, free: 4.285 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=155): time 5.701e-06/12.74, allocations: 0 / 4.181 GB, free: 4.285 MB / 0.5417 GB Notification: Performance of matching and sorting (n=167): time 0.4685/13.2, allocations: 8.529 MB / 4.189 GB, free: 48.13 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/13.2, allocations: 257.3 kB / 4.19 GB, free: 47.85 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003506/13.21, allocations: 1.332 MB / 4.191 GB, free: 47.68 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006352/13.21, allocations: 61.95 kB / 4.191 GB, free: 47.65 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009199/13.21, allocations: 0.8086 MB / 4.192 GB, free: 47.33 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001015/13.21, allocations: 0.554 MB / 4.192 GB, free: 47.05 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002423/13.21, allocations: 36.19 kB / 4.192 GB, free: 47.05 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001618/13.21, allocations: 390.7 kB / 4.193 GB, free: 46.74 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003473/13.21, allocations: 1.034 MB / 4.194 GB, free: 46.74 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003985/13.22, allocations: 1.439 MB / 4.195 GB, free: 46.35 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003944/13.22, allocations: 1.253 MB / 4.196 GB, free: 46.27 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.667e-05/13.22, allocations: 2.625 kB / 4.196 GB, free: 46.27 MB / 0.5417 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01268/13.23, allocations: 3.082 MB / 4.199 GB, free: 46.06 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008459/13.24, allocations: 3.729 MB / 4.203 GB, free: 42.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.89e-05/13.24, allocations: 9.219 kB / 4.203 GB, free: 42.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004517/13.24, allocations: 0.5285 MB / 4.204 GB, free: 42.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003806/13.24, allocations: 449.9 kB / 4.204 GB, free: 42.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002702/13.25, allocations: 2.712 MB / 4.207 GB, free: 40.08 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004237/13.25, allocations: 271.6 kB / 4.207 GB, free: 40.07 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003297/13.25, allocations: 93.12 kB / 4.207 GB, free: 40.07 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/13.25, allocations: 5.906 kB / 4.207 GB, free: 40.07 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008391/13.26, allocations: 2.823 MB / 4.21 GB, free: 39.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.774e-05/13.26, allocations: 9.219 kB / 4.21 GB, free: 39.94 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/13.26, allocations: 205.5 kB / 4.21 GB, free: 39.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003503/13.26, allocations: 464.2 kB / 4.21 GB, free: 39.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/13.27, allocations: 1.87 MB / 4.212 GB, free: 38.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00313/13.27, allocations: 256.8 kB / 4.213 GB, free: 38.36 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002789/13.27, allocations: 93.86 kB / 4.213 GB, free: 38.36 MB / 0.5417 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.001914/13.27, allocations: 0.7109 MB / 4.213 GB, free: 38.1 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006443/13.27, allocations: 209.6 kB / 4.214 GB, free: 38 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01538/13.29, allocations: 7.555 MB / 4.221 GB, free: 37.33 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.929e-05/13.29, allocations: 86.27 kB / 4.221 GB, free: 37.33 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/13.29, allocations: 0 / 4.221 GB, free: 37.33 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01269/13.3, allocations: 6.62 MB / 4.227 GB, free: 36.41 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02516/13.33, allocations: 11.38 MB / 4.239 GB, free: 35.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-05/13.33, allocations: 5.594 kB / 4.239 GB, free: 35.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002878/13.33, allocations: 366.9 kB / 4.239 GB, free: 35.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004534/13.33, allocations: 1.204 MB / 4.24 GB, free: 35.24 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005001/13.33, allocations: 66.97 kB / 4.24 GB, free: 35.24 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00318/13.34, allocations: 3.2 MB / 4.243 GB, free: 33.15 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.135e-05/13.34, allocations: 11.05 kB / 4.243 GB, free: 33.14 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01675/13.35, allocations: 7.614 MB / 4.251 GB, free: 31.87 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00233/13.36, allocations: 0.7359 MB / 4.251 GB, free: 31.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005934/13.36, allocations: 55.12 kB / 4.252 GB, free: 31.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002495/13.36, allocations: 182.6 kB / 4.252 GB, free: 31.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004477/13.36, allocations: 156.3 kB / 4.252 GB, free: 31.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002572/13.36, allocations: 80.39 kB / 4.252 GB, free: 31.59 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00257/13.36, allocations: 1.216 MB / 4.253 GB, free: 31.45 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.01e-07/13.36, allocations: 0 / 4.253 GB, free: 31.45 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01198/13.37, allocations: 2.594 MB / 4.256 GB, free: 31.36 MB / 0.5417 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,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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.01506/13.39, allocations: 2.713 MB / 4.258 GB, free: 31.08 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01318/13.4, allocations: 4.872 MB / 4.263 GB, free: 30.76 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/13.4, allocations: 3.688 kB / 4.263 GB, free: 30.76 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005526/13.41, allocations: 2.516 MB / 4.266 GB, free: 30.62 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007986/13.42, allocations: 0.914 MB / 4.266 GB, free: 30.59 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01583/13.43, allocations: 8.222 MB / 4.274 GB, free: 27.43 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002476/13.43, allocations: 2.132 MB / 4.277 GB, free: 26.69 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001283/13.44, allocations: 188.6 kB / 4.277 GB, free: 26.68 MB / 0.5417 GB Notification: Performance of SimCode: time 1.823e-06/13.44, allocations: 0 / 4.277 GB, free: 26.68 MB / 0.5417 GB Notification: Performance of Templates: time 0.1913/13.63, allocations: 110.7 MB / 4.385 GB, free: 7.117 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1)