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.001137/0.001137, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 225.6 MB / 234.8 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009253/0.0009254, allocations: 95.84 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1999/0.1999, allocations: 45.17 MB / 383.8 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.509e-05/1.53e-05, allocations: 11.28 kB / 453.2 MB, free: 75.83 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1158, allocations: 63.24 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.559/7.675, allocations: 2.847 GB / 3.352 GB, free: 68.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002347/7.675, allocations: 79.53 kB / 3.352 GB, free: 68.73 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.131/10.81, allocations: 0.8052 GB / 4.157 GB, free: 44.09 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.034e-06/10.81, allocations: 3.938 kB / 4.157 GB, free: 44.09 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002956/10.81, allocations: 62.08 kB / 4.157 GB, free: 44.08 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.01615/10.82, allocations: 3.669 MB / 4.161 GB, free: 42.28 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/10.82, allocations: 10.78 kB / 4.161 GB, free: 42.28 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006475/10.83, allocations: 0.7774 MB / 4.161 GB, free: 42.15 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007244/10.84, allocations: 1.99 MB / 4.163 GB, free: 41.71 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002164/10.84, allocations: 84.95 kB / 4.163 GB, free: 41.71 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000901/10.84, allocations: 113.7 kB / 4.164 GB, free: 41.7 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005029/10.84, allocations: 2.555 MB / 4.166 GB, free: 41.7 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005633/10.85, allocations: 2.541 MB / 4.169 GB, free: 41.21 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.837e-05/10.85, allocations: 6.812 kB / 4.169 GB, free: 41.21 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005096/10.85, allocations: 8.812 kB / 4.169 GB, free: 41.21 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002237/10.85, allocations: 147.2 kB / 4.169 GB, free: 41.21 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.5829/11.43, allocations: 137.1 MB / 4.303 GB, free: 47.52 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003237/11.44, allocations: 1.452 MB / 4.304 GB, free: 47.49 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001513/11.44, allocations: 0.9792 MB / 4.305 GB, free: 47.48 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03103/11.47, allocations: 18.92 MB / 4.323 GB, free: 35 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002893/11.47, allocations: 1.163 MB / 4.325 GB, free: 34.85 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001642/11.47, allocations: 152.3 kB / 4.325 GB, free: 34.85 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=145): time 9.097e-06/11.47, allocations: 2.281 kB / 4.325 GB, free: 34.85 MB / 0.5886 GB Notification: Performance of matching and sorting (n=157): time 0.03812/11.51, allocations: 8.961 MB / 4.333 GB, free: 33.41 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001399/11.51, allocations: 359.2 kB / 4.334 GB, free: 33.01 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002478/11.51, allocations: 1.021 MB / 4.335 GB, free: 32.85 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0006018/11.51, allocations: 29.64 kB / 4.335 GB, free: 32.82 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001163/11.52, allocations: 0.9219 MB / 4.336 GB, free: 32.51 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.000856/11.52, allocations: 0.5095 MB / 4.336 GB, free: 32.25 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002935/11.52, allocations: 0 / 4.336 GB, free: 32.25 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001639/11.52, allocations: 376 kB / 4.337 GB, free: 31.94 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001553/11.52, allocations: 0.914 MB / 4.337 GB, free: 31.94 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/11.52, allocations: 1.298 MB / 4.339 GB, free: 31.55 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007935/11.53, allocations: 1.849 MB / 4.34 GB, free: 31.5 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.755e-05/11.53, allocations: 2.656 kB / 4.341 GB, free: 31.5 MB / 0.5886 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01202/11.54, allocations: 3.564 MB / 4.344 GB, free: 31.27 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001069/11.54, allocations: 3.78 MB / 4.348 GB, free: 27.36 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.317e-05/11.54, allocations: 11.09 kB / 4.348 GB, free: 27.36 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001942/11.54, allocations: 492.8 kB / 4.348 GB, free: 27.32 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001918/11.55, allocations: 451.8 kB / 4.349 GB, free: 27.31 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002019/11.55, allocations: 2.806 MB / 4.351 GB, free: 25.23 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002877/11.55, allocations: 272.8 kB / 4.352 GB, free: 25.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004918/11.55, allocations: 92.48 kB / 4.352 GB, free: 25.2 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/11.55, allocations: 7.719 kB / 4.352 GB, free: 25.2 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01073/11.56, allocations: 3.038 MB / 4.355 GB, free: 25.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-05/11.56, allocations: 8.781 kB / 4.355 GB, free: 25.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004724/11.56, allocations: 183.1 kB / 4.355 GB, free: 25.08 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001974/11.56, allocations: 461.3 kB / 4.355 GB, free: 25.07 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/11.57, allocations: 1.893 MB / 4.357 GB, free: 23.51 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002538/11.57, allocations: 239.2 kB / 4.357 GB, free: 23.48 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003749/11.57, allocations: 101.3 kB / 4.357 GB, free: 23.48 MB / 0.5886 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.0008344/11.57, allocations: 219.6 kB / 4.358 GB, free: 23.31 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006829/11.57, allocations: 178 kB / 4.358 GB, free: 23.22 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01452/11.58, allocations: 6.793 MB / 4.364 GB, free: 22.7 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-05/11.58, allocations: 80.61 kB / 4.365 GB, free: 22.7 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.518e-05/11.58, allocations: 0 / 4.365 GB, free: 22.7 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01198/11.6, allocations: 5.913 MB / 4.37 GB, free: 21.94 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02102/11.62, allocations: 10.08 MB / 4.38 GB, free: 20.93 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.96e-05/11.62, allocations: 5.312 kB / 4.38 GB, free: 20.93 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/11.62, allocations: 322.2 kB / 4.38 GB, free: 20.93 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002001/11.62, allocations: 1.214 MB / 4.382 GB, free: 20.88 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003517/11.62, allocations: 50.58 kB / 4.382 GB, free: 20.88 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002392/11.62, allocations: 3.388 MB / 4.385 GB, free: 18.77 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.979e-06/11.62, allocations: 9.781 kB / 4.385 GB, free: 18.77 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01498/11.64, allocations: 7.218 MB / 4.392 GB, free: 17.59 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001515/11.64, allocations: 0.6621 MB / 4.393 GB, free: 17.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006599/11.64, allocations: 22.84 kB / 4.393 GB, free: 17.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001851/11.64, allocations: 150.2 kB / 4.393 GB, free: 17.28 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002969/11.64, allocations: 140 kB / 4.393 GB, free: 17.28 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001923/11.64, allocations: 75.59 kB / 4.393 GB, free: 17.28 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.00159/11.64, allocations: 1.009 MB / 4.394 GB, free: 17.17 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.5e-07/11.64, allocations: 2.078 kB / 4.394 GB, free: 17.17 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01033/11.66, allocations: 2.489 MB / 4.396 GB, free: 17.05 MB / 0.5886 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,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.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.01206/11.67, allocations: 2.868 MB / 4.399 GB, free: 16.65 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.007795/11.68, allocations: 4.328 MB / 4.404 GB, free: 16.34 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-05/11.68, allocations: 5.5 kB / 4.404 GB, free: 16.34 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003563/11.68, allocations: 2.135 MB / 4.406 GB, free: 16.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004554/11.68, allocations: 0.721 MB / 4.406 GB, free: 16.16 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009788/11.69, allocations: 5.102 MB / 4.411 GB, free: 14.84 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002116/11.7, allocations: 2.089 MB / 4.413 GB, free: 14.05 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.005046/11.7, allocations: 2.522 MB / 4.416 GB, free: 13.96 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006283/11.7, allocations: 142.9 kB / 4.416 GB, free: 13.95 MB / 0.5886 GB Notification: Performance of SimCode: time 6.71e-07/11.7, allocations: 3.812 kB / 4.416 GB, free: 13.95 MB / 0.5886 GB Notification: Performance of Templates: time 0.1032/11.8, allocations: 70.12 MB / 4.484 GB, free: 3.301 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