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.001552/0.001552, allocations: 199.3 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008698/0.0008697, allocations: 92.52 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2037/0.2037, allocations: 45.15 MB / 383.8 MB, free: 260 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.917e-05/1.918e-05, allocations: 4 kB / 453.2 MB, free: 75.81 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1289, allocations: 63.25 MB / 0.5044 GB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.712/7.841, allocations: 2.835 GB / 3.339 GB, free: 11.16 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/7.841, allocations: 74.72 kB / 3.339 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.463/11.3, allocations: 0.9054 GB / 4.245 GB, free: 39.3 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.402e-06/11.3, allocations: 0 / 4.245 GB, free: 39.3 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003258/11.31, allocations: 69.06 kB / 4.245 GB, free: 39.29 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.01677/11.32, allocations: 4.041 MB / 4.249 GB, free: 37.51 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/11.32, allocations: 10 kB / 4.249 GB, free: 37.51 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006652/11.33, allocations: 0.8783 MB / 4.249 GB, free: 37.37 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006196/11.33, allocations: 2.069 MB / 4.251 GB, free: 36.93 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002349/11.34, allocations: 96.52 kB / 4.251 GB, free: 36.93 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008909/11.34, allocations: 118.3 kB / 4.252 GB, free: 36.93 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005649/11.34, allocations: 2.677 MB / 4.254 GB, free: 36.91 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006289/11.35, allocations: 2.895 MB / 4.257 GB, free: 36.4 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.147e-05/11.35, allocations: 7.281 kB / 4.257 GB, free: 36.4 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005834/11.35, allocations: 7.594 kB / 4.257 GB, free: 36.4 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002273/11.35, allocations: 169.2 kB / 4.257 GB, free: 36.39 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.6066/11.96, allocations: 138.8 MB / 4.393 GB, free: 101.3 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002473/11.96, allocations: 2.078 MB / 4.395 GB, free: 100.7 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001116/11.96, allocations: 0.9825 MB / 4.396 GB, free: 100.7 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02985/11.99, allocations: 18.85 MB / 4.414 GB, free: 88.31 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002317/11.99, allocations: 1.19 MB / 4.415 GB, free: 88.16 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=153): time 3.317e-06/11.99, allocations: 0.75 kB / 4.415 GB, free: 88.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=169): time 0.02194/12.01, allocations: 7.946 MB / 4.423 GB, free: 86.66 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/12.01, allocations: 360.9 kB / 4.423 GB, free: 86.26 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001857/12.02, allocations: 1.151 MB / 4.425 GB, free: 86.09 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0002316/12.02, allocations: 27.86 kB / 4.425 GB, free: 86.06 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008529/12.02, allocations: 1.035 MB / 4.426 GB, free: 85.71 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005505/12.02, allocations: 0.5459 MB / 4.426 GB, free: 85.43 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/12.02, allocations: 2.812 kB / 4.426 GB, free: 85.43 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.00014/12.02, allocations: 387.9 kB / 4.426 GB, free: 85.12 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/12.02, allocations: 1.007 MB / 4.427 GB, free: 85.11 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/12.02, allocations: 1.422 MB / 4.429 GB, free: 84.66 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005405/12.03, allocations: 1.932 MB / 4.431 GB, free: 84.65 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.447e-05/12.03, allocations: 6.875 kB / 4.431 GB, free: 84.65 MB / 0.6198 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008796/12.03, allocations: 3.656 MB / 4.434 GB, free: 84.45 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.000861/12.04, allocations: 4.414 MB / 4.439 GB, free: 79.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.175e-05/12.04, allocations: 18.19 kB / 4.439 GB, free: 79.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005219/12.04, allocations: 217.8 kB / 4.439 GB, free: 79.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001976/12.04, allocations: 0.5111 MB / 4.439 GB, free: 79.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001215/12.04, allocations: 2.449 MB / 4.442 GB, free: 77.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002722/12.04, allocations: 280.4 kB / 4.442 GB, free: 77.82 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002576/12.04, allocations: 105.3 kB / 4.442 GB, free: 77.82 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/12.04, allocations: 5.516 kB / 4.442 GB, free: 77.81 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007483/12.05, allocations: 3.222 MB / 4.445 GB, free: 77.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.299e-05/12.05, allocations: 10.25 kB / 4.445 GB, free: 77.73 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004412/12.05, allocations: 221.3 kB / 4.445 GB, free: 77.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001877/12.05, allocations: 0.5049 MB / 4.446 GB, free: 77.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/12.05, allocations: 2.452 MB / 4.448 GB, free: 75.63 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00252/12.06, allocations: 248.1 kB / 4.449 GB, free: 75.62 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002148/12.06, allocations: 99.58 kB / 4.449 GB, free: 75.62 MB / 0.6198 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,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,splitter.medium.phase,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 (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.0006639/12.06, allocations: 232.4 kB / 4.449 GB, free: 75.45 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004491/12.06, allocations: 190.2 kB / 4.449 GB, free: 75.35 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008158/12.07, allocations: 6.403 MB / 4.455 GB, free: 74.86 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.683e-05/12.07, allocations: 72.53 kB / 4.455 GB, free: 74.86 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/12.07, allocations: 0 / 4.455 GB, free: 74.86 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006129/12.07, allocations: 5.356 MB / 4.461 GB, free: 74.12 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01274/12.08, allocations: 9.162 MB / 4.47 GB, free: 73.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.669e-05/12.08, allocations: 3.344 kB / 4.47 GB, free: 73.32 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001421/12.09, allocations: 367.2 kB / 4.47 GB, free: 73.32 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007449/12.09, allocations: 318.1 kB / 4.47 GB, free: 73.27 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000159/12.09, allocations: 44.8 kB / 4.47 GB, free: 73.27 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001206/12.09, allocations: 2.626 MB / 4.473 GB, free: 71.19 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/12.09, allocations: 8.344 kB / 4.473 GB, free: 71.19 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00856/12.1, allocations: 6.356 MB / 4.479 GB, free: 70.6 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001689/12.1, allocations: 0.7075 MB / 4.48 GB, free: 70.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004932/12.1, allocations: 18.8 kB / 4.48 GB, free: 70.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001889/12.1, allocations: 179.2 kB / 4.48 GB, free: 70.3 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002737/12.1, allocations: 139 kB / 4.48 GB, free: 70.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001849/12.1, allocations: 72.88 kB / 4.48 GB, free: 70.3 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001703/12.1, allocations: 1.099 MB / 4.481 GB, free: 70.19 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.5e-07/12.1, allocations: 0 / 4.481 GB, free: 70.19 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01219/12.11, allocations: 2.756 MB / 4.484 GB, free: 70.06 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.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,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 (185): * Single equations (assignments): 160 * 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.01428/12.13, allocations: 3.188 MB / 4.487 GB, free: 69.72 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.007987/12.14, allocations: 4.739 MB / 4.492 GB, free: 69.42 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 9.839e-06/12.14, allocations: 5.5 kB / 4.492 GB, free: 69.42 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.002946/12.14, allocations: 2.158 MB / 4.494 GB, free: 69.29 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00492/12.15, allocations: 0.8615 MB / 4.495 GB, free: 69.27 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/12.16, allocations: 5.446 MB / 4.5 GB, free: 68.2 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002308/12.16, allocations: 2.193 MB / 4.502 GB, free: 67.43 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.005064/12.16, allocations: 2.606 MB / 4.505 GB, free: 67.41 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006235/12.16, allocations: 174.2 kB / 4.505 GB, free: 67.4 MB / 0.6198 GB Notification: Performance of SimCode: time 7.71e-07/12.16, allocations: 3.656 kB / 4.505 GB, free: 67.4 MB / 0.6198 GB Notification: Performance of Templates: time 0.1075/12.27, allocations: 74.7 MB / 4.578 GB, free: 50.84 MB / 0.6198 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