Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 105.7 kB / 17.08 MB, free: 5.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001171/0.001172, allocations: 198.1 kB / 18.02 MB, free: 4.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.291/1.291, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1888/0.1888, allocations: 43.52 MB / 314.8 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 67.89 kB / 442.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09607/0.09754, allocations: 57.78 MB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4): time 0.3065/0.4041, allocations: 101.9 MB / 0.588 GB, free: 15.37 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.05103/0.4551, allocations: 39.04 MB / 0.6262 GB, free: 13.59 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002773/0.4579, allocations: 95.44 kB / 0.6262 GB, free: 13.5 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003338/0.4613, allocations: 1.247 MB / 0.6275 GB, free: 12.25 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0206/0.482, allocations: 8.24 MB / 0.6355 GB, free: 3.98 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01827/0.5003, allocations: 8.065 MB / 0.6434 GB, free: 11.89 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.009059/0.5093, allocations: 6.897 MB / 0.6501 GB, free: 4.977 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002769/0.5121, allocations: 1.551 MB / 0.6516 GB, free: 3.414 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005186/0.5173, allocations: 2.726 MB / 0.6543 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02283/0.5402, allocations: 12.11 MB / 0.6661 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0009725/0.5412, allocations: 232 kB / 0.6663 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02064/0.5618, allocations: 10.54 MB / 0.6766 GB, free: 9.621 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.001511/0.5634, allocations: 0.9505 MB / 0.6776 GB, free: 8.668 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.002528/0.5659, allocations: 1.454 MB / 0.679 GB, free: 7.207 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01953/0.5855, allocations: 9.653 MB / 0.6884 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.5855, allocations: 0 / 0.6884 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.713e-06/0.5855, allocations: 0 / 0.6884 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001058/0.5856, allocations: 0 / 0.6884 GB, free: 13.53 MB / 0.5294 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.01099/0.5966, allocations: 4.236 MB / 0.6925 GB, free: 9.223 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.5967, allocations: 11.89 kB / 0.6926 GB, free: 9.211 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005835/0.6025, allocations: 0.8326 MB / 0.6934 GB, free: 8.375 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01066/0.6132, allocations: 6.71 MB / 0.6999 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/0.6134, allocations: 179.8 kB / 0.7001 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000502/0.614, allocations: 196 kB / 0.7003 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008068/0.622, allocations: 3.587 MB / 0.7038 GB, free: 13.5 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.711e-05/0.6221, allocations: 15.78 kB / 0.7038 GB, free: 13.49 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002728/0.6224, allocations: 83.97 kB / 0.7039 GB, free: 13.41 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002524/0.6227, allocations: 195.8 kB / 0.7041 GB, free: 13.21 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007973/0.6306, allocations: 3.356 MB / 0.7073 GB, free: 9.855 MB / 0.545 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.02038/0.651, allocations: 15.42 MB / 0.7224 GB, free: 9.094 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005701/0.6568, allocations: 2.213 MB / 0.7246 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00199/0.6588, allocations: 1.133 MB / 0.7257 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0488/0.7076, allocations: 24.76 MB / 0.7498 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004885/0.7125, allocations: 1.662 MB / 0.7515 GB, free: 8.332 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=163): time 5.641e-06/0.7126, allocations: 0 / 0.7515 GB, free: 8.332 MB / 0.5919 GB Notification: Performance of matching and sorting (n=179): time 0.2427/0.9552, allocations: 8.701 MB / 0.76 GB, free: 216.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.124e-05/0.9553, allocations: 182 kB / 0.7601 GB, free: 216.1 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002199/0.9575, allocations: 1.66 MB / 0.7618 GB, free: 215.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0003257/0.9579, allocations: 60.95 kB / 0.7618 GB, free: 215.9 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006593/0.9585, allocations: 1.009 MB / 0.7628 GB, free: 215.8 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004399/0.959, allocations: 0.5945 MB / 0.7634 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006451/0.9596, allocations: 432 kB / 0.7638 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 3.646e-05/0.9597, allocations: 304 kB / 0.7641 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002114/0.9618, allocations: 1.132 MB / 0.7652 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002264/0.9641, allocations: 1.6 MB / 0.7668 GB, free: 214.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004119/0.9682, allocations: 2.877 MB / 0.7696 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.9682, allocations: 4.188 kB / 0.7696 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.007214/0.9755, allocations: 3.344 MB / 0.7728 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.948e-05/0.9755, allocations: 75.7 kB / 0.7729 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.735e-05/0.9756, allocations: 14.84 kB / 0.7729 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008441/0.9764, allocations: 238.1 kB / 0.7732 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002383/0.9788, allocations: 0.5111 MB / 0.7737 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001131/0.98, allocations: 2.434 MB / 0.776 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.9816, allocations: 103.9 kB / 0.7761 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001877/0.9818, allocations: 104.7 kB / 0.7762 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002986/0.9848, allocations: 1.551 MB / 0.7777 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002359/0.9872, allocations: 1.535 MB / 0.7792 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0042/0.9914, allocations: 2.75 MB / 0.7819 GB, free: 206 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.055e-05/0.9914, allocations: 3.25 kB / 0.7819 GB, free: 206 MB / 0.5919 GB Notification: Performance of matching and sorting (n=266) (initialization_lambda0): time 0.005753/0.9971, allocations: 3.199 MB / 0.7851 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.263e-05/0.9972, allocations: 75.11 kB / 0.7851 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.9972, allocations: 13.58 kB / 0.7851 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007859/0.998, allocations: 240.3 kB / 0.7854 GB, free: 204.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001937/1, allocations: 0.5078 MB / 0.7859 GB, free: 204.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009964/1.001, allocations: 2.43 MB / 0.7882 GB, free: 202.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001506/1.003, allocations: 104.6 kB / 0.7883 GB, free: 202.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001509/1.003, allocations: 102.3 kB / 0.7884 GB, free: 202.3 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.0006069/1.003, allocations: 395.3 kB / 0.7888 GB, free: 201.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003162/1.004, allocations: 208.3 kB / 0.789 GB, free: 201.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008394/1.012, allocations: 7.547 MB / 0.7964 GB, free: 198.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006693/1.019, allocations: 6.612 MB / 0.8028 GB, free: 195.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/1.019, allocations: 0 / 0.8028 GB, free: 195.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009601/1.02, allocations: 0.6328 MB / 0.8035 GB, free: 195 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003334/1.02, allocations: 89.09 kB / 0.8035 GB, free: 195 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/1.021, allocations: 128.5 kB / 0.8037 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002779/1.022, allocations: 154.9 kB / 0.8038 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006099/1.028, allocations: 4.791 MB / 0.8085 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007184/1.035, allocations: 6.865 MB / 0.8152 GB, free: 185.5 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00217/1.037, allocations: 2.189 MB / 0.8173 GB, free: 183.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001522/1.039, allocations: 1.31 MB / 0.8186 GB, free: 182 MB / 0.5919 GB Notification: Performance of Backend: time 4.31e-07/1.039, allocations: 0 / 0.8186 GB, free: 182 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01483/1.053, allocations: 6.326 MB / 0.8248 GB, free: 176.3 MB / 0.5919 GB Notification: Performance of SimCode: time 0.007897/1.061, allocations: 6.404 MB / 0.831 GB, free: 169.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.1109/1.172, allocations: 104.5 MB / 0.9331 GB, free: 65.31 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes4/BranchingPipes4.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches