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.001915/0.001915, allocations: 196.7 kB / 18.1 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.715/1.715, allocations: 226.5 MB / 245.4 MB, free: 6.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008898/0.0008903, allocations: 101 kB / 297.5 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4645/0.4645, allocations: 44.83 MB / 394.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003248/0.0003252, allocations: 8 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5111/0.5115, allocations: 62.96 MB / 0.5184 GB, free: 37.55 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.127/7.639, allocations: 2.849 GB / 3.367 GB, free: 136.7 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/7.639, allocations: 87.25 kB / 3.367 GB, free: 136.7 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.285/10.92, allocations: 0.8411 GB / 4.209 GB, free: 36.52 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.934e-06/10.92, allocations: 0 / 4.209 GB, free: 36.52 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003161/10.92, allocations: 58.05 kB / 4.209 GB, free: 36.51 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.01779/10.94, allocations: 4.024 MB / 4.213 GB, free: 34.62 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/10.94, allocations: 8.625 kB / 4.213 GB, free: 34.62 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006357/10.95, allocations: 0.7893 MB / 4.213 GB, free: 34.5 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02567/10.97, allocations: 13.5 MB / 4.227 GB, free: 33.89 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003066/10.97, allocations: 163.5 kB / 4.227 GB, free: 33.89 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00111/10.98, allocations: 179.8 kB / 4.227 GB, free: 33.89 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00953/10.99, allocations: 3.298 MB / 4.23 GB, free: 33.4 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001084/10.99, allocations: 10.69 kB / 4.23 GB, free: 33.4 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006158/10.99, allocations: 85.78 kB / 4.23 GB, free: 33.4 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002282/10.99, allocations: 145.8 kB / 4.23 GB, free: 33.39 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007543/10.99, allocations: 2.956 MB / 4.233 GB, free: 33.38 MB / 0.5573 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.02139/11.02, allocations: 14.04 MB / 4.247 GB, free: 24.9 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006402/11.02, allocations: 2.078 MB / 4.249 GB, free: 24.86 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002563/11.02, allocations: 1.157 MB / 4.25 GB, free: 24.85 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05122/11.08, allocations: 27.16 MB / 4.277 GB, free: 22.55 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004723/11.08, allocations: 1.63 MB / 4.278 GB, free: 22.41 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001725/11.08, allocations: 181 kB / 4.278 GB, free: 22.32 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 9.658e-06/11.08, allocations: 0 / 4.278 GB, free: 22.32 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.02271/11.11, allocations: 8.389 MB / 4.287 GB, free: 21.2 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001495/11.11, allocations: 256.3 kB / 4.287 GB, free: 20.92 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002574/11.11, allocations: 1.507 MB / 4.288 GB, free: 20.73 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002724/11.11, allocations: 57.73 kB / 4.288 GB, free: 20.7 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008265/11.11, allocations: 0.8862 MB / 4.289 GB, free: 20.37 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005294/11.11, allocations: 0.5481 MB / 4.29 GB, free: 20.02 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001618/11.11, allocations: 39.38 kB / 4.29 GB, free: 20.02 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002298/11.11, allocations: 374.8 kB / 4.29 GB, free: 19.71 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001906/11.11, allocations: 1.039 MB / 4.291 GB, free: 19.49 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002135/11.11, allocations: 1.442 MB / 4.293 GB, free: 18.71 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003929/11.12, allocations: 2.61 MB / 4.295 GB, free: 17.36 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/11.12, allocations: 2.25 kB / 4.295 GB, free: 17.36 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.006347/11.12, allocations: 3.207 MB / 4.298 GB, free: 16.14 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003091/11.12, allocations: 444.6 kB / 4.299 GB, free: 15.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.221e-05/11.12, allocations: 6.062 kB / 4.299 GB, free: 15.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002341/11.13, allocations: 0.5276 MB / 4.299 GB, free: 15.48 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001728/11.13, allocations: 450.7 kB / 4.3 GB, free: 15.44 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002106/11.13, allocations: 2.717 MB / 4.302 GB, free: 13.11 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002661/11.13, allocations: 263.5 kB / 4.302 GB, free: 13.05 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003469/11.13, allocations: 96.77 kB / 4.303 GB, free: 13.03 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/11.13, allocations: 4.656 kB / 4.303 GB, free: 13.03 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00507/11.14, allocations: 2.828 MB / 4.305 GB, free: 11.98 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.189e-05/11.14, allocations: 15.34 kB / 4.305 GB, free: 11.98 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000627/11.14, allocations: 201.3 kB / 4.306 GB, free: 11.91 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001698/11.14, allocations: 464.8 kB / 4.306 GB, free: 11.86 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/11.14, allocations: 1.876 MB / 4.308 GB, free: 10.17 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002521/11.15, allocations: 263.1 kB / 4.308 GB, free: 10.11 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002652/11.15, allocations: 101.4 kB / 4.308 GB, free: 10.09 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 () * Number of clocked 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.001724/11.15, allocations: 0.7103 MB / 4.309 GB, free: 9.617 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005785/11.15, allocations: 195.9 kB / 4.309 GB, free: 9.52 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/11.16, allocations: 7.562 MB / 4.316 GB, free: 6.047 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.704e-05/11.16, allocations: 82.92 kB / 4.317 GB, free: 5.996 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/11.16, allocations: 4 kB / 4.317 GB, free: 5.992 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009078/11.17, allocations: 6.621 MB / 4.323 GB, free: 15.85 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01914/11.19, allocations: 11.41 MB / 4.334 GB, free: 5.965 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-05/11.19, allocations: 4 kB / 4.334 GB, free: 5.961 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001535/11.19, allocations: 367.3 kB / 4.334 GB, free: 5.66 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002779/11.19, allocations: 1.17 MB / 4.336 GB, free: 4.66 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003001/11.19, allocations: 71.39 kB / 4.336 GB, free: 4.602 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002877/11.19, allocations: 3.194 MB / 4.339 GB, free: 1.48 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/11.19, allocations: 7.938 kB / 4.339 GB, free: 1.473 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01426/11.21, allocations: 7.486 MB / 4.346 GB, free: 11.24 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002074/11.21, allocations: 0.7411 MB / 4.347 GB, free: 10.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007663/11.21, allocations: 55.75 kB / 4.347 GB, free: 10.53 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00216/11.21, allocations: 194.4 kB / 4.347 GB, free: 10.38 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003843/11.21, allocations: 153.6 kB / 4.347 GB, free: 10.28 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002142/11.21, allocations: 79.34 kB / 4.347 GB, free: 10.21 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.002706/11.22, allocations: 1.211 MB / 4.349 GB, free: 9.176 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.71e-07/11.22, allocations: 0 / 4.349 GB, free: 9.176 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01346/11.23, allocations: 2.526 MB / 4.351 GB, free: 6.699 MB / 0.6042 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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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) * Number of clocked states: 0 () * 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.01313/11.24, allocations: 2.634 MB / 4.354 GB, free: 4.684 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01092/11.25, allocations: 4.875 MB / 4.358 GB, free: 364 kB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/11.25, allocations: 0 / 4.358 GB, free: 364 kB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.3695/11.62, allocations: 3.087 MB / 4.361 GB, free: 80.91 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006897/11.63, allocations: 1.003 MB / 4.362 GB, free: 80.89 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01095/11.64, allocations: 8.175 MB / 4.37 GB, free: 77.77 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001625/11.64, allocations: 2.128 MB / 4.372 GB, free: 77.01 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.004448/11.65, allocations: 2.305 MB / 4.375 GB, free: 76.99 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005342/11.65, allocations: 179.1 kB / 4.375 GB, free: 76.99 MB / 0.6042 GB Notification: Performance of SimCode: time 9.92e-07/11.65, allocations: 2.406 kB / 4.375 GB, free: 76.99 MB / 0.6042 GB Notification: Performance of Templates: time 0.1247/11.77, allocations: 84.41 MB / 4.457 GB, free: 73.42 MB / 0.6042 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/jenkins1/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