Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,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.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,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.BranchingPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001162/0.001162, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009596/0.0009598, allocations: 93.27 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1953/0.1953, allocations: 45.15 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.564e-05/4.568e-05, allocations: 4 kB / 460.4 MB, free: 70.01 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1138, allocations: 63.24 MB / 0.5114 GB, free: 6.797 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.179/6.293, allocations: 2.832 GB / 3.343 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001828/6.293, allocations: 75.97 kB / 3.343 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.679/8.972, allocations: 0.8763 GB / 4.219 GB, free: 5.105 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.203e-06/8.972, allocations: 0 / 4.219 GB, free: 5.105 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002427/8.973, allocations: 55.98 kB / 4.219 GB, free: 5.051 MB / 0.573 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.01432/8.987, allocations: 3.839 MB / 4.223 GB, free: 1.145 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/8.987, allocations: 8.031 kB / 4.223 GB, free: 1.137 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005679/8.993, allocations: 0.7854 MB / 4.224 GB, free: 356 kB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3074/9.3, allocations: 1.941 MB / 4.226 GB, free: 43.5 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001681/9.3, allocations: 162.7 kB / 4.226 GB, free: 43.49 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004035/9.301, allocations: 191.9 kB / 4.226 GB, free: 43.49 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005944/9.307, allocations: 3.29 MB / 4.229 GB, free: 43.03 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.074e-05/9.307, allocations: 5.5 kB / 4.229 GB, free: 43.03 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002039/9.307, allocations: 82.55 kB / 4.23 GB, free: 43.02 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001446/9.307, allocations: 154.8 kB / 4.23 GB, free: 43.02 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004782/9.312, allocations: 2.921 MB / 4.233 GB, free: 43 MB / 0.573 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.01681/9.329, allocations: 14.23 MB / 4.246 GB, free: 34.59 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004304/9.333, allocations: 1.984 MB / 4.248 GB, free: 34.57 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001382/9.334, allocations: 0.9909 MB / 4.249 GB, free: 34.55 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04255/9.377, allocations: 27.17 MB / 4.276 GB, free: 32.92 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003601/9.381, allocations: 1.588 MB / 4.277 GB, free: 32.8 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001173/9.382, allocations: 181.5 kB / 4.278 GB, free: 32.76 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=146): time 3.196e-06/9.382, allocations: 2.625 kB / 4.278 GB, free: 32.76 MB / 0.5886 GB Notification: Performance of matching and sorting (n=158): time 0.01447/9.396, allocations: 6.918 MB / 4.284 GB, free: 31.85 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/9.396, allocations: 259.2 kB / 4.285 GB, free: 31.57 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001713/9.398, allocations: 1.394 MB / 4.286 GB, free: 31.4 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001589/9.398, allocations: 56.92 kB / 4.286 GB, free: 31.37 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005953/9.399, allocations: 0.8888 MB / 4.287 GB, free: 31.1 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003346/9.399, allocations: 0.5275 MB / 4.287 GB, free: 30.8 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/9.399, allocations: 34.12 kB / 4.287 GB, free: 30.8 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001469/9.4, allocations: 376.2 kB / 4.288 GB, free: 30.49 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/9.401, allocations: 0.9326 MB / 4.289 GB, free: 30.49 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/9.402, allocations: 1.305 MB / 4.29 GB, free: 30.11 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/9.403, allocations: 1.154 MB / 4.291 GB, free: 30.02 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/9.403, allocations: 3.531 kB / 4.291 GB, free: 30.02 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.004388/9.408, allocations: 2.999 MB / 4.294 GB, free: 29.74 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001203/9.409, allocations: 3.84 MB / 4.298 GB, free: 25.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/9.409, allocations: 15.27 kB / 4.298 GB, free: 25.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002332/9.411, allocations: 0.5854 MB / 4.298 GB, free: 25.67 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00155/9.413, allocations: 436.6 kB / 4.299 GB, free: 25.67 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001922/9.415, allocations: 2.827 MB / 4.302 GB, free: 23.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002167/9.417, allocations: 236.7 kB / 4.302 GB, free: 23.58 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001876/9.417, allocations: 90.78 kB / 4.302 GB, free: 23.58 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.042e-05/9.417, allocations: 5.156 kB / 4.302 GB, free: 23.58 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00355/9.421, allocations: 2.6 MB / 4.304 GB, free: 23.45 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/9.421, allocations: 10.88 kB / 4.304 GB, free: 23.45 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005174/9.421, allocations: 196 kB / 4.305 GB, free: 23.42 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001556/9.423, allocations: 455.9 kB / 4.305 GB, free: 23.42 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/9.424, allocations: 1.877 MB / 4.307 GB, free: 21.87 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002157/9.426, allocations: 235.1 kB / 4.307 GB, free: 21.85 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001737/9.426, allocations: 93.83 kB / 4.307 GB, free: 21.85 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 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.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_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005849/9.427, allocations: 278 kB / 4.307 GB, free: 21.68 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003165/9.427, allocations: 199.2 kB / 4.308 GB, free: 21.58 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00725/9.435, allocations: 7.456 MB / 4.315 GB, free: 20.86 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.464e-05/9.435, allocations: 86.34 kB / 4.315 GB, free: 20.86 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.423e-06/9.435, allocations: 2.906 kB / 4.315 GB, free: 20.86 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005758/9.44, allocations: 6.507 MB / 4.321 GB, free: 19.99 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01113/9.452, allocations: 10.39 MB / 4.331 GB, free: 19.29 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/9.452, allocations: 0 / 4.331 GB, free: 19.29 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001219/9.453, allocations: 338.9 kB / 4.332 GB, free: 19.29 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002581/9.455, allocations: 1.592 MB / 4.333 GB, free: 19.21 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001315/9.456, allocations: 59.56 kB / 4.333 GB, free: 19.21 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002168/9.458, allocations: 3.47 MB / 4.337 GB, free: 17.11 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/9.458, allocations: 3.844 kB / 4.337 GB, free: 17.11 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006593/9.464, allocations: 7.08 MB / 4.344 GB, free: 16.53 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001478/9.466, allocations: 0.7347 MB / 4.344 GB, free: 16.21 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003103/9.466, allocations: 47.2 kB / 4.344 GB, free: 16.21 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/9.467, allocations: 185 kB / 4.345 GB, free: 16.2 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002332/9.468, allocations: 134.3 kB / 4.345 GB, free: 16.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/9.468, allocations: 71.14 kB / 4.345 GB, free: 16.2 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001471/9.469, allocations: 1.263 MB / 4.346 GB, free: 16.03 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.6e-07/9.469, allocations: 0 / 4.346 GB, free: 16.03 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.007661/9.477, allocations: 2.752 MB / 4.349 GB, free: 15.91 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (166): * Single equations (assignments): 140 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.009691/9.487, allocations: 2.912 MB / 4.352 GB, free: 15.6 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.006446/9.493, allocations: 4.664 MB / 4.356 GB, free: 15.28 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/9.493, allocations: 0 / 4.356 GB, free: 15.28 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002463/9.496, allocations: 2.241 MB / 4.358 GB, free: 15.13 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004208/9.5, allocations: 0.9684 MB / 4.359 GB, free: 15.12 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00639/9.506, allocations: 5.528 MB / 4.365 GB, free: 14.05 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001317/9.508, allocations: 2.186 MB / 4.367 GB, free: 13.29 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.00371/9.511, allocations: 2.401 MB / 4.369 GB, free: 13.26 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003925/9.512, allocations: 153.8 kB / 4.369 GB, free: 13.25 MB / 0.5886 GB Notification: Performance of SimCode: time 7.11e-07/9.512, allocations: 0 / 4.369 GB, free: 13.25 MB / 0.5886 GB Notification: Performance of Templates: time 0.3905/9.902, allocations: 89.88 MB / 4.457 GB, free: 72.74 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes13/BranchingPipes13.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches