Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.BranchingPipes18") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.BranchingPipes18") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001534/0.001534, allocations: 181.6 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 2.032/2.032, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001178/0.001177, allocations: 82.72 kB / 267.5 MB, free: 14.05 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.2849/0.2849, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.333e-05/3.335e-05, allocations: 4 kB / 425.3 MB, free: 23.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1297, allocations: 58.86 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.513/8.643, allocations: 2.847 GB / 3.32 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/8.643, allocations: 87.12 kB / 3.32 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.171/13.81, allocations: 1.014 GB / 4.334 GB, free: 7.016 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.064e-06/13.81, allocations: 0 / 4.334 GB, free: 7.016 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002905/13.81, allocations: 71.92 kB / 4.334 GB, free: 6.945 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01866/13.83, allocations: 4.25 MB / 4.338 GB, free: 2.66 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/13.83, allocations: 11.98 kB / 4.338 GB, free: 2.648 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009741/13.84, allocations: 0.9371 MB / 4.339 GB, free: 1.707 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00875/13.85, allocations: 2.203 MB / 4.341 GB, free: 15.45 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003603/13.85, allocations: 196.8 kB / 4.341 GB, free: 15.26 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009155/13.85, allocations: 227.9 kB / 4.341 GB, free: 15.04 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01329/13.87, allocations: 3.889 MB / 4.345 GB, free: 10.91 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.42e-05/13.87, allocations: 7.938 kB / 4.345 GB, free: 10.91 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004822/13.87, allocations: 104 kB / 4.345 GB, free: 10.8 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003835/13.87, allocations: 171.9 kB / 4.345 GB, free: 10.63 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01259/13.88, allocations: 3.455 MB / 4.349 GB, free: 7.16 MB / 0.5573 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.4788/14.36, allocations: 16.94 MB / 4.365 GB, free: 32.05 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01002/14.37, allocations: 3.066 MB / 4.368 GB, free: 31.45 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003868/14.37, allocations: 1.268 MB / 4.37 GB, free: 31.44 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07829/14.45, allocations: 24.43 MB / 4.393 GB, free: 32.62 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006459/14.46, allocations: 1.89 MB / 4.395 GB, free: 32.48 MB / 0.573 GB Notification: Performance of pre-optimization done (n=192): time 6.362e-06/14.46, allocations: 0 / 4.395 GB, free: 32.48 MB / 0.573 GB Notification: Performance of matching and sorting (n=212): time 0.03986/14.5, allocations: 8.916 MB / 4.404 GB, free: 31.48 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001994/14.5, allocations: 267 kB / 4.404 GB, free: 31.2 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00316/14.5, allocations: 1.496 MB / 4.406 GB, free: 30.97 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007621/14.5, allocations: 72.11 kB / 4.406 GB, free: 30.94 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001006/14.5, allocations: 0.9559 MB / 4.407 GB, free: 30.57 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001212/14.5, allocations: 0.7079 MB / 4.407 GB, free: 30.21 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002778/14.5, allocations: 52.5 kB / 4.407 GB, free: 30.21 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002512/14.5, allocations: 404.5 kB / 4.408 GB, free: 29.9 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003238/14.51, allocations: 1.14 MB / 4.409 GB, free: 29.89 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004039/14.51, allocations: 1.659 MB / 4.411 GB, free: 29.38 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003829/14.52, allocations: 1.396 MB / 4.412 GB, free: 29.3 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-05/14.52, allocations: 5.156 kB / 4.412 GB, free: 29.3 MB / 0.573 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01016/14.53, allocations: 3.397 MB / 4.415 GB, free: 29.06 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002043/14.53, allocations: 4.949 MB / 4.42 GB, free: 23.92 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-05/14.53, allocations: 9.406 kB / 4.42 GB, free: 23.92 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001851/14.53, allocations: 338.6 kB / 4.42 GB, free: 23.88 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00516/14.54, allocations: 0.5984 MB / 4.421 GB, free: 23.88 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003029/14.54, allocations: 3.091 MB / 4.424 GB, free: 21.29 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005652/14.54, allocations: 336.8 kB / 4.424 GB, free: 21.28 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007731/14.54, allocations: 124.4 kB / 4.424 GB, free: 21.28 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/14.54, allocations: 2.719 kB / 4.425 GB, free: 21.28 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009652/14.55, allocations: 3.243 MB / 4.428 GB, free: 21.13 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.455e-05/14.55, allocations: 11.22 kB / 4.428 GB, free: 21.13 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/14.56, allocations: 334.1 kB / 4.428 GB, free: 21.09 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004889/14.56, allocations: 0.5905 MB / 4.429 GB, free: 21.09 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002909/14.56, allocations: 3.096 MB / 4.432 GB, free: 18.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004655/14.57, allocations: 334.9 kB / 4.432 GB, free: 18.48 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009482/14.57, allocations: 124.2 kB / 4.432 GB, free: 18.48 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,junctionVolume.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 (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001245/14.57, allocations: 320.1 kB / 4.432 GB, free: 18.31 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007801/14.57, allocations: 236.6 kB / 4.433 GB, free: 18.19 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0183/14.59, allocations: 8.206 MB / 4.441 GB, free: 17.46 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001037/14.59, allocations: 90.12 kB / 4.441 GB, free: 17.46 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/14.59, allocations: 1.781 kB / 4.441 GB, free: 17.46 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01251/14.6, allocations: 7.114 MB / 4.448 GB, free: 16.5 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02684/14.63, allocations: 13.22 MB / 4.461 GB, free: 14.86 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.229e-05/14.63, allocations: 5.781 kB / 4.461 GB, free: 14.86 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003738/14.63, allocations: 494.4 kB / 4.461 GB, free: 14.86 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002326/14.64, allocations: 461.8 kB / 4.461 GB, free: 14.81 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003366/14.64, allocations: 83.12 kB / 4.462 GB, free: 14.81 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002825/14.64, allocations: 3.223 MB / 4.465 GB, free: 12.22 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/14.64, allocations: 9.969 kB / 4.465 GB, free: 12.22 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01659/14.66, allocations: 8.243 MB / 4.473 GB, free: 26.79 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002939/14.66, allocations: 0.8262 MB / 4.474 GB, free: 26.44 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001053/14.66, allocations: 74.06 kB / 4.474 GB, free: 26.43 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003858/14.66, allocations: 237.7 kB / 4.474 GB, free: 26.42 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005462/14.66, allocations: 198.8 kB / 4.474 GB, free: 26.41 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003016/14.66, allocations: 100.6 kB / 4.474 GB, free: 26.41 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.00284/14.67, allocations: 1.322 MB / 4.475 GB, free: 26.25 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.142e-06/14.67, allocations: 0 / 4.475 GB, free: 26.25 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01358/14.68, allocations: 2.951 MB / 4.478 GB, free: 26.14 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionIdeal.medium.phase,junctionVolume.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 (239): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01525/14.7, allocations: 3.049 MB / 4.481 GB, free: 25.82 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01438/14.71, allocations: 5.551 MB / 4.487 GB, free: 25.48 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.618e-05/14.71, allocations: 3.312 kB / 4.487 GB, free: 25.48 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.006864/14.72, allocations: 2.947 MB / 4.49 GB, free: 25.34 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01055/14.73, allocations: 1.214 MB / 4.491 GB, free: 25.31 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01647/14.74, allocations: 6.685 MB / 4.497 GB, free: 23.93 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002398/14.75, allocations: 2.347 MB / 4.5 GB, free: 23.18 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001757/14.75, allocations: 247.7 kB / 4.5 GB, free: 23.17 MB / 0.5886 GB Notification: Performance of SimCode: time 1.322e-06/14.75, allocations: 0 / 4.5 GB, free: 23.17 MB / 0.5886 GB Notification: Performance of Templates: time 0.7073/15.46, allocations: 139.2 MB / 4.636 GB, free: 69.99 MB / 0.5886 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1)