Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001495/0.001495, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.988/1.988, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 93.92 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2744/0.2744, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.264e-05/3.267e-05, allocations: 7.984 kB / 425.3 MB, free: 23.36 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1246, allocations: 58.85 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.317/2.442, allocations: 0.659 GB / 1.132 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/2.442, allocations: 88.86 kB / 1.132 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.69/5.132, allocations: 0.545 GB / 1.677 GB, free: 21.74 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.765e-06/5.132, allocations: 0 / 1.677 GB, free: 21.74 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002496/5.132, allocations: 63.92 kB / 1.677 GB, free: 21.68 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01299/5.145, allocations: 3.019 MB / 1.68 GB, free: 18.59 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/5.145, allocations: 11.97 kB / 1.68 GB, free: 18.58 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00494/5.15, allocations: 452.7 kB / 1.68 GB, free: 18.13 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008417/5.159, allocations: 1.937 MB / 1.682 GB, free: 16.14 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001971/5.159, allocations: 131 kB / 1.682 GB, free: 16.01 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008525/5.16, allocations: 168 kB / 1.682 GB, free: 15.85 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006609/5.166, allocations: 2.589 MB / 1.685 GB, free: 13.11 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.952e-05/5.167, allocations: 7.938 kB / 1.685 GB, free: 13.1 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003486/5.167, allocations: 75.95 kB / 1.685 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002925/5.167, allocations: 151 kB / 1.685 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005317/5.173, allocations: 2.191 MB / 1.687 GB, free: 10.68 MB / 0.5105 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.02344/5.196, allocations: 11.03 MB / 1.698 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00526/5.201, allocations: 1.763 MB / 1.7 GB, free: 13.03 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002964/5.204, allocations: 1.044 MB / 1.701 GB, free: 11.98 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001633/5.206, allocations: 465.1 kB / 1.701 GB, free: 11.47 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003496/5.21, allocations: 1.271 MB / 1.703 GB, free: 10.16 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 4.849e-06/5.21, allocations: 0 / 1.703 GB, free: 10.16 MB / 0.5261 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.04078/5.25, allocations: 8.674 MB / 1.711 GB, free: 1.355 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002226/5.251, allocations: 356.1 kB / 1.711 GB, free: 0.9297 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4132/5.664, allocations: 1.398 MB / 1.713 GB, free: 53.49 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007396/5.665, allocations: 64.39 kB / 1.713 GB, free: 53.46 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009421/5.666, allocations: 0.796 MB / 1.714 GB, free: 53.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001189/5.667, allocations: 0.6216 MB / 1.714 GB, free: 53.08 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002699/5.667, allocations: 40.47 kB / 1.714 GB, free: 53.08 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001867/5.667, allocations: 392 kB / 1.715 GB, free: 52.77 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003166/5.67, allocations: 0.9962 MB / 1.716 GB, free: 52.76 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003474/5.674, allocations: 1.438 MB / 1.717 GB, free: 52.35 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003457/5.677, allocations: 1.276 MB / 1.718 GB, free: 52.26 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.585e-05/5.678, allocations: 0 / 1.718 GB, free: 52.26 MB / 0.5261 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008556/5.686, allocations: 2.948 MB / 1.721 GB, free: 52.05 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008333/5.687, allocations: 3.645 MB / 1.725 GB, free: 48.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-05/5.687, allocations: 10.97 kB / 1.725 GB, free: 48.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007946/5.688, allocations: 189.8 kB / 1.725 GB, free: 48.24 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004964/5.693, allocations: 0.5396 MB / 1.725 GB, free: 48.24 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001789/5.695, allocations: 2.323 MB / 1.728 GB, free: 46.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00462/5.699, allocations: 212 kB / 1.728 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009221/5.7, allocations: 186.9 kB / 1.728 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/5.7, allocations: 4.125 kB / 1.728 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00892/5.709, allocations: 2.797 MB / 1.731 GB, free: 46.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-05/5.709, allocations: 9.5 kB / 1.731 GB, free: 46.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006734/5.71, allocations: 189.4 kB / 1.731 GB, free: 45.99 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004726/5.715, allocations: 0.5277 MB / 1.731 GB, free: 45.99 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001687/5.717, allocations: 2.332 MB / 1.734 GB, free: 43.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003577/5.72, allocations: 210.4 kB / 1.734 GB, free: 43.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006363/5.721, allocations: 184.5 kB / 1.734 GB, free: 43.91 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 240 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001018/5.722, allocations: 296.7 kB / 1.734 GB, free: 43.74 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007676/5.723, allocations: 213.1 kB / 1.735 GB, free: 43.63 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01293/5.736, allocations: 3.706 MB / 1.738 GB, free: 43.36 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.286e-05/5.736, allocations: 19.03 kB / 1.738 GB, free: 43.36 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/5.736, allocations: 6.312 kB / 1.738 GB, free: 43.36 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006412/5.742, allocations: 2.726 MB / 1.741 GB, free: 42.78 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01904/5.761, allocations: 6.602 MB / 1.747 GB, free: 41.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/5.761, allocations: 7.25 kB / 1.747 GB, free: 41.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003628/5.765, allocations: 428 kB / 1.748 GB, free: 41.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006695/5.766, allocations: 187.4 kB / 1.748 GB, free: 41.49 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004436/5.766, allocations: 99.47 kB / 1.748 GB, free: 41.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0021/5.768, allocations: 3.069 MB / 1.751 GB, free: 38.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.217e-06/5.768, allocations: 8.312 kB / 1.751 GB, free: 38.68 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01057/5.779, allocations: 4.603 MB / 1.756 GB, free: 37.46 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002155/5.781, allocations: 0.5439 MB / 1.756 GB, free: 37.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008185/5.782, allocations: 61.61 kB / 1.756 GB, free: 37.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002914/5.785, allocations: 133.3 kB / 1.756 GB, free: 37.25 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004942/5.785, allocations: 169.1 kB / 1.756 GB, free: 37.24 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003979/5.786, allocations: 159.4 kB / 1.757 GB, free: 37.24 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002336/5.788, allocations: 1.091 MB / 1.758 GB, free: 37.08 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.222e-06/5.788, allocations: 0 / 1.758 GB, free: 37.08 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008947/5.797, allocations: 1.978 MB / 1.76 GB, free: 37.08 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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 (191): * Single equations (assignments): 185 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008094/5.805, allocations: 2.447 MB / 1.762 GB, free: 36.79 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01139/5.817, allocations: 4.237 MB / 1.766 GB, free: 36.49 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.519e-05/5.817, allocations: 6 kB / 1.766 GB, free: 36.49 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003579/5.82, allocations: 1.496 MB / 1.768 GB, free: 36.25 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00831/5.829, allocations: 0.9719 MB / 1.769 GB, free: 36.22 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/5.84, allocations: 4.113 MB / 1.773 GB, free: 35.27 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001488/5.841, allocations: 1.7 MB / 1.774 GB, free: 34.53 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0028/5.844, allocations: 368.8 kB / 1.775 GB, free: 34.53 MB / 0.5261 GB Notification: Performance of SimCode: time 1.312e-06/5.844, allocations: 0 / 1.775 GB, free: 34.53 MB / 0.5261 GB Notification: Performance of Templates: time 0.1422/5.987, allocations: 84.62 MB / 1.857 GB, free: 24.8 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes15/BranchingPipes15.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches