Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,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|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,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|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00109/0.001094, allocations: 112.7 kB / 18.46 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001181/0.001181, allocations: 206.8 kB / 19.41 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 247.6 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.204/0.204, allocations: 46.1 MB / 345 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 75.88 kB / 482 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3031, allocations: 62.45 MB / 0.5317 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4): time 0.08903/0.3922, allocations: 102.1 MB / 0.6314 GB, free: 11.29 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0485/0.4407, allocations: 39.09 MB / 0.6696 GB, free: 4.082 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002439/0.4432, allocations: 95.5 kB / 0.6697 GB, free: 3.988 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002941/0.4462, allocations: 1.239 MB / 0.6709 GB, free: 2.742 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.02122/0.4674, allocations: 8.268 MB / 0.679 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.01973/0.4872, allocations: 8.085 MB / 0.6868 GB, free: 2.375 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.009037/0.4962, allocations: 6.9 MB / 0.6936 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002886/0.4991, allocations: 1.552 MB / 0.6951 GB, free: 9.879 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005104/0.5043, allocations: 2.745 MB / 0.6978 GB, free: 7.125 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0242/0.5285, allocations: 12.12 MB / 0.7096 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001037/0.5296, allocations: 232 kB / 0.7098 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02315/0.5527, allocations: 10.59 MB / 0.7202 GB, free: 4 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.2668/0.8195, allocations: 0.9433 MB / 0.7211 GB, free: 32.21 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002319/0.8219, allocations: 1.452 MB / 0.7225 GB, free: 32.21 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01896/0.8409, allocations: 9.674 MB / 0.732 GB, free: 32.04 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.8409, allocations: 0 / 0.732 GB, free: 32.04 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.375e-06/0.8409, allocations: 2.812 kB / 0.732 GB, free: 32.04 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.075e-05/0.841, allocations: 0 / 0.732 GB, free: 32.04 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01061/0.8516, allocations: 4.24 MB / 0.7361 GB, free: 30.34 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.8516, allocations: 9.906 kB / 0.7361 GB, free: 30.34 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005499/0.8572, allocations: 0.8341 MB / 0.7369 GB, free: 30.2 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009235/0.8664, allocations: 6.709 MB / 0.7435 GB, free: 29.58 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001521/0.8666, allocations: 183.2 kB / 0.7437 GB, free: 29.57 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003105/0.8669, allocations: 197.3 kB / 0.7438 GB, free: 29.57 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006635/0.8735, allocations: 3.579 MB / 0.7473 GB, free: 29.16 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.962e-05/0.8736, allocations: 9.375 kB / 0.7474 GB, free: 29.16 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000211/0.8738, allocations: 90.67 kB / 0.7474 GB, free: 29.16 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000205/0.874, allocations: 198.1 kB / 0.7476 GB, free: 29.15 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006466/0.8805, allocations: 3.363 MB / 0.7509 GB, free: 29.13 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.01449/0.895, allocations: 15.41 MB / 0.766 GB, free: 19.76 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005083/0.9001, allocations: 2.217 MB / 0.7681 GB, free: 19.71 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/0.9019, allocations: 1.14 MB / 0.7692 GB, free: 19.7 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04621/0.9481, allocations: 27.32 MB / 0.7959 GB, free: 16.51 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004498/0.9526, allocations: 1.663 MB / 0.7975 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=163): time 5.521e-06/0.9526, allocations: 0 / 0.7975 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of matching and sorting (n=179): time 0.02224/0.9749, allocations: 8.712 MB / 0.8061 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.375e-05/0.975, allocations: 183.9 kB / 0.8062 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002059/0.9771, allocations: 1.658 MB / 0.8078 GB, free: 9.367 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0002042/0.9773, allocations: 63.95 kB / 0.8079 GB, free: 9.324 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006232/0.9779, allocations: 1.007 MB / 0.8089 GB, free: 8.688 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004263/0.9784, allocations: 0.5965 MB / 0.8095 GB, free: 8.176 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000679/0.9791, allocations: 434 kB / 0.8099 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.9792, allocations: 303.6 kB / 0.8102 GB, free: 7.598 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001799/0.981, allocations: 1.13 MB / 0.8113 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002349/0.9833, allocations: 1.608 MB / 0.8129 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004528/0.9879, allocations: 2.881 MB / 0.8157 GB, free: 3.328 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.258e-05/0.9879, allocations: 4 kB / 0.8157 GB, free: 3.324 MB / 0.5762 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.006391/0.9943, allocations: 3.339 MB / 0.8189 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.8e-05/0.9944, allocations: 80.05 kB / 0.819 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.944e-05/0.9944, allocations: 15.94 kB / 0.819 GB, free: 0.8789 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009113/0.9954, allocations: 239.2 kB / 0.8192 GB, free: 0.6836 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002128/0.9975, allocations: 0.511 MB / 0.8197 GB, free: 228 kB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0016/0.9991, allocations: 2.429 MB / 0.8221 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001828/1.001, allocations: 114.2 kB / 0.8222 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002672/1.001, allocations: 103.1 kB / 0.8223 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002947/1.004, allocations: 1.549 MB / 0.8238 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002408/1.007, allocations: 1.535 MB / 0.8253 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004411/1.011, allocations: 2.744 MB / 0.828 GB, free: 9.25 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.266e-05/1.011, allocations: 4 kB / 0.828 GB, free: 9.246 MB / 0.5919 GB Notification: Performance of matching and sorting (n=266) (initialization_lambda0): time 0.006087/1.017, allocations: 3.2 MB / 0.8311 GB, free: 6.973 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.048e-05/1.017, allocations: 74.33 kB / 0.8312 GB, free: 6.891 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.209e-05/1.017, allocations: 12 kB / 0.8312 GB, free: 6.879 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008169/1.018, allocations: 236.6 kB / 0.8315 GB, free: 6.684 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00208/1.02, allocations: 0.5041 MB / 0.8319 GB, free: 6.23 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/1.022, allocations: 2.437 MB / 0.8343 GB, free: 3.852 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001757/1.024, allocations: 105.9 kB / 0.8344 GB, free: 3.777 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002325/1.024, allocations: 99.78 kB / 0.8345 GB, free: 3.699 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 30 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,splitter.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_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 (252): * Single equations (assignments): 246 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0006696/1.024, allocations: 397.4 kB / 0.8349 GB, free: 3.383 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005797/1.025, allocations: 209.5 kB / 0.8351 GB, free: 3.176 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01072/1.036, allocations: 7.542 MB / 0.8425 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008599/1.044, allocations: 6.615 MB / 0.8489 GB, free: 5.641 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/1.044, allocations: 4 kB / 0.8489 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001257/1.046, allocations: 0.6407 MB / 0.8496 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006298/1.046, allocations: 79.52 kB / 0.8496 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001559/1.048, allocations: 123.9 kB / 0.8498 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003423/1.048, allocations: 157.7 kB / 0.8499 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008155/1.056, allocations: 4.794 MB / 0.8546 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01004/1.066, allocations: 6.858 MB / 0.8613 GB, free: 8.746 MB / 0.6231 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002928/1.069, allocations: 2.192 MB / 0.8634 GB, free: 6.551 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.002079/1.072, allocations: 1.31 MB / 0.8647 GB, free: 5.223 MB / 0.6231 GB Notification: Performance of Backend: time 2.8e-07/1.072, allocations: 0 / 0.8647 GB, free: 5.223 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0211/1.093, allocations: 6.336 MB / 0.8709 GB, free: 15.18 MB / 0.6387 GB Notification: Performance of SimCode: time 0.01052/1.103, allocations: 6.427 MB / 0.8772 GB, free: 8.727 MB / 0.6387 GB Notification: Performance of Templates: time 0.1554/1.259, allocations: 104.6 MB / 0.9793 GB, free: 0.7227 MB / 0.7325 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes4/BranchingPipes4.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches