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.001049/0.001049, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 227.2 MB / 245 MB, free: 7.621 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000848/0.000848, allocations: 95 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2872/0.2872, allocations: 45.23 MB / 394.7 MB, free: 31.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000247/0.000247, allocations: 8 kB / 468.4 MB, free: 7.742 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2794, allocations: 63.24 MB / 0.5192 GB, free: 43.76 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.145/5.425, allocations: 2.849 GB / 3.368 GB, free: 57.7 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/5.425, allocations: 84.58 kB / 3.368 GB, free: 57.66 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.951/8.376, allocations: 0.885 GB / 4.253 GB, free: 21.1 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.362e-06/8.376, allocations: 0 / 4.253 GB, free: 21.1 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002655/8.376, allocations: 55.92 kB / 4.253 GB, free: 21.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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01803/8.394, allocations: 4.036 MB / 4.257 GB, free: 16.93 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/8.394, allocations: 8.031 kB / 4.257 GB, free: 16.93 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00607/8.4, allocations: 0.7913 MB / 4.258 GB, free: 16.13 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005876/8.406, allocations: 1.995 MB / 4.26 GB, free: 14.09 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002083/8.406, allocations: 163.8 kB / 4.26 GB, free: 13.93 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00083/8.407, allocations: 187.9 kB / 4.26 GB, free: 13.75 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007754/8.415, allocations: 3.275 MB / 4.263 GB, free: 10.3 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.309e-05/8.415, allocations: 7.938 kB / 4.263 GB, free: 10.29 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004123/8.416, allocations: 83.97 kB / 4.263 GB, free: 10.21 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001748/8.416, allocations: 151.2 kB / 4.263 GB, free: 10.06 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006031/8.422, allocations: 2.956 MB / 4.266 GB, free: 7.102 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.01759/8.439, allocations: 14.07 MB / 4.28 GB, free: 7.871 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004786/8.444, allocations: 2.077 MB / 4.282 GB, free: 5.781 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3802/8.824, allocations: 27.16 MB / 4.309 GB, free: 29.76 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003829/8.828, allocations: 1.627 MB / 4.31 GB, free: 29.64 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001389/8.83, allocations: 168.7 kB / 4.31 GB, free: 29.64 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 4.098e-06/8.83, allocations: 5.359 kB / 4.31 GB, free: 29.64 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.01899/8.849, allocations: 8.524 MB / 4.319 GB, free: 28.59 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.879e-05/8.849, allocations: 261.9 kB / 4.319 GB, free: 28.3 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002205/8.851, allocations: 1.339 MB / 4.32 GB, free: 28.14 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000188/8.851, allocations: 58.14 kB / 4.32 GB, free: 28.11 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000848/8.852, allocations: 0.8816 MB / 4.321 GB, free: 27.84 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004512/8.853, allocations: 0.5523 MB / 4.322 GB, free: 27.57 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/8.853, allocations: 39.19 kB / 4.322 GB, free: 27.57 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001228/8.853, allocations: 381.7 kB / 4.322 GB, free: 27.26 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00179/8.855, allocations: 1.036 MB / 4.323 GB, free: 27.25 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001967/8.857, allocations: 1.435 MB / 4.324 GB, free: 26.87 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001768/8.858, allocations: 1.263 MB / 4.326 GB, free: 26.79 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/8.858, allocations: 3.938 kB / 4.326 GB, free: 26.79 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.006293/8.865, allocations: 3.189 MB / 4.329 GB, free: 26.52 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009493/8.866, allocations: 3.849 MB / 4.333 GB, free: 22.48 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.561e-05/8.866, allocations: 9.156 kB / 4.333 GB, free: 22.48 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002781/8.869, allocations: 0.5324 MB / 4.333 GB, free: 22.45 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002004/8.871, allocations: 447.2 kB / 4.334 GB, free: 22.45 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001607/8.872, allocations: 2.704 MB / 4.336 GB, free: 20.38 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002566/8.875, allocations: 273.9 kB / 4.336 GB, free: 20.36 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000185/8.875, allocations: 97.73 kB / 4.337 GB, free: 20.36 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/8.875, allocations: 8.344 kB / 4.337 GB, free: 20.36 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005049/8.88, allocations: 2.828 MB / 4.339 GB, free: 20.23 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.902e-05/8.88, allocations: 13.69 kB / 4.339 GB, free: 20.23 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006752/8.881, allocations: 204.6 kB / 4.339 GB, free: 20.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00177/8.883, allocations: 460.4 kB / 4.34 GB, free: 20.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009425/8.883, allocations: 1.873 MB / 4.342 GB, free: 18.65 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002347/8.886, allocations: 268.4 kB / 4.342 GB, free: 18.64 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001722/8.886, allocations: 92.75 kB / 4.342 GB, free: 18.64 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.001407/8.887, allocations: 0.718 MB / 4.343 GB, free: 18.39 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002819/8.888, allocations: 201 kB / 4.343 GB, free: 18.29 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009909/8.898, allocations: 7.552 MB / 4.35 GB, free: 17.61 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.985e-05/8.898, allocations: 84.53 kB / 4.35 GB, free: 17.61 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/8.898, allocations: 4.578 kB / 4.35 GB, free: 17.61 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007713/8.906, allocations: 6.619 MB / 4.357 GB, free: 16.7 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01461/8.92, allocations: 11.41 MB / 4.368 GB, free: 15.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/8.92, allocations: 8.578 kB / 4.368 GB, free: 15.6 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/8.921, allocations: 370.2 kB / 4.368 GB, free: 15.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002324/8.924, allocations: 1.179 MB / 4.37 GB, free: 15.54 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001435/8.924, allocations: 67.58 kB / 4.37 GB, free: 15.54 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001653/8.926, allocations: 3.185 MB / 4.373 GB, free: 13.45 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.227e-06/8.926, allocations: 6.359 kB / 4.373 GB, free: 13.45 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00795/8.934, allocations: 7.615 MB / 4.38 GB, free: 12.16 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/8.935, allocations: 0.7338 MB / 4.381 GB, free: 11.9 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002825/8.935, allocations: 58.73 kB / 4.381 GB, free: 11.9 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001311/8.937, allocations: 197 kB / 4.381 GB, free: 11.89 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002524/8.937, allocations: 159.1 kB / 4.381 GB, free: 11.88 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001307/8.937, allocations: 79.98 kB / 4.381 GB, free: 11.88 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001452/8.939, allocations: 1.221 MB / 4.383 GB, free: 11.73 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.2e-07/8.939, allocations: 2.734 kB / 4.383 GB, free: 11.73 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009409/8.948, allocations: 2.649 MB / 4.385 GB, free: 11.62 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,$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.009544/8.958, allocations: 2.792 MB / 4.388 GB, free: 11.35 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00688/8.964, allocations: 4.881 MB / 4.393 GB, free: 11.02 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/8.964, allocations: 0 / 4.393 GB, free: 11.02 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002832/8.967, allocations: 2.522 MB / 4.395 GB, free: 10.88 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004232/8.972, allocations: 0.9799 MB / 4.396 GB, free: 10.86 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009113/8.981, allocations: 8.228 MB / 4.404 GB, free: 7.676 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001815/8.983, allocations: 2.191 MB / 4.406 GB, free: 22.91 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.003623/8.986, allocations: 2.308 MB / 4.409 GB, free: 22.89 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004858/8.987, allocations: 178.2 kB / 4.409 GB, free: 22.89 MB / 0.5886 GB Notification: Performance of SimCode: time 1.333e-06/8.987, allocations: 0 / 4.409 GB, free: 22.89 MB / 0.5886 GB Notification: Performance of Templates: time 0.1023/9.089, allocations: 83.25 MB / 4.49 GB, free: 4.727 MB / 0.5886 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/jenkins/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