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.001287/0.001287, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 227.2 MB / 245 MB, free: 5.898 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008345/0.0008344, allocations: 104.2 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2879/0.2879, allocations: 45.22 MB / 394.7 MB, free: 31.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002361/0.0002362, allocations: 8 kB / 468.4 MB, free: 7.715 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2575, allocations: 63.26 MB / 0.5192 GB, free: 37.31 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.133/5.391, allocations: 2.848 GB / 3.367 GB, free: 36.16 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/5.391, allocations: 87.2 kB / 3.367 GB, free: 36.11 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.826/8.217, allocations: 0.8142 GB / 4.181 GB, free: 39.74 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.422e-06/8.217, allocations: 0 / 4.181 GB, free: 39.74 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003129/8.217, allocations: 63.86 kB / 4.182 GB, free: 39.72 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.0168/8.234, allocations: 3.929 MB / 4.185 GB, free: 37.74 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/8.234, allocations: 11.38 kB / 4.185 GB, free: 37.74 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005798/8.24, allocations: 0.7801 MB / 4.186 GB, free: 37.61 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00596/8.246, allocations: 2.012 MB / 4.188 GB, free: 37.12 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002253/8.246, allocations: 161.2 kB / 4.188 GB, free: 37.12 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007875/8.247, allocations: 190 kB / 4.188 GB, free: 37.11 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007006/8.254, allocations: 3.359 MB / 4.192 GB, free: 36.13 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.642e-05/8.254, allocations: 7.781 kB / 4.192 GB, free: 36.12 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002241/8.254, allocations: 87.94 kB / 4.192 GB, free: 36.07 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001493/8.255, allocations: 147.6 kB / 4.192 GB, free: 36.05 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005734/8.26, allocations: 3.189 MB / 4.195 GB, free: 35.11 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.01399/8.274, allocations: 13.82 MB / 4.209 GB, free: 24.77 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004219/8.279, allocations: 2.084 MB / 4.211 GB, free: 24.16 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04103/8.32, allocations: 27.17 MB / 4.237 GB, free: 21.1 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004523/8.324, allocations: 1.626 MB / 4.239 GB, free: 20.58 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001391/8.326, allocations: 182.9 kB / 4.239 GB, free: 20.41 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 4.469e-06/8.326, allocations: 4 kB / 4.239 GB, free: 20.41 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.0193/8.345, allocations: 8.524 MB / 4.247 GB, free: 13.02 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001512/8.345, allocations: 256.6 kB / 4.247 GB, free: 12.71 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002088/8.347, allocations: 1.334 MB / 4.249 GB, free: 11.59 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001939/8.347, allocations: 57.7 kB / 4.249 GB, free: 11.52 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006191/8.348, allocations: 0.8716 MB / 4.25 GB, free: 10.73 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003577/8.348, allocations: 0.5527 MB / 4.25 GB, free: 10.23 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/8.349, allocations: 40 kB / 4.25 GB, free: 10.19 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001602/8.349, allocations: 383.4 kB / 4.251 GB, free: 9.828 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001523/8.35, allocations: 1.038 MB / 4.252 GB, free: 8.965 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001965/8.352, allocations: 1.437 MB / 4.253 GB, free: 7.586 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001957/8.354, allocations: 1.258 MB / 4.254 GB, free: 6.465 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/8.354, allocations: 4 kB / 4.254 GB, free: 6.461 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005964/8.36, allocations: 3.189 MB / 4.257 GB, free: 3.66 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001444/8.362, allocations: 3.843 MB / 4.261 GB, free: 15.48 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/8.362, allocations: 12 kB / 4.261 GB, free: 15.47 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002569/8.364, allocations: 0.5289 MB / 4.262 GB, free: 15.07 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001755/8.366, allocations: 444.2 kB / 4.262 GB, free: 14.71 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001969/8.368, allocations: 2.722 MB / 4.265 GB, free: 12.03 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00234/8.37, allocations: 255 kB / 4.265 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002274/8.371, allocations: 97.09 kB / 4.265 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/8.371, allocations: 6.656 kB / 4.265 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005016/8.376, allocations: 2.825 MB / 4.268 GB, free: 9.273 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/8.376, allocations: 8 kB / 4.268 GB, free: 9.266 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000646/8.376, allocations: 209.1 kB / 4.268 GB, free: 9.094 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001749/8.378, allocations: 464.7 kB / 4.269 GB, free: 8.711 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/8.379, allocations: 1.874 MB / 4.27 GB, free: 6.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002245/8.381, allocations: 257.6 kB / 4.271 GB, free: 6.641 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002418/8.382, allocations: 99.11 kB / 4.271 GB, free: 6.555 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,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.001488/8.383, allocations: 0.7122 MB / 4.271 GB, free: 5.883 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004961/8.384, allocations: 201.6 kB / 4.272 GB, free: 5.684 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3402/8.724, allocations: 7.582 MB / 4.279 GB, free: 69.95 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.289e-05/8.724, allocations: 80.36 kB / 4.279 GB, free: 69.95 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/8.724, allocations: 0 / 4.279 GB, free: 69.95 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008185/8.732, allocations: 6.621 MB / 4.286 GB, free: 69.05 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01568/8.748, allocations: 11.38 MB / 4.297 GB, free: 68.06 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.415e-05/8.748, allocations: 8.875 kB / 4.297 GB, free: 68.06 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001332/8.749, allocations: 366.7 kB / 4.297 GB, free: 68.06 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00251/8.752, allocations: 1.207 MB / 4.298 GB, free: 67.99 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001851/8.752, allocations: 65.03 kB / 4.298 GB, free: 67.99 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/8.754, allocations: 3.207 MB / 4.301 GB, free: 65.91 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.635e-06/8.754, allocations: 7.094 kB / 4.301 GB, free: 65.91 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009717/8.764, allocations: 7.614 MB / 4.309 GB, free: 64.81 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001885/8.766, allocations: 0.7288 MB / 4.31 GB, free: 64.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003413/8.766, allocations: 56.86 kB / 4.31 GB, free: 64.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001413/8.767, allocations: 192.2 kB / 4.31 GB, free: 64.65 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000329/8.768, allocations: 157.2 kB / 4.31 GB, free: 64.64 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001702/8.768, allocations: 77.89 kB / 4.31 GB, free: 64.64 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002143/8.77, allocations: 1.215 MB / 4.311 GB, free: 64.5 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.71e-07/8.77, allocations: 0 / 4.311 GB, free: 64.5 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01129/8.781, allocations: 2.616 MB / 4.314 GB, free: 64.5 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) * 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.01343/8.795, allocations: 2.707 MB / 4.316 GB, free: 64.34 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.009561/8.804, allocations: 4.882 MB / 4.321 GB, free: 64.02 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/8.804, allocations: 0 / 4.321 GB, free: 64.02 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003436/8.808, allocations: 2.524 MB / 4.324 GB, free: 63.88 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004535/8.813, allocations: 0.913 MB / 4.324 GB, free: 63.86 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009277/8.822, allocations: 8.168 MB / 4.332 GB, free: 60.73 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001672/8.823, allocations: 2.184 MB / 4.335 GB, free: 59.97 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.004206/8.828, allocations: 2.296 MB / 4.337 GB, free: 59.94 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004762/8.828, allocations: 179.9 kB / 4.337 GB, free: 59.93 MB / 0.5886 GB Notification: Performance of SimCode: time 6.91e-07/8.828, allocations: 0 / 4.337 GB, free: 59.93 MB / 0.5886 GB Notification: Performance of Templates: time 0.1059/8.934, allocations: 81.35 MB / 4.416 GB, free: 55.91 MB / 0.5886 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