Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.BranchingPipes14") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.BranchingPipes14") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002176/0.002181, allocations: 177.8 kB / 8.363 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.131/2.131, 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.001144/0.001144, allocations: 87.12 kB / 262.1 MB, free: 13.88 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.2992/0.2992, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.556e-05/1.553e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.42/0.42, allocations: 58.84 MB / 477.1 MB, free: 5.266 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.55/8.97, allocations: 2.846 GB / 3.312 GB, free: 100.5 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002288/8.97, allocations: 76.83 kB / 3.312 GB, free: 100.5 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.577/13.55, allocations: 0.8999 GB / 4.212 GB, free: 14.18 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.715e-06/13.55, allocations: 0 / 4.212 GB, free: 14.18 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.000511/13.55, allocations: 67.84 kB / 4.212 GB, free: 14.12 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.02615/13.57, allocations: 3.968 MB / 4.215 GB, free: 10.1 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.79e-05/13.57, allocations: 8.031 kB / 4.215 GB, free: 10.09 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01564/13.59, allocations: 0.8729 MB / 4.216 GB, free: 9.219 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0129/13.6, allocations: 2.097 MB / 4.218 GB, free: 7.102 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004216/13.6, allocations: 91.98 kB / 4.218 GB, free: 7.012 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001431/13.6, allocations: 127.9 kB / 4.219 GB, free: 6.887 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01169/13.62, allocations: 2.628 MB / 4.221 GB, free: 4.254 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01334/13.63, allocations: 2.86 MB / 4.224 GB, free: 1.191 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001346/13.63, allocations: 7.938 kB / 4.224 GB, free: 1.184 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007504/13.63, allocations: 4 kB / 4.224 GB, free: 1.18 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004787/13.63, allocations: 171.6 kB / 4.224 GB, free: 1.012 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 1.1/14.73, allocations: 126.3 MB / 4.347 GB, free: 21.86 MB / 0.589 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005004/14.74, allocations: 2.107 MB / 4.35 GB, free: 21.27 MB / 0.589 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002808/14.74, allocations: 1.082 MB / 4.351 GB, free: 21.24 MB / 0.589 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0557/14.79, allocations: 16.97 MB / 4.367 GB, free: 26.17 MB / 0.6046 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003217/14.8, allocations: 1.251 MB / 4.368 GB, free: 26 MB / 0.6046 GB Notification: Performance of pre-optimization done (n=163): time 6.131e-06/14.8, allocations: 0 / 4.368 GB, free: 26 MB / 0.6046 GB Notification: Performance of matching and sorting (n=179): time 0.06113/14.86, allocations: 9.617 MB / 4.378 GB, free: 24.39 MB / 0.6046 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002322/14.86, allocations: 359 kB / 4.378 GB, free: 23.99 MB / 0.6046 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002352/14.86, allocations: 1.09 MB / 4.379 GB, free: 23.82 MB / 0.6046 GB Notification: Performance of collectPreVariables (initialization): time 0.0006541/14.86, allocations: 29.23 kB / 4.379 GB, free: 23.79 MB / 0.6046 GB Notification: Performance of collectInitialEqns (initialization): time 0.001224/14.86, allocations: 0.9669 MB / 4.38 GB, free: 23.39 MB / 0.6046 GB Notification: Performance of collectInitialBindings (initialization): time 0.001159/14.87, allocations: 0.5808 MB / 4.381 GB, free: 23.09 MB / 0.6046 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002814/14.87, allocations: 3.344 kB / 4.381 GB, free: 23.09 MB / 0.6046 GB Notification: Performance of setup shared object (initialization): time 0.0002649/14.87, allocations: 390.7 kB / 4.381 GB, free: 22.77 MB / 0.6046 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002802/14.87, allocations: 1.018 MB / 4.382 GB, free: 22.76 MB / 0.6046 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003398/14.87, allocations: 1.456 MB / 4.384 GB, free: 22.3 MB / 0.6046 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01484/14.89, allocations: 1.958 MB / 4.385 GB, free: 22.26 MB / 0.6046 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.601e-05/14.89, allocations: 3.531 kB / 4.385 GB, free: 22.26 MB / 0.6046 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.02117/14.91, allocations: 3.601 MB / 4.389 GB, free: 22.07 MB / 0.6046 GB Notification: Performance of prepare postOptimizeDAE: time 0.002062/14.91, allocations: 4.335 MB / 4.393 GB, free: 17.53 MB / 0.6046 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.703e-05/14.91, allocations: 11.67 kB / 4.393 GB, free: 17.53 MB / 0.6046 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00111/14.91, allocations: 217.4 kB / 4.393 GB, free: 17.5 MB / 0.6046 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004651/14.92, allocations: 0.5233 MB / 4.394 GB, free: 17.49 MB / 0.6046 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002515/14.92, allocations: 2.453 MB / 4.396 GB, free: 15.41 MB / 0.6046 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005316/14.92, allocations: 307 kB / 4.397 GB, free: 15.38 MB / 0.6046 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008845/14.93, allocations: 103.9 kB / 4.397 GB, free: 15.38 MB / 0.6046 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/14.93, allocations: 8.812 kB / 4.397 GB, free: 15.38 MB / 0.6046 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01966/14.94, allocations: 3.254 MB / 4.4 GB, free: 15.27 MB / 0.6046 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.246e-05/14.94, allocations: 12.31 kB / 4.4 GB, free: 15.27 MB / 0.6046 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008758/14.95, allocations: 222.8 kB / 4.4 GB, free: 15.24 MB / 0.6046 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00439/14.95, allocations: 0.5092 MB / 4.401 GB, free: 15.24 MB / 0.6046 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0025/14.95, allocations: 2.459 MB / 4.403 GB, free: 13.16 MB / 0.6046 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004123/14.96, allocations: 276.4 kB / 4.403 GB, free: 13.12 MB / 0.6046 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006659/14.96, allocations: 105.5 kB / 4.403 GB, free: 13.12 MB / 0.6046 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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.0009988/14.96, allocations: 243.2 kB / 4.404 GB, free: 12.95 MB / 0.6046 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007361/14.96, allocations: 192.8 kB / 4.404 GB, free: 12.86 MB / 0.6046 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02742/14.99, allocations: 7.052 MB / 4.411 GB, free: 12.31 MB / 0.6046 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001271/14.99, allocations: 81.39 kB / 4.411 GB, free: 12.31 MB / 0.6046 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.073e-05/14.99, allocations: 5.531 kB / 4.411 GB, free: 12.31 MB / 0.6046 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02359/15.01, allocations: 6.139 MB / 4.417 GB, free: 11.55 MB / 0.6046 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03757/15.05, allocations: 11.21 MB / 4.428 GB, free: 10.18 MB / 0.6046 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-05/15.05, allocations: 6.5 kB / 4.428 GB, free: 10.18 MB / 0.6046 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003191/15.05, allocations: 392.8 kB / 4.428 GB, free: 10.18 MB / 0.6046 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00144/15.05, allocations: 329 kB / 4.428 GB, free: 10.13 MB / 0.6046 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005245/15.05, allocations: 45.52 kB / 4.428 GB, free: 10.13 MB / 0.6046 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002692/15.06, allocations: 2.644 MB / 4.431 GB, free: 24.04 MB / 0.6202 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-05/15.06, allocations: 11.5 kB / 4.431 GB, free: 24.04 MB / 0.6202 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02656/15.08, allocations: 7.629 MB / 4.438 GB, free: 22.74 MB / 0.6202 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002482/15.09, allocations: 0.7063 MB / 4.439 GB, free: 22.49 MB / 0.6202 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008989/15.09, allocations: 32.48 kB / 4.439 GB, free: 22.49 MB / 0.6202 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003627/15.09, allocations: 172.4 kB / 4.439 GB, free: 22.46 MB / 0.6202 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006877/15.09, allocations: 171.9 kB / 4.44 GB, free: 22.45 MB / 0.6202 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003954/15.09, allocations: 79.73 kB / 4.44 GB, free: 22.45 MB / 0.6202 GB Notification: Performance of sorting global known variables: time 0.002313/15.09, allocations: 1.047 MB / 4.441 GB, free: 22.34 MB / 0.6202 GB Notification: Performance of sort global known variables: time 8.41e-07/15.09, allocations: 0 / 4.441 GB, free: 22.34 MB / 0.6202 GB Notification: Performance of remove unused functions: time 0.01362/15.11, allocations: 2.635 MB / 4.443 GB, free: 20.84 MB / 0.6202 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$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,junctionIdeal.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 (198): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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.01556/15.12, allocations: 3.04 MB / 4.446 GB, free: 18.77 MB / 0.6202 GB Notification: Performance of simCode: created initialization part: time 0.01236/15.14, allocations: 4.709 MB / 4.451 GB, free: 16.05 MB / 0.6202 GB Notification: Performance of simCode: created event and clocks part: time 1.445e-05/15.14, allocations: 7.391 kB / 4.451 GB, free: 16.04 MB / 0.6202 GB Notification: Performance of simCode: created simulation system equations: time 0.005778/15.14, allocations: 2.381 MB / 4.453 GB, free: 14.8 MB / 0.6202 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008726/15.15, allocations: 0.8404 MB / 4.454 GB, free: 14.33 MB / 0.6202 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01653/15.17, allocations: 5.676 MB / 4.459 GB, free: 10.19 MB / 0.6202 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003485/15.17, allocations: 2.157 MB / 4.462 GB, free: 8.586 MB / 0.6202 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001703/15.17, allocations: 207.1 kB / 4.462 GB, free: 8.414 MB / 0.6202 GB Notification: Performance of SimCode: time 2.725e-06/15.17, allocations: 0 / 4.462 GB, free: 8.414 MB / 0.6202 GB Notification: Performance of Templates: time 0.6544/15.83, allocations: 113.5 MB / 4.573 GB, free: 113.2 MB / 0.6202 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1)