Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,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.BranchingPipes3") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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.BranchingPipes3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001393/0.001393, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 225.6 MB / 234.8 MB, free: 3.23 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007976/0.0007978, allocations: 96.48 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.193/0.193, allocations: 45.14 MB / 383.8 MB, free: 264 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.462e-05/1.449e-05, allocations: 0 / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1266, allocations: 63.26 MB / 0.5044 GB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.139/8.265, allocations: 2.848 GB / 3.352 GB, free: 99.15 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/8.266, allocations: 80.75 kB / 3.352 GB, free: 99.15 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.1/11.37, allocations: 0.8753 GB / 4.228 GB, free: 34.8 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.312e-06/11.37, allocations: 0 / 4.228 GB, free: 34.8 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002227/11.37, allocations: 63.3 kB / 4.228 GB, free: 34.79 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01258/11.38, allocations: 3.768 MB / 4.231 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/11.38, allocations: 13.94 kB / 4.231 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005498/11.38, allocations: 0.7882 MB / 4.232 GB, free: 33.03 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005279/11.39, allocations: 1.966 MB / 4.234 GB, free: 32.6 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001703/11.39, allocations: 85.36 kB / 4.234 GB, free: 32.6 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007068/11.39, allocations: 113.9 kB / 4.234 GB, free: 32.59 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004479/11.39, allocations: 2.311 MB / 4.237 GB, free: 32.58 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004993/11.4, allocations: 2.548 MB / 4.239 GB, free: 32.11 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.508e-05/11.4, allocations: 6.688 kB / 4.239 GB, free: 32.11 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003728/11.4, allocations: 9.672 kB / 4.239 GB, free: 32.11 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001857/11.4, allocations: 152.5 kB / 4.239 GB, free: 32.1 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.2331/11.63, allocations: 137.3 MB / 4.373 GB, free: 21.14 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002764/11.64, allocations: 1.451 MB / 4.375 GB, free: 21.11 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001452/11.64, allocations: 0.9786 MB / 4.376 GB, free: 21.09 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03387/11.67, allocations: 18.92 MB / 4.394 GB, free: 24.01 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002235/11.67, allocations: 1.168 MB / 4.395 GB, free: 23.84 MB / 0.6511 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001421/11.68, allocations: 137.8 kB / 4.395 GB, free: 23.79 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=145): time 5.741e-06/11.68, allocations: 4 kB / 4.395 GB, free: 23.78 MB / 0.6511 GB Notification: Performance of matching and sorting (n=157): time 0.03039/11.71, allocations: 8.977 MB / 4.404 GB, free: 22.13 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001997/11.71, allocations: 367.4 kB / 4.405 GB, free: 21.72 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/11.71, allocations: 1.02 MB / 4.406 GB, free: 21.56 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001912/11.71, allocations: 29.3 kB / 4.406 GB, free: 21.53 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006443/11.71, allocations: 0.9302 MB / 4.406 GB, free: 21.12 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003508/11.71, allocations: 0.5071 MB / 4.407 GB, free: 20.79 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/11.71, allocations: 2.906 kB / 4.407 GB, free: 20.79 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001437/11.71, allocations: 374.6 kB / 4.407 GB, free: 20.48 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00107/11.71, allocations: 0.9193 MB / 4.408 GB, free: 20.47 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/11.71, allocations: 1.297 MB / 4.41 GB, free: 20.07 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00737/11.72, allocations: 1.842 MB / 4.411 GB, free: 20.03 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.38e-05/11.72, allocations: 3.875 kB / 4.411 GB, free: 20.03 MB / 0.6511 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01094/11.73, allocations: 3.558 MB / 4.415 GB, free: 19.8 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.001509/11.73, allocations: 3.789 MB / 4.418 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.068e-05/11.73, allocations: 8.625 kB / 4.418 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001826/11.73, allocations: 0.4905 MB / 4.419 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001758/11.73, allocations: 444.7 kB / 4.419 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00214/11.74, allocations: 2.817 MB / 4.422 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002689/11.74, allocations: 268.9 kB / 4.422 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002218/11.74, allocations: 95.05 kB / 4.422 GB, free: 13.54 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/11.74, allocations: 4 kB / 4.422 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008926/11.75, allocations: 3.037 MB / 4.425 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-05/11.75, allocations: 12 kB / 4.425 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003587/11.75, allocations: 192.8 kB / 4.426 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001641/11.75, allocations: 461.4 kB / 4.426 GB, free: 11.35 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001292/11.75, allocations: 1.893 MB / 4.428 GB, free: 9.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002291/11.75, allocations: 238.8 kB / 4.428 GB, free: 9.418 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002092/11.75, allocations: 94.8 kB / 4.428 GB, free: 9.352 MB / 0.6511 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,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,source.medium.phase,sink.medium.phase,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.000639/11.76, allocations: 227.6 kB / 4.428 GB, free: 9.145 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003264/11.76, allocations: 186.9 kB / 4.429 GB, free: 8.965 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01284/11.77, allocations: 6.787 MB / 4.435 GB, free: 5.207 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.537e-05/11.77, allocations: 74.59 kB / 4.435 GB, free: 5.176 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/11.77, allocations: 0 / 4.435 GB, free: 5.176 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01079/11.78, allocations: 5.938 MB / 4.441 GB, free: 1.652 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3763/12.16, allocations: 10.15 MB / 4.451 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/12.16, allocations: 7.156 kB / 4.451 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/12.16, allocations: 317.9 kB / 4.451 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001756/12.16, allocations: 1.226 MB / 4.453 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001455/12.16, allocations: 43.31 kB / 4.453 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002149/12.16, allocations: 3.404 MB / 4.456 GB, free: 125.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.989e-06/12.16, allocations: 7.969 kB / 4.456 GB, free: 125.6 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01308/12.17, allocations: 7.214 MB / 4.463 GB, free: 124.6 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001388/12.18, allocations: 0.6639 MB / 4.464 GB, free: 124.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003206/12.18, allocations: 25.56 kB / 4.464 GB, free: 124.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001365/12.18, allocations: 150.8 kB / 4.464 GB, free: 124.5 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002963/12.18, allocations: 143.9 kB / 4.464 GB, free: 124.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001515/12.18, allocations: 76.62 kB / 4.464 GB, free: 124.5 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.001429/12.18, allocations: 1.008 MB / 4.465 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/12.18, allocations: 1.859 kB / 4.465 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.01052/12.19, allocations: 2.52 MB / 4.467 GB, free: 124.4 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.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.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.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) * 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 (163): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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.01037/12.2, allocations: 2.974 MB / 4.47 GB, free: 124.2 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.005921/12.21, allocations: 4.309 MB / 4.475 GB, free: 123.9 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-05/12.21, allocations: 3.844 kB / 4.475 GB, free: 123.9 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.002458/12.21, allocations: 2.143 MB / 4.477 GB, free: 123.8 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00406/12.21, allocations: 0.7925 MB / 4.477 GB, free: 123.8 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006671/12.22, allocations: 5.12 MB / 4.482 GB, free: 122.7 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00122/12.22, allocations: 2.099 MB / 4.485 GB, free: 121.9 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.003802/12.22, allocations: 2.537 MB / 4.487 GB, free: 121.9 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003955/12.22, allocations: 151.5 kB / 4.487 GB, free: 121.9 MB / 0.6511 GB Notification: Performance of SimCode: time 5.71e-07/12.22, allocations: 2.625 kB / 4.487 GB, free: 121.9 MB / 0.6511 GB Notification: Performance of Templates: time 0.09228/12.32, allocations: 70.72 MB / 4.556 GB, free: 118.5 MB / 0.6511 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes3/BranchingPipes3.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches