Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,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|splitter.medium.h|splitter.medium.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.BranchingPipes4") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,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|splitter.medium.h|splitter.medium.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.BranchingPipes4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002427/0.002427, allocations: 181.7 kB / 13.66 MB, free: 1.664 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.985/1.985, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001032/0.001032, allocations: 86.72 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3434/0.3434, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.946e-05/3.96e-05, allocations: 4 kB / 425.3 MB, free: 23.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1268, allocations: 58.86 MB / 484.1 MB, free: 12.45 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.365/8.492, allocations: 2.829 GB / 3.302 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/8.492, allocations: 82.08 kB / 3.302 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.022/13.51, allocations: 0.9043 GB / 4.207 GB, free: 39.41 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.186e-06/13.51, allocations: 0 / 4.207 GB, free: 39.41 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003429/13.51, allocations: 62.31 kB / 4.207 GB, free: 39.4 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01858/13.53, allocations: 4.047 MB / 4.211 GB, free: 37.61 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/13.53, allocations: 10.81 kB / 4.211 GB, free: 37.61 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009198/13.54, allocations: 0.8752 MB / 4.212 GB, free: 37.47 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008723/13.55, allocations: 2.064 MB / 4.214 GB, free: 37.03 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003696/13.55, allocations: 182.8 kB / 4.214 GB, free: 37.02 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001134/13.55, allocations: 207.8 kB / 4.214 GB, free: 37.02 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01266/13.57, allocations: 3.673 MB / 4.218 GB, free: 36.5 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.97e-05/13.57, allocations: 7.062 kB / 4.218 GB, free: 36.5 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006316/13.57, allocations: 90.09 kB / 4.218 GB, free: 36.5 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003145/13.57, allocations: 171 kB / 4.218 GB, free: 36.5 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01269/13.58, allocations: 3.299 MB / 4.221 GB, free: 36.48 MB / 0.5417 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.03225/13.61, allocations: 15.58 MB / 4.236 GB, free: 27.16 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007544/13.62, allocations: 2.206 MB / 4.238 GB, free: 27.12 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002647/13.62, allocations: 1.057 MB / 4.239 GB, free: 27.11 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07837/13.7, allocations: 24.62 MB / 4.263 GB, free: 28.07 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006279/13.71, allocations: 1.721 MB / 4.265 GB, free: 27.94 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=163): time 6.211e-06/13.71, allocations: 0 / 4.265 GB, free: 27.94 MB / 0.5573 GB Notification: Performance of matching and sorting (n=179): time 0.03213/13.74, allocations: 7.655 MB / 4.273 GB, free: 26.91 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001799/13.74, allocations: 263.1 kB / 4.273 GB, free: 26.62 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003348/13.74, allocations: 1.498 MB / 4.274 GB, free: 26.44 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006252/13.74, allocations: 55.39 kB / 4.274 GB, free: 26.41 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001045/13.74, allocations: 0.9168 MB / 4.275 GB, free: 25.96 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000998/13.75, allocations: 0.5917 MB / 4.276 GB, free: 25.58 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000254/13.75, allocations: 38.84 kB / 4.276 GB, free: 25.58 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002332/13.75, allocations: 387.4 kB / 4.276 GB, free: 25.27 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002727/13.75, allocations: 1.03 MB / 4.277 GB, free: 25.26 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003365/13.75, allocations: 1.455 MB / 4.279 GB, free: 24.8 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003407/13.76, allocations: 1.267 MB / 4.28 GB, free: 24.7 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.86e-05/13.76, allocations: 2.812 kB / 4.28 GB, free: 24.7 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008844/13.76, allocations: 3 MB / 4.283 GB, free: 24.47 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001864/13.77, allocations: 4.339 MB / 4.287 GB, free: 19.92 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.922e-05/13.77, allocations: 15.59 kB / 4.287 GB, free: 19.92 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001369/13.77, allocations: 234 kB / 4.287 GB, free: 19.88 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004412/13.77, allocations: 0.5114 MB / 4.288 GB, free: 19.88 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002199/13.77, allocations: 2.424 MB / 4.29 GB, free: 17.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004399/13.78, allocations: 272.4 kB / 4.29 GB, free: 17.77 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007416/13.78, allocations: 104.5 kB / 4.291 GB, free: 17.77 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/13.78, allocations: 7.938 kB / 4.291 GB, free: 17.77 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008252/13.79, allocations: 2.856 MB / 4.293 GB, free: 17.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.689e-05/13.79, allocations: 10.53 kB / 4.293 GB, free: 17.61 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/13.79, allocations: 229.8 kB / 4.294 GB, free: 17.58 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004278/13.79, allocations: 0.5089 MB / 4.294 GB, free: 17.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002242/13.8, allocations: 2.424 MB / 4.296 GB, free: 15.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003449/13.8, allocations: 272.4 kB / 4.297 GB, free: 15.46 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005153/13.8, allocations: 107.4 kB / 4.297 GB, free: 15.46 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (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,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,splitter.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 (243): * Single equations (assignments): 237 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000946/13.8, allocations: 300.4 kB / 4.297 GB, free: 15.29 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007045/13.8, allocations: 209.7 kB / 4.297 GB, free: 15.18 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01553/13.82, allocations: 7.631 MB / 4.305 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001026/13.82, allocations: 89.53 kB / 4.305 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/13.82, allocations: 0 / 4.305 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01231/13.83, allocations: 6.646 MB / 4.311 GB, free: 13.42 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02265/13.85, allocations: 10.9 MB / 4.322 GB, free: 8.961 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-05/13.85, allocations: 3.812 kB / 4.322 GB, free: 8.961 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003518/13.86, allocations: 409.4 kB / 4.322 GB, free: 8.941 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001927/13.86, allocations: 345.6 kB / 4.323 GB, free: 8.824 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005767/13.86, allocations: 74.95 kB / 4.323 GB, free: 8.789 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002152/13.86, allocations: 2.514 MB / 4.325 GB, free: 6.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/13.86, allocations: 0 / 4.325 GB, free: 6.52 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0146/13.88, allocations: 6.927 MB / 4.332 GB, free: 3.461 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002598/13.88, allocations: 0.782 MB / 4.333 GB, free: 2.98 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009352/13.88, allocations: 58.17 kB / 4.333 GB, free: 2.945 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003685/13.88, allocations: 212.7 kB / 4.333 GB, free: 2.895 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007012/13.88, allocations: 151.8 kB / 4.333 GB, free: 2.871 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003067/13.88, allocations: 77.56 kB / 4.333 GB, free: 2.855 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003103/13.89, allocations: 1.328 MB / 4.335 GB, free: 2.32 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.021e-06/13.89, allocations: 0 / 4.335 GB, free: 2.32 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01374/13.9, allocations: 2.884 MB / 4.337 GB, free: 0.8398 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.medium.phase) * 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 (202): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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.01662/13.92, allocations: 2.967 MB / 4.34 GB, free: 14.59 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01538/13.93, allocations: 5.038 MB / 4.345 GB, free: 9.953 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/13.93, allocations: 4 kB / 4.345 GB, free: 9.949 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.006104/13.94, allocations: 2.374 MB / 4.347 GB, free: 7.719 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009765/13.95, allocations: 1.039 MB / 4.348 GB, free: 6.965 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01725/13.97, allocations: 6.042 MB / 4.354 GB, free: 1.605 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4587/14.42, allocations: 2.279 MB / 4.357 GB, free: 64.43 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/14.43, allocations: 223.2 kB / 4.357 GB, free: 64.43 MB / 0.573 GB Notification: Performance of SimCode: time 1.633e-06/14.43, allocations: 1.062 kB / 4.357 GB, free: 64.43 MB / 0.573 GB Notification: Performance of Templates: time 0.2351/14.66, allocations: 119 MB / 4.473 GB, free: 54.64 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1)