Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|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.BranchingPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|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.BranchingPipes12") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001457/0.001457, allocations: 178 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.033/2.033, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 89.56 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2975/0.2975, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.04e-05/2.051e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.414/0.414, allocations: 58.85 MB / 477.1 MB, free: 5.266 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.833/9.247, allocations: 2.825 GB / 3.29 GB, free: 102.9 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002827/9.247, allocations: 80.55 kB / 3.291 GB, free: 102.9 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.283/13.53, allocations: 0.7996 GB / 4.09 GB, free: 38.73 MB / 0.5265 GB Notification: Performance of FrontEnd: time 1.763e-06/13.53, allocations: 0 / 4.09 GB, free: 38.73 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0003541/13.53, allocations: 69.45 kB / 4.09 GB, free: 38.72 MB / 0.5265 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02004/13.55, allocations: 3.954 MB / 4.094 GB, free: 36.77 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/13.55, allocations: 10.25 kB / 4.094 GB, free: 36.77 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008816/13.56, allocations: 0.8368 MB / 4.095 GB, free: 36.63 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009292/13.57, allocations: 2.17 MB / 4.097 GB, free: 36.16 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002594/13.57, allocations: 97.28 kB / 4.097 GB, free: 36.16 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001105/13.57, allocations: 114.1 kB / 4.097 GB, free: 36.16 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008564/13.58, allocations: 2.888 MB / 4.1 GB, free: 36.14 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009212/13.59, allocations: 2.896 MB / 4.103 GB, free: 35.6 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.715e-05/13.59, allocations: 7.438 kB / 4.103 GB, free: 35.6 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005926/13.59, allocations: 6.25 kB / 4.103 GB, free: 35.6 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003241/13.59, allocations: 164.6 kB / 4.103 GB, free: 35.59 MB / 0.5265 GB Warning: The model contains alias variables with conflicting start and/or 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.4571/14.05, allocations: 125.6 MB / 4.226 GB, free: 20.96 MB / 0.589 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003843/14.05, allocations: 1.603 MB / 4.227 GB, free: 20.91 MB / 0.589 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002215/14.05, allocations: 1.002 MB / 4.228 GB, free: 20.51 MB / 0.589 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4868/14.54, allocations: 17.02 MB / 4.245 GB, free: 102.2 MB / 0.589 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003595/14.54, allocations: 1.245 MB / 4.246 GB, free: 102.1 MB / 0.589 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001878/14.55, allocations: 157 kB / 4.246 GB, free: 102.1 MB / 0.589 GB Notification: Performance of pre-optimization done (n=152): time 1.277e-05/14.55, allocations: 3.844 kB / 4.246 GB, free: 102.1 MB / 0.589 GB Notification: Performance of matching and sorting (n=164): time 0.03688/14.58, allocations: 8.08 MB / 4.254 GB, free: 100.5 MB / 0.589 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000175/14.58, allocations: 0.5046 MB / 4.255 GB, free: 99.94 MB / 0.589 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00318/14.59, allocations: 1.198 MB / 4.256 GB, free: 99.77 MB / 0.589 GB Notification: Performance of collectPreVariables (initialization): time 0.0005856/14.59, allocations: 29.83 kB / 4.256 GB, free: 99.74 MB / 0.589 GB Notification: Performance of collectInitialEqns (initialization): time 0.001183/14.59, allocations: 0.9732 MB / 4.257 GB, free: 99.34 MB / 0.589 GB Notification: Performance of collectInitialBindings (initialization): time 0.001115/14.59, allocations: 0.5397 MB / 4.257 GB, free: 99.06 MB / 0.589 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002647/14.59, allocations: 0.9375 kB / 4.257 GB, free: 99.06 MB / 0.589 GB Notification: Performance of setup shared object (initialization): time 0.0001941/14.59, allocations: 390.3 kB / 4.258 GB, free: 98.75 MB / 0.589 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002979/14.59, allocations: 1.054 MB / 4.259 GB, free: 98.75 MB / 0.589 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003587/14.6, allocations: 1.479 MB / 4.26 GB, free: 98.3 MB / 0.589 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02089/14.62, allocations: 2.864 MB / 4.263 GB, free: 98.27 MB / 0.589 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-05/14.62, allocations: 2.062 kB / 4.263 GB, free: 98.27 MB / 0.589 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.02767/14.64, allocations: 4.692 MB / 4.268 GB, free: 98.12 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008839/14.65, allocations: 3.904 MB / 4.271 GB, free: 94.07 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-05/14.65, allocations: 17.39 kB / 4.271 GB, free: 94.07 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006497/14.65, allocations: 0.8008 MB / 4.272 GB, free: 94.04 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003912/14.66, allocations: 469.6 kB / 4.273 GB, free: 94.04 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004778/14.66, allocations: 3.332 MB / 4.276 GB, free: 91.94 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004486/14.67, allocations: 233.4 kB / 4.276 GB, free: 91.93 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007848/14.67, allocations: 104.6 kB / 4.276 GB, free: 91.93 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/14.67, allocations: 4.297 kB / 4.276 GB, free: 91.93 MB / 0.589 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02488/14.69, allocations: 4.288 MB / 4.28 GB, free: 91.85 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.569e-05/14.69, allocations: 12.56 kB / 4.28 GB, free: 91.85 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00167/14.69, allocations: 330 kB / 4.281 GB, free: 91.82 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004138/14.7, allocations: 490 kB / 4.281 GB, free: 91.82 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005184/14.7, allocations: 3.977 MB / 4.285 GB, free: 89.06 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003392/14.71, allocations: 215.7 kB / 4.285 GB, free: 89.05 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005937/14.71, allocations: 99.69 kB / 4.285 GB, free: 89.05 MB / 0.589 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0009774/14.71, allocations: 237 kB / 4.286 GB, free: 88.88 MB / 0.589 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007423/14.71, allocations: 198.3 kB / 4.286 GB, free: 88.79 MB / 0.589 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0155/14.72, allocations: 6.796 MB / 4.292 GB, free: 88.3 MB / 0.589 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001029/14.72, allocations: 68.53 kB / 4.292 GB, free: 88.3 MB / 0.589 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/14.72, allocations: 1.312 kB / 4.292 GB, free: 88.3 MB / 0.589 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01253/14.74, allocations: 5.756 MB / 4.298 GB, free: 87.56 MB / 0.589 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02113/14.76, allocations: 9.186 MB / 4.307 GB, free: 86.99 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.502e-05/14.76, allocations: 2.562 kB / 4.307 GB, free: 86.99 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002673/14.76, allocations: 300.1 kB / 4.307 GB, free: 86.99 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006327/14.77, allocations: 2.339 MB / 4.31 GB, free: 86.89 MB / 0.589 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005547/14.77, allocations: 41.89 kB / 4.31 GB, free: 86.89 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005521/14.77, allocations: 4.411 MB / 4.314 GB, free: 84.77 MB / 0.589 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/14.77, allocations: 1.688 kB / 4.314 GB, free: 84.77 MB / 0.589 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0163/14.79, allocations: 7.243 MB / 4.321 GB, free: 84.12 MB / 0.589 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002499/14.79, allocations: 0.7097 MB / 4.322 GB, free: 83.83 MB / 0.589 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009351/14.79, allocations: 20.78 kB / 4.322 GB, free: 83.83 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003303/14.8, allocations: 155.9 kB / 4.322 GB, free: 83.82 MB / 0.589 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006062/14.8, allocations: 127.7 kB / 4.322 GB, free: 83.82 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000275/14.8, allocations: 72.88 kB / 4.322 GB, free: 83.81 MB / 0.589 GB Notification: Performance of sorting global known variables: time 0.002544/14.8, allocations: 1.134 MB / 4.323 GB, free: 83.67 MB / 0.589 GB Notification: Performance of sort global known variables: time 6.21e-07/14.8, allocations: 2.812 kB / 4.323 GB, free: 83.67 MB / 0.589 GB Notification: Performance of remove unused functions: time 0.01357/14.81, allocations: 2.726 MB / 4.326 GB, free: 83.54 MB / 0.589 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (153): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0155/14.83, allocations: 3.011 MB / 4.329 GB, free: 83.24 MB / 0.589 GB Notification: Performance of simCode: created initialization part: time 0.01196/14.84, allocations: 4.946 MB / 4.334 GB, free: 82.71 MB / 0.589 GB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/14.84, allocations: 1.094 kB / 4.334 GB, free: 82.71 MB / 0.589 GB Notification: Performance of simCode: created simulation system equations: time 0.004975/14.85, allocations: 2.114 MB / 4.336 GB, free: 82.57 MB / 0.589 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007667/14.85, allocations: 0.7879 MB / 4.336 GB, free: 82.55 MB / 0.589 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/14.87, allocations: 5.418 MB / 4.342 GB, free: 81.43 MB / 0.589 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002777/14.87, allocations: 2.175 MB / 4.344 GB, free: 80.67 MB / 0.589 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001373/14.87, allocations: 189 kB / 4.344 GB, free: 80.66 MB / 0.589 GB Notification: Performance of SimCode: time 1.202e-06/14.87, allocations: 5.969 kB / 4.344 GB, free: 80.66 MB / 0.589 GB Notification: Performance of Templates: time 0.6452/15.52, allocations: 113.1 MB / 4.455 GB, free: 98.95 MB / 0.589 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1)