Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009874/0.0009874, allocations: 198.2 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.203/1.203, allocations: 227.2 MB / 245 MB, free: 7.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008469/0.000847, allocations: 104.4 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2949/0.2949, allocations: 45.22 MB / 394.7 MB, free: 31.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002491/0.0002491, allocations: 8 kB / 468.4 MB, free: 7.746 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3055, allocations: 63.24 MB / 0.5192 GB, free: 43.49 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.074/5.379, allocations: 2.835 GB / 3.355 GB, free: 70.98 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001898/5.38, allocations: 84.02 kB / 3.355 GB, free: 70.94 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.915/8.294, allocations: 0.9157 GB / 4.27 GB, free: 0.5781 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.603e-06/8.294, allocations: 0 / 4.27 GB, free: 0.5781 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002494/8.295, allocations: 63.92 kB / 4.27 GB, free: 0.5156 MB / 0.5573 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.01506/8.31, allocations: 4.318 MB / 4.275 GB, free: 12.12 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/8.31, allocations: 12.03 kB / 4.275 GB, free: 12.11 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006207/8.316, allocations: 0.871 MB / 4.276 GB, free: 11.23 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006191/8.322, allocations: 2.101 MB / 4.278 GB, free: 9.078 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000236/8.322, allocations: 183.9 kB / 4.278 GB, free: 8.898 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007509/8.323, allocations: 207.9 kB / 4.278 GB, free: 8.695 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007513/8.331, allocations: 3.696 MB / 4.282 GB, free: 4.805 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.568e-05/8.331, allocations: 7.938 kB / 4.282 GB, free: 4.797 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002391/8.331, allocations: 91.97 kB / 4.282 GB, free: 4.707 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001936/8.331, allocations: 171.7 kB / 4.282 GB, free: 4.539 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00696/8.338, allocations: 3.446 MB / 4.285 GB, free: 1.09 MB / 0.573 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.3296/8.668, allocations: 15.57 MB / 4.3 GB, free: 27.6 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004954/8.673, allocations: 2.308 MB / 4.303 GB, free: 27.57 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04262/8.715, allocations: 27.1 MB / 4.329 GB, free: 25.94 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00443/8.72, allocations: 1.728 MB / 4.331 GB, free: 25.82 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=163): time 5.661e-06/8.72, allocations: 0 / 4.331 GB, free: 25.82 MB / 0.5886 GB Notification: Performance of matching and sorting (n=179): time 0.02475/8.745, allocations: 9.23 MB / 4.34 GB, free: 24.66 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001669/8.745, allocations: 261.8 kB / 4.34 GB, free: 24.38 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002675/8.748, allocations: 1.51 MB / 4.342 GB, free: 24.21 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.000269/8.748, allocations: 60.61 kB / 4.342 GB, free: 24.18 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008305/8.749, allocations: 0.9792 MB / 4.343 GB, free: 23.88 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005799/8.749, allocations: 0.5992 MB / 4.343 GB, free: 23.59 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/8.749, allocations: 42.06 kB / 4.343 GB, free: 23.59 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001946/8.75, allocations: 385.3 kB / 4.344 GB, free: 23.28 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002033/8.752, allocations: 1.152 MB / 4.345 GB, free: 23.27 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002155/8.754, allocations: 1.57 MB / 4.346 GB, free: 22.82 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002123/8.756, allocations: 1.387 MB / 4.348 GB, free: 22.74 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/8.756, allocations: 3.875 kB / 4.348 GB, free: 22.74 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.006433/8.762, allocations: 3.367 MB / 4.351 GB, free: 22.45 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001668/8.764, allocations: 4.488 MB / 4.355 GB, free: 17.76 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.477e-05/8.764, allocations: 10.53 kB / 4.355 GB, free: 17.76 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008988/8.765, allocations: 256.2 kB / 4.355 GB, free: 17.72 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002117/8.767, allocations: 0.511 MB / 4.356 GB, free: 17.72 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/8.769, allocations: 2.428 MB / 4.358 GB, free: 15.65 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002511/8.771, allocations: 271.9 kB / 4.359 GB, free: 15.64 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002191/8.771, allocations: 105 kB / 4.359 GB, free: 15.64 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/8.771, allocations: 3.688 kB / 4.359 GB, free: 15.64 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005547/8.777, allocations: 3.104 MB / 4.362 GB, free: 15.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.123e-05/8.777, allocations: 11.16 kB / 4.362 GB, free: 15.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008354/8.778, allocations: 252.3 kB / 4.362 GB, free: 15.47 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001985/8.78, allocations: 0.5043 MB / 4.362 GB, free: 15.47 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002034/8.782, allocations: 2.432 MB / 4.365 GB, free: 29.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002405/8.784, allocations: 268.7 kB / 4.365 GB, free: 29.39 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002027/8.785, allocations: 102.6 kB / 4.365 GB, free: 29.39 MB / 0.6042 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 () * Number of clocked 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.00163/8.786, allocations: 0.7615 MB / 4.366 GB, free: 29.13 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003488/8.787, allocations: 216.2 kB / 4.366 GB, free: 29.02 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009598/8.796, allocations: 7.731 MB / 4.374 GB, free: 28.36 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.465e-05/8.796, allocations: 87.77 kB / 4.374 GB, free: 28.36 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.397e-06/8.796, allocations: 3.953 kB / 4.374 GB, free: 28.36 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007109/8.803, allocations: 6.748 MB / 4.38 GB, free: 27.45 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01304/8.816, allocations: 11.03 MB / 4.391 GB, free: 26.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/8.816, allocations: 0 / 4.391 GB, free: 26.73 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001543/8.818, allocations: 420.7 kB / 4.392 GB, free: 26.73 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001316/8.819, allocations: 359.1 kB / 4.392 GB, free: 26.7 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001692/8.82, allocations: 67.33 kB / 4.392 GB, free: 26.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001636/8.821, allocations: 2.522 MB / 4.394 GB, free: 24.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/8.821, allocations: 0 / 4.394 GB, free: 24.62 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009045/8.83, allocations: 7.289 MB / 4.402 GB, free: 23.96 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001804/8.832, allocations: 0.7901 MB / 4.402 GB, free: 23.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003283/8.832, allocations: 58.08 kB / 4.402 GB, free: 23.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/8.834, allocations: 211.1 kB / 4.403 GB, free: 23.64 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002555/8.834, allocations: 152.1 kB / 4.403 GB, free: 23.64 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/8.834, allocations: 75.44 kB / 4.403 GB, free: 23.64 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0017/8.836, allocations: 1.352 MB / 4.404 GB, free: 23.5 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.51e-07/8.836, allocations: 0 / 4.404 GB, free: 23.5 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.009922/8.846, allocations: 2.905 MB / 4.407 GB, free: 23.37 MB / 0.6042 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) * Number of clocked states: 0 () * 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.009834/8.856, allocations: 2.98 MB / 4.41 GB, free: 23.06 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007943/8.864, allocations: 5.333 MB / 4.415 GB, free: 22.71 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/8.864, allocations: 0 / 4.415 GB, free: 22.71 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.00284/8.867, allocations: 2.491 MB / 4.417 GB, free: 22.57 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004483/8.871, allocations: 1.031 MB / 4.419 GB, free: 22.55 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009617/8.881, allocations: 8.709 MB / 4.427 GB, free: 19.25 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001522/8.882, allocations: 2.279 MB / 4.429 GB, free: 18.45 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.003905/8.886, allocations: 2.484 MB / 4.432 GB, free: 18.37 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005535/8.887, allocations: 208.6 kB / 4.432 GB, free: 18.36 MB / 0.6042 GB Notification: Performance of SimCode: time 7.32e-07/8.887, allocations: 0 / 4.432 GB, free: 18.36 MB / 0.6042 GB Notification: Performance of Templates: time 0.4207/9.307, allocations: 86.97 MB / 4.517 GB, free: 67.61 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes4/BranchingPipes4.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches