Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,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|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,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|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009672/0.0009672, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.201/1.201, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008767/0.0008769, allocations: 86.73 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1835/0.1835, allocations: 45.15 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.188e-05/2.19e-05, allocations: 4 kB / 460.4 MB, free: 70.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1045, allocations: 63.25 MB / 0.5114 GB, free: 6.789 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.623/6.728, allocations: 2.848 GB / 3.359 GB, free: 139.9 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/6.728, allocations: 76 kB / 3.359 GB, free: 139.9 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.757/9.485, allocations: 0.8121 GB / 4.171 GB, free: 37.88 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.192e-06/9.485, allocations: 0 / 4.171 GB, free: 37.88 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002472/9.485, allocations: 59.19 kB / 4.172 GB, free: 37.87 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01333/9.498, allocations: 3.68 MB / 4.175 GB, free: 36.3 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/9.498, allocations: 11.31 kB / 4.175 GB, free: 36.3 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006104/9.504, allocations: 0.7855 MB / 4.176 GB, free: 36.17 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005703/9.51, allocations: 1.987 MB / 4.178 GB, free: 35.74 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002247/9.51, allocations: 166.1 kB / 4.178 GB, free: 35.74 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007583/9.511, allocations: 182.1 kB / 4.178 GB, free: 35.74 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00675/9.518, allocations: 3.343 MB / 4.181 GB, free: 35.25 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.675e-05/9.518, allocations: 6.656 kB / 4.181 GB, free: 35.25 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003453/9.518, allocations: 84.81 kB / 4.182 GB, free: 35.25 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001635/9.518, allocations: 145.1 kB / 4.182 GB, free: 35.24 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00538/9.524, allocations: 3.076 MB / 4.185 GB, free: 35.23 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.01414/9.538, allocations: 13.83 MB / 4.198 GB, free: 26.98 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003554/9.542, allocations: 1.998 MB / 4.2 GB, free: 26.95 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001257/9.543, allocations: 1.064 MB / 4.201 GB, free: 26.93 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04178/9.585, allocations: 27.24 MB / 4.228 GB, free: 25.18 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004239/9.589, allocations: 1.637 MB / 4.229 GB, free: 25.06 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001568/9.59, allocations: 174.3 kB / 4.23 GB, free: 24.98 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 1.11e-05/9.591, allocations: 3.031 kB / 4.23 GB, free: 24.98 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.01784/9.608, allocations: 7.034 MB / 4.236 GB, free: 24.03 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/9.609, allocations: 261.9 kB / 4.237 GB, free: 23.75 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002518/9.611, allocations: 1.317 MB / 4.238 GB, free: 23.57 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002399/9.611, allocations: 61.58 kB / 4.238 GB, free: 23.54 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008743/9.612, allocations: 0.8652 MB / 4.239 GB, free: 23.21 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000546/9.613, allocations: 0.5565 MB / 4.239 GB, free: 22.86 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/9.613, allocations: 36.06 kB / 4.239 GB, free: 22.86 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001796/9.613, allocations: 378.8 kB / 4.24 GB, free: 22.55 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/9.614, allocations: 0.9333 MB / 4.241 GB, free: 22.55 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/9.616, allocations: 1.334 MB / 4.242 GB, free: 22.16 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00154/9.618, allocations: 1.166 MB / 4.243 GB, free: 22.07 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/9.618, allocations: 3 kB / 4.243 GB, free: 22.07 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004917/9.623, allocations: 2.983 MB / 4.246 GB, free: 21.8 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001314/9.624, allocations: 3.848 MB / 4.25 GB, free: 17.76 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/9.624, allocations: 9.562 kB / 4.25 GB, free: 17.76 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002061/9.626, allocations: 0.5096 MB / 4.25 GB, free: 17.73 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001561/9.628, allocations: 453.7 kB / 4.251 GB, free: 17.73 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001814/9.629, allocations: 2.708 MB / 4.253 GB, free: 15.65 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002332/9.632, allocations: 257.2 kB / 4.254 GB, free: 15.63 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001786/9.632, allocations: 98.53 kB / 4.254 GB, free: 15.63 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 8.706e-06/9.632, allocations: 5.469 kB / 4.254 GB, free: 15.63 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003539/9.635, allocations: 2.621 MB / 4.256 GB, free: 15.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/9.636, allocations: 11.16 kB / 4.256 GB, free: 15.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005202/9.636, allocations: 196.3 kB / 4.256 GB, free: 15.48 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001571/9.638, allocations: 457.7 kB / 4.257 GB, free: 15.48 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/9.639, allocations: 1.871 MB / 4.259 GB, free: 13.93 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002033/9.641, allocations: 260.5 kB / 4.259 GB, free: 13.91 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001618/9.641, allocations: 90.94 kB / 4.259 GB, free: 13.91 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.000509/9.641, allocations: 296.5 kB / 4.259 GB, free: 13.73 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002784/9.642, allocations: 205.8 kB / 4.26 GB, free: 13.63 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007464/9.649, allocations: 7.441 MB / 4.267 GB, free: 12.86 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.299e-05/9.649, allocations: 84.88 kB / 4.267 GB, free: 12.86 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/9.649, allocations: 6.438 kB / 4.267 GB, free: 12.86 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005978/9.655, allocations: 6.508 MB / 4.273 GB, free: 11.91 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01215/9.667, allocations: 11.24 MB / 4.284 GB, free: 10.77 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/9.667, allocations: 2.406 kB / 4.284 GB, free: 10.77 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001264/9.669, allocations: 368.2 kB / 4.285 GB, free: 10.77 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002156/9.671, allocations: 1.293 MB / 4.286 GB, free: 10.7 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000138/9.671, allocations: 65.38 kB / 4.286 GB, free: 10.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002511/9.674, allocations: 3.193 MB / 4.289 GB, free: 24.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/9.674, allocations: 12 kB / 4.289 GB, free: 24.6 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007098/9.681, allocations: 7.283 MB / 4.296 GB, free: 23.34 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001627/9.682, allocations: 0.7359 MB / 4.297 GB, free: 23.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002953/9.683, allocations: 54.69 kB / 4.297 GB, free: 23.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0013/9.684, allocations: 191.7 kB / 4.297 GB, free: 23 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002663/9.684, allocations: 156.4 kB / 4.297 GB, free: 23 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/9.684, allocations: 85.59 kB / 4.297 GB, free: 23 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001443/9.686, allocations: 1.191 MB / 4.299 GB, free: 22.84 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.5e-07/9.686, allocations: 1.031 kB / 4.299 GB, free: 22.84 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.008216/9.694, allocations: 2.62 MB / 4.301 GB, free: 22.49 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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) * 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 (179): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.008099/9.702, allocations: 2.709 MB / 4.304 GB, free: 21.96 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.005953/9.708, allocations: 4.676 MB / 4.308 GB, free: 21.62 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/9.708, allocations: 4.438 kB / 4.308 GB, free: 21.62 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.00264/9.711, allocations: 2.438 MB / 4.311 GB, free: 21.48 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00419/9.715, allocations: 0.9099 MB / 4.312 GB, free: 21.46 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006999/9.722, allocations: 5.648 MB / 4.317 GB, free: 19.22 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001272/9.723, allocations: 2.189 MB / 4.319 GB, free: 18.33 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.003819/9.727, allocations: 2.476 MB / 4.322 GB, free: 18.24 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004068/9.728, allocations: 158.7 kB / 4.322 GB, free: 18.22 MB / 0.5886 GB Notification: Performance of SimCode: time 3.41e-07/9.728, allocations: 0 / 4.322 GB, free: 18.22 MB / 0.5886 GB Notification: Performance of Templates: time 0.4158/10.14, allocations: 86.79 MB / 4.407 GB, free: 82.02 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes2/BranchingPipes2.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches