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.001342/0.001342, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.664/1.664, allocations: 226.5 MB / 245.4 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000863/0.0008633, allocations: 104.7 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.5072/0.5072, allocations: 44.83 MB / 394.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003538/0.0003541, allocations: 11.98 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4804/0.4807, allocations: 62.95 MB / 0.5184 GB, free: 37.58 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.083/7.564, allocations: 2.848 GB / 3.367 GB, free: 137.5 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/7.564, allocations: 82.83 kB / 3.367 GB, free: 137.5 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.295/10.86, allocations: 0.7741 GB / 4.141 GB, free: 39.04 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.917e-06/10.86, allocations: 2.812 kB / 4.141 GB, free: 39.04 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003423/10.86, allocations: 58.69 kB / 4.141 GB, free: 39.04 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.01798/10.88, allocations: 3.913 MB / 4.145 GB, free: 37.39 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/10.88, allocations: 11.03 kB / 4.145 GB, free: 37.39 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006127/10.88, allocations: 0.7814 MB / 4.146 GB, free: 37.27 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02309/10.91, allocations: 13.51 MB / 4.159 GB, free: 36.68 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002816/10.91, allocations: 163.2 kB / 4.159 GB, free: 36.68 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009922/10.91, allocations: 177.6 kB / 4.159 GB, free: 36.68 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008467/10.92, allocations: 3.371 MB / 4.162 GB, free: 36.19 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.198e-05/10.92, allocations: 10.16 kB / 4.162 GB, free: 36.19 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003079/10.92, allocations: 81.38 kB / 4.163 GB, free: 36.19 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002315/10.92, allocations: 148.8 kB / 4.163 GB, free: 36.18 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008026/10.93, allocations: 3.19 MB / 4.166 GB, free: 36.17 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.01945/10.95, allocations: 13.8 MB / 4.179 GB, free: 27.92 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004803/10.95, allocations: 2.085 MB / 4.181 GB, free: 27.89 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001889/10.95, allocations: 1.166 MB / 4.182 GB, free: 27.88 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04606/11, allocations: 27.16 MB / 4.209 GB, free: 26.12 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00443/11, allocations: 1.635 MB / 4.211 GB, free: 25.99 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001606/11, allocations: 185.9 kB / 4.211 GB, free: 25.91 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 8.005e-06/11, allocations: 0 / 4.211 GB, free: 25.91 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.02101/11.03, allocations: 8.4 MB / 4.219 GB, free: 24.87 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001623/11.03, allocations: 255.7 kB / 4.219 GB, free: 24.59 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002268/11.03, allocations: 1.504 MB / 4.221 GB, free: 24.4 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002964/11.03, allocations: 59.36 kB / 4.221 GB, free: 24.37 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007414/11.03, allocations: 0.8746 MB / 4.222 GB, free: 24.04 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004563/11.03, allocations: 0.546 MB / 4.222 GB, free: 23.69 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/11.03, allocations: 35 kB / 4.222 GB, free: 23.69 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001875/11.03, allocations: 384.5 kB / 4.223 GB, free: 23.38 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001739/11.03, allocations: 1.037 MB / 4.224 GB, free: 23.38 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001917/11.03, allocations: 1.452 MB / 4.225 GB, free: 22.98 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003629/11.04, allocations: 2.6 MB / 4.227 GB, free: 22.5 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-06/11.04, allocations: 2.656 kB / 4.227 GB, free: 22.5 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005961/11.04, allocations: 3.199 MB / 4.231 GB, free: 22.22 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003177/11.04, allocations: 442.3 kB / 4.231 GB, free: 21.73 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/11.04, allocations: 10.81 kB / 4.231 GB, free: 21.73 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002302/11.05, allocations: 0.5299 MB / 4.232 GB, free: 21.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001933/11.05, allocations: 452.4 kB / 4.232 GB, free: 21.69 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002157/11.05, allocations: 2.717 MB / 4.235 GB, free: 19.61 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002857/11.05, allocations: 255.9 kB / 4.235 GB, free: 19.57 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003084/11.05, allocations: 99.83 kB / 4.235 GB, free: 19.57 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/11.05, allocations: 4.812 kB / 4.235 GB, free: 19.57 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005059/11.06, allocations: 2.828 MB / 4.238 GB, free: 19.42 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.697e-05/11.06, allocations: 7.938 kB / 4.238 GB, free: 19.42 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006428/11.06, allocations: 211.1 kB / 4.238 GB, free: 19.39 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001762/11.06, allocations: 460.1 kB / 4.238 GB, free: 19.39 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00151/11.06, allocations: 1.875 MB / 4.24 GB, free: 17.83 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002996/11.07, allocations: 256.2 kB / 4.24 GB, free: 17.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002634/11.07, allocations: 93.86 kB / 4.241 GB, free: 17.8 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.002094/11.07, allocations: 0.7141 MB / 4.241 GB, free: 17.54 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006865/11.07, allocations: 196.1 kB / 4.241 GB, free: 17.44 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01064/11.08, allocations: 7.563 MB / 4.249 GB, free: 16.63 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.054e-05/11.08, allocations: 78.72 kB / 4.249 GB, free: 16.63 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.598e-05/11.08, allocations: 3.969 kB / 4.249 GB, free: 16.63 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00939/11.09, allocations: 6.615 MB / 4.255 GB, free: 15.7 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01759/11.11, allocations: 11.4 MB / 4.267 GB, free: 14.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.767e-05/11.11, allocations: 2.312 kB / 4.267 GB, free: 14.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/11.11, allocations: 362.2 kB / 4.267 GB, free: 14.49 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002664/11.11, allocations: 1.205 MB / 4.268 GB, free: 14.41 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003658/11.11, allocations: 71.08 kB / 4.268 GB, free: 14.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002657/11.11, allocations: 3.201 MB / 4.271 GB, free: 12.3 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.458e-06/11.11, allocations: 14.88 kB / 4.271 GB, free: 12.3 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01104/11.12, allocations: 7.3 MB / 4.278 GB, free: 11.43 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002052/11.13, allocations: 0.7253 MB / 4.279 GB, free: 11.11 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007729/11.13, allocations: 60.73 kB / 4.279 GB, free: 11.11 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001914/11.13, allocations: 187.6 kB / 4.279 GB, free: 11.09 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000305/11.13, allocations: 158 kB / 4.279 GB, free: 11.08 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001483/11.13, allocations: 75.8 kB / 4.28 GB, free: 11.08 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001732/11.13, allocations: 1.209 MB / 4.281 GB, free: 10.89 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.142e-06/11.13, allocations: 0 / 4.281 GB, free: 10.89 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01162/11.14, allocations: 2.495 MB / 4.283 GB, free: 10.41 MB / 0.573 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.01332/11.16, allocations: 2.559 MB / 4.286 GB, free: 9.734 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01002/11.17, allocations: 4.88 MB / 4.29 GB, free: 7.941 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.635e-05/11.17, allocations: 3.375 kB / 4.29 GB, free: 7.941 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003925/11.17, allocations: 2.522 MB / 4.293 GB, free: 6.855 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006285/11.18, allocations: 0.9339 MB / 4.294 GB, free: 6.625 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/11.19, allocations: 8.121 MB / 4.302 GB, free: 2.156 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001715/11.19, allocations: 2.115 MB / 4.304 GB, free: 1.281 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.004331/11.19, allocations: 2.297 MB / 4.306 GB, free: 1.199 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005218/11.19, allocations: 177.6 kB / 4.306 GB, free: 1.18 MB / 0.573 GB Notification: Performance of SimCode: time 1.393e-06/11.19, allocations: 3.469 kB / 4.306 GB, free: 1.18 MB / 0.573 GB Notification: Performance of Templates: time 0.5053/11.7, allocations: 82.62 MB / 4.387 GB, free: 80.3 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/jenkins1/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