Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001099/0.001099, allocations: 182.8 kB / 13.19 MB, free: 2.129 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.56/1.56, allocations: 205.2 MB / 218.9 MB, free: 9.211 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.000957/0.0009574, allocations: 89.84 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4261/0.4261, allocations: 43.48 MB / 358.6 MB, free: 51.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.086e-05/3.087e-05, allocations: 4 kB / 425.3 MB, free: 8.215 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1364, allocations: 58.84 MB / 484.1 MB, free: 13.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.767/1.904, allocations: 0.659 GB / 1.132 GB, free: 143 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/1.904, allocations: 83.75 kB / 1.132 GB, free: 143 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.746/3.65, allocations: 0.545 GB / 1.677 GB, free: 10.76 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.054e-06/3.65, allocations: 0 / 1.677 GB, free: 10.76 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003189/3.651, allocations: 63.92 kB / 1.677 GB, free: 10.7 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.01091/3.662, allocations: 3.031 MB / 1.68 GB, free: 7.602 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/3.662, allocations: 11.97 kB / 1.68 GB, free: 7.59 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003692/3.665, allocations: 444.8 kB / 1.68 GB, free: 7.152 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006004/3.672, allocations: 1.942 MB / 1.682 GB, free: 5.156 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/3.672, allocations: 127 kB / 1.682 GB, free: 5.031 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008375/3.673, allocations: 168 kB / 1.683 GB, free: 4.867 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005577/3.678, allocations: 2.585 MB / 1.685 GB, free: 2.129 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.89e-05/3.678, allocations: 19.84 kB / 1.685 GB, free: 2.109 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004564/3.679, allocations: 71.95 kB / 1.685 GB, free: 2.039 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001793/3.679, allocations: 151 kB / 1.685 GB, free: 1.891 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003789/3.683, allocations: 2.191 MB / 1.687 GB, free: 15.7 MB / 0.5261 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.01735/3.7, allocations: 11.03 MB / 1.698 GB, free: 3.887 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002983/3.703, allocations: 1.767 MB / 1.7 GB, free: 2.055 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001644/3.705, allocations: 1.059 MB / 1.701 GB, free: 0.9922 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000969/3.706, allocations: 453.1 kB / 1.701 GB, free: 0.4961 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3242/4.03, allocations: 1.269 MB / 1.703 GB, free: 47.95 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 4.508e-06/4.03, allocations: 0.6094 kB / 1.703 GB, free: 47.95 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.02158/4.052, allocations: 8.664 MB / 1.711 GB, free: 47.02 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/4.052, allocations: 365.9 kB / 1.711 GB, free: 46.61 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001861/4.054, allocations: 1.396 MB / 1.713 GB, free: 46.44 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002218/4.054, allocations: 63.92 kB / 1.713 GB, free: 46.41 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005711/4.054, allocations: 0.8699 MB / 1.714 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004537/4.055, allocations: 0.6185 MB / 1.714 GB, free: 45.85 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001475/4.055, allocations: 40.06 kB / 1.714 GB, free: 45.85 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001172/4.055, allocations: 388.7 kB / 1.715 GB, free: 45.55 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001425/4.057, allocations: 0.9948 MB / 1.716 GB, free: 45.54 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00174/4.058, allocations: 1.439 MB / 1.717 GB, free: 45.12 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001596/4.06, allocations: 1.268 MB / 1.718 GB, free: 45.04 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/4.06, allocations: 2.156 kB / 1.718 GB, free: 45.04 MB / 0.5261 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004314/4.064, allocations: 3.073 MB / 1.721 GB, free: 44.76 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006773/4.065, allocations: 3.777 MB / 1.725 GB, free: 40.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/4.065, allocations: 8.062 kB / 1.725 GB, free: 40.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004051/4.065, allocations: 192.1 kB / 1.725 GB, free: 40.78 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002/4.067, allocations: 0.5396 MB / 1.726 GB, free: 40.78 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009895/4.068, allocations: 2.318 MB / 1.728 GB, free: 38.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002136/4.071, allocations: 221.3 kB / 1.728 GB, free: 38.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002661/4.071, allocations: 182.7 kB / 1.728 GB, free: 38.71 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/4.071, allocations: 5.5 kB / 1.728 GB, free: 38.71 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003696/4.075, allocations: 2.796 MB / 1.731 GB, free: 38.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/4.075, allocations: 10.25 kB / 1.731 GB, free: 38.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003166/4.075, allocations: 190.9 kB / 1.731 GB, free: 38.53 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001909/4.077, allocations: 0.5264 MB / 1.732 GB, free: 38.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009416/4.078, allocations: 2.327 MB / 1.734 GB, free: 36.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002/4.08, allocations: 214.2 kB / 1.734 GB, free: 36.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002517/4.08, allocations: 186.2 kB / 1.734 GB, free: 36.45 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.0005851/4.081, allocations: 297.9 kB / 1.735 GB, free: 36.28 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003064/4.081, allocations: 213.9 kB / 1.735 GB, free: 36.18 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006118/4.087, allocations: 3.705 MB / 1.739 GB, free: 35.91 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/4.087, allocations: 23.09 kB / 1.739 GB, free: 35.91 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/4.087, allocations: 3.125 kB / 1.739 GB, free: 35.91 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0032/4.09, allocations: 2.727 MB / 1.741 GB, free: 35.32 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009375/4.1, allocations: 6.591 MB / 1.748 GB, free: 34.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/4.1, allocations: 5.406 kB / 1.748 GB, free: 34.06 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001626/4.101, allocations: 430.6 kB / 1.748 GB, free: 34.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003806/4.102, allocations: 187.4 kB / 1.748 GB, free: 34.02 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001671/4.102, allocations: 97.28 kB / 1.748 GB, free: 34.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001473/4.103, allocations: 3.064 MB / 1.751 GB, free: 31.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.12e-05/4.103, allocations: 13.2 kB / 1.751 GB, free: 31.22 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005683/4.109, allocations: 4.617 MB / 1.756 GB, free: 29.98 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/4.11, allocations: 0.5459 MB / 1.756 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003088/4.111, allocations: 60.59 kB / 1.756 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/4.112, allocations: 132.8 kB / 1.757 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002617/4.112, allocations: 166.9 kB / 1.757 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002105/4.112, allocations: 164.3 kB / 1.757 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001348/4.114, allocations: 1.085 MB / 1.758 GB, free: 29.61 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/4.114, allocations: 0 / 1.758 GB, free: 29.61 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006047/4.12, allocations: 1.98 MB / 1.76 GB, free: 29.61 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.0051/4.125, allocations: 2.45 MB / 1.762 GB, free: 29.32 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006221/4.131, allocations: 4.302 MB / 1.767 GB, free: 29 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.378e-06/4.131, allocations: 3.719 kB / 1.767 GB, free: 29 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001779/4.133, allocations: 1.5 MB / 1.768 GB, free: 28.77 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004069/4.137, allocations: 0.9643 MB / 1.769 GB, free: 28.75 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006821/4.144, allocations: 4.058 MB / 1.773 GB, free: 27.82 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/4.145, allocations: 1.728 MB / 1.775 GB, free: 27.09 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005374/4.15, allocations: 1.543 MB / 1.776 GB, free: 27.06 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009135/4.151, allocations: 277.6 kB / 1.776 GB, free: 27.06 MB / 0.5261 GB Notification: Performance of SimCode: time 7.82e-07/4.151, allocations: 0 / 1.776 GB, free: 27.06 MB / 0.5261 GB Notification: Performance of Templates: time 0.102/4.253, allocations: 80.91 MB / 1.855 GB, free: 15.54 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat","/var/lib/jenkins/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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches