Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.BranchingPipes18") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.BranchingPipes18") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001304/0.001304, allocations: 118.3 kB / 18.46 MB, free: 4.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 206.7 kB / 19.41 MB, free: 3.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1998/0.1998, allocations: 46.1 MB / 345 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 76.16 kB / 482 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2726, allocations: 62.44 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18): time 0.09883/0.3715, allocations: 112.3 MB / 0.6413 GB, free: 1.082 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.04961/0.4211, allocations: 38.94 MB / 0.6793 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002483/0.4236, allocations: 99.44 kB / 0.6794 GB, free: 9.934 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003405/0.4271, allocations: 1.363 MB / 0.6808 GB, free: 8.562 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.01972/0.4468, allocations: 8.475 MB / 0.689 GB, free: 72 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.01737/0.4642, allocations: 8.152 MB / 0.697 GB, free: 7.926 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.008591/0.4728, allocations: 7.522 MB / 0.7043 GB, free: 392 kB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002674/0.4755, allocations: 1.744 MB / 0.706 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005294/0.4808, allocations: 2.979 MB / 0.7089 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.2807/0.7615, allocations: 12.29 MB / 0.721 GB, free: 26.02 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0009724/0.7625, allocations: 260.4 kB / 0.7212 GB, free: 26.02 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01837/0.7809, allocations: 10.24 MB / 0.7312 GB, free: 26.02 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.00111/0.7821, allocations: 1.02 MB / 0.7322 GB, free: 26.02 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001834/0.7839, allocations: 1.595 MB / 0.7338 GB, free: 26.02 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0167/0.8006, allocations: 9.822 MB / 0.7433 GB, free: 25.56 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.8006, allocations: 0 / 0.7433 GB, free: 25.56 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.054e-06/0.8006, allocations: 0 / 0.7433 GB, free: 25.56 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.02e-05/0.8007, allocations: 2.625 kB / 0.7433 GB, free: 25.56 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.009148/0.8099, allocations: 4.578 MB / 0.7478 GB, free: 23.58 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.8099, allocations: 9.844 kB / 0.7478 GB, free: 23.58 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005609/0.8155, allocations: 0.8795 MB / 0.7487 GB, free: 23.41 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008877/0.8244, allocations: 6.814 MB / 0.7553 GB, free: 22.73 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.8246, allocations: 196 kB / 0.7555 GB, free: 22.72 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004914/0.8251, allocations: 233.7 kB / 0.7558 GB, free: 22.71 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007293/0.8324, allocations: 3.785 MB / 0.7594 GB, free: 22.22 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-05/0.8325, allocations: 9.344 kB / 0.7595 GB, free: 22.22 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002507/0.8328, allocations: 94.52 kB / 0.7595 GB, free: 22.21 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002101/0.833, allocations: 210 kB / 0.7597 GB, free: 22.2 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007233/0.8402, allocations: 3.519 MB / 0.7632 GB, free: 22.16 MB / 0.5606 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.01684/0.8571, allocations: 16.82 MB / 0.7796 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006087/0.8632, allocations: 3.074 MB / 0.7826 GB, free: 9.832 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001951/0.8652, allocations: 1.349 MB / 0.7839 GB, free: 9.617 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04521/0.9104, allocations: 27.14 MB / 0.8104 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005528/0.9159, allocations: 1.829 MB / 0.8122 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=192): time 5.45e-06/0.916, allocations: 0 / 0.8122 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of matching and sorting (n=212): time 0.02765/0.9436, allocations: 10.01 MB / 0.822 GB, free: 6.277 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.583e-05/0.9437, allocations: 186.7 kB / 0.8222 GB, free: 6.059 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002217/0.946, allocations: 1.698 MB / 0.8238 GB, free: 4.734 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0002176/0.9462, allocations: 72.27 kB / 0.8239 GB, free: 4.688 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000774/0.947, allocations: 1.079 MB / 0.8249 GB, free: 4.012 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.00061/0.9476, allocations: 0.741 MB / 0.8257 GB, free: 3.379 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008082/0.9484, allocations: 0.4915 MB / 0.8261 GB, free: 3.059 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.829e-05/0.9485, allocations: 305.1 kB / 0.8264 GB, free: 2.758 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002394/0.9509, allocations: 1.282 MB / 0.8277 GB, free: 1.891 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00281/0.9537, allocations: 1.839 MB / 0.8295 GB, free: 336 kB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005291/0.959, allocations: 3.257 MB / 0.8327 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.381e-05/0.9591, allocations: 4 kB / 0.8327 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of matching and sorting (n=312) (initialization): time 0.007357/0.9664, allocations: 3.813 MB / 0.8364 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.643e-05/0.9665, allocations: 78.94 kB / 0.8365 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.885e-05/0.9665, allocations: 16 kB / 0.8365 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001196/0.9677, allocations: 347.1 kB / 0.8368 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002435/0.9702, allocations: 0.5956 MB / 0.8374 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002028/0.9722, allocations: 3.099 MB / 0.8404 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002161/0.9744, allocations: 154.4 kB / 0.8406 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003132/0.9747, allocations: 123.6 kB / 0.8407 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003297/0.978, allocations: 1.717 MB / 0.8424 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002792/0.9809, allocations: 1.771 MB / 0.8441 GB, free: 3.543 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005211/0.9861, allocations: 3.114 MB / 0.8471 GB, free: 264 kB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.276e-05/0.9861, allocations: 4 kB / 0.8471 GB, free: 260 kB / 0.6075 GB Notification: Performance of matching and sorting (n=312) (initialization_lambda0): time 0.007444/0.9936, allocations: 3.672 MB / 0.8507 GB, free: 12.64 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 6.583e-05/0.9937, allocations: 78.44 kB / 0.8508 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.215e-05/0.9937, allocations: 12 kB / 0.8508 GB, free: 12.54 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/0.9948, allocations: 353.4 kB / 0.8511 GB, free: 12.19 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002397/0.9972, allocations: 0.5836 MB / 0.8517 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001993/0.9992, allocations: 3.103 MB / 0.8548 GB, free: 8.418 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002142/1.001, allocations: 151.9 kB / 0.8549 GB, free: 8.27 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002584/1.002, allocations: 123.3 kB / 0.855 GB, free: 8.152 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,junctionVolume.medium.phase,junctionIdeal.medium.phase,valveOpening2.nextEventScaled,valveOpening2.nextEvent,$PRE.valveOpening2.nextEvent,valveOpening2.last,valveOpening2.b,valveOpening2.a,valveOpening1.nextEventScaled,valveOpening1.nextEvent,$PRE.valveOpening1.nextEvent,valveOpening1.last,valveOpening1.b,valveOpening1.a,pipe3.statesFM[2].phase,pipe2.statesFM[2].phase,sink.medium.phase,pipe1.statesFM[2].phase,source.medium.phase,$whenCondition2,$whenCondition1,pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (292): * Single equations (assignments): 285 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,1), (1,1), (1,1), (1,6), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0006785/1.002, allocations: 413.4 kB / 0.8554 GB, free: 7.762 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005738/1.003, allocations: 246.4 kB / 0.8556 GB, free: 7.52 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01168/1.015, allocations: 8.165 MB / 0.8636 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009462/1.024, allocations: 7.116 MB / 0.8706 GB, free: 7.984 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.367e-06/1.024, allocations: 2.406 kB / 0.8706 GB, free: 7.984 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001304/1.025, allocations: 0.7047 MB / 0.8713 GB, free: 7.258 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005331/1.026, allocations: 95.61 kB / 0.8713 GB, free: 7.164 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/1.028, allocations: 151.8 kB / 0.8715 GB, free: 7.016 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003872/1.028, allocations: 173.8 kB / 0.8717 GB, free: 6.844 MB / 0.6387 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009159/1.037, allocations: 5.411 MB / 0.8769 GB, free: 1.363 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01093/1.048, allocations: 7.706 MB / 0.8845 GB, free: 9.539 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003145/1.051, allocations: 2.451 MB / 0.8869 GB, free: 7.086 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.002063/1.053, allocations: 1.317 MB / 0.8881 GB, free: 5.754 MB / 0.6544 GB Notification: Performance of Backend: time 6.51e-07/1.053, allocations: 0 / 0.8881 GB, free: 5.754 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.01905/1.072, allocations: 6.789 MB / 0.8948 GB, free: 15.3 MB / 0.67 GB Notification: Performance of SimCode: time 0.01075/1.083, allocations: 7.127 MB / 0.9017 GB, free: 8.156 MB / 0.67 GB Notification: Performance of Templates: time 0.3646/1.448, allocations: 110.6 MB / 1.01 GB, free: 339.9 MB / 0.7481 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes18/BranchingPipes18.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches