Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.BranchingPipes16,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.BranchingPipes16") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,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.BranchingPipes16") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001647/0.001647, allocations: 183.9 kB / 15.76 MB, free: 6.363 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.347/1.347, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0008627/0.0008628, allocations: 98.83 kB / 270.2 MB, free: 13.36 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.212/0.212, allocations: 43.57 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003078/0.000308, allocations: 8 kB / 431.4 MB, free: 19.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1128, allocations: 58.86 MB / 490.2 MB, free: 8.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.529/1.642, allocations: 0.6918 GB / 1.171 GB, free: 130.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/1.643, allocations: 85.77 kB / 1.171 GB, free: 130.3 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.1/3.743, allocations: 0.5558 GB / 1.726 GB, free: 46.49 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.863e-06/3.743, allocations: 0 / 1.726 GB, free: 46.49 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000371/3.743, allocations: 68.56 kB / 1.727 GB, free: 46.49 MB / 0.5261 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.01442/3.758, allocations: 3.332 MB / 1.73 GB, free: 45.41 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/3.758, allocations: 8.906 kB / 1.73 GB, free: 45.41 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004315/3.762, allocations: 451.6 kB / 1.73 GB, free: 45.28 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008693/3.771, allocations: 1.955 MB / 1.732 GB, free: 44.94 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003146/3.771, allocations: 132.8 kB / 1.732 GB, free: 44.93 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001393/3.773, allocations: 167 kB / 1.732 GB, free: 44.93 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01046/3.783, allocations: 2.636 MB / 1.735 GB, free: 44.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00013/3.783, allocations: 5.562 kB / 1.735 GB, free: 44.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009418/3.784, allocations: 77.52 kB / 1.735 GB, free: 44.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003522/3.785, allocations: 155.4 kB / 1.735 GB, free: 44.5 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006989/3.792, allocations: 2.255 MB / 1.737 GB, free: 44.48 MB / 0.5261 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.02362/3.815, allocations: 11.04 MB / 1.748 GB, free: 38.67 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003726/3.819, allocations: 1.809 MB / 1.75 GB, free: 38.35 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00108/3.82, allocations: 454.6 kB / 1.75 GB, free: 38.07 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00253/3.823, allocations: 1.297 MB / 1.752 GB, free: 37.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 4.809e-06/3.823, allocations: 7.688 kB / 1.752 GB, free: 37.9 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 4: junctionIdeal.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.03072/3.853, allocations: 11.18 MB / 1.763 GB, free: 36.01 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/3.854, allocations: 363.1 kB / 1.763 GB, free: 35.6 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002717/3.856, allocations: 1.423 MB / 1.764 GB, free: 35.44 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004664/3.857, allocations: 62.58 kB / 1.764 GB, free: 35.41 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008393/3.858, allocations: 0.8671 MB / 1.765 GB, free: 35.12 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007814/3.858, allocations: 0.6228 MB / 1.766 GB, free: 34.73 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003165/3.859, allocations: 42.42 kB / 1.766 GB, free: 34.73 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001634/3.859, allocations: 387.5 kB / 1.766 GB, free: 34.42 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001817/3.861, allocations: 1.047 MB / 1.767 GB, free: 34.41 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002166/3.863, allocations: 1.485 MB / 1.769 GB, free: 33.99 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002169/3.865, allocations: 1.307 MB / 1.77 GB, free: 33.91 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.36e-05/3.865, allocations: 0 / 1.77 GB, free: 33.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.005827/3.871, allocations: 3.161 MB / 1.773 GB, free: 33.62 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008474/3.872, allocations: 3.769 MB / 1.777 GB, free: 29.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.24e-05/3.872, allocations: 10.53 kB / 1.777 GB, free: 29.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004546/3.872, allocations: 196.1 kB / 1.777 GB, free: 29.65 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002354/3.875, allocations: 0.5371 MB / 1.777 GB, free: 29.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001192/3.876, allocations: 2.325 MB / 1.78 GB, free: 27.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00302/3.879, allocations: 210.7 kB / 1.78 GB, free: 27.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005362/3.88, allocations: 187.9 kB / 1.78 GB, free: 27.57 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/3.88, allocations: 5.5 kB / 1.78 GB, free: 27.57 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005429/3.885, allocations: 2.886 MB / 1.783 GB, free: 27.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.045e-05/3.885, allocations: 11.12 kB / 1.783 GB, free: 27.42 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004195/3.886, allocations: 189.7 kB / 1.783 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002219/3.888, allocations: 0.5247 MB / 1.784 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/3.889, allocations: 2.328 MB / 1.786 GB, free: 25.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002794/3.892, allocations: 214.9 kB / 1.786 GB, free: 25.31 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004062/3.892, allocations: 186.3 kB / 1.786 GB, free: 25.31 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 () * Number of clocked 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.001705/3.894, allocations: 0.6841 MB / 1.787 GB, free: 25.04 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007943/3.895, allocations: 220 kB / 1.787 GB, free: 24.94 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007629/3.902, allocations: 3.779 MB / 1.791 GB, free: 24.66 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.499e-05/3.902, allocations: 18.78 kB / 1.791 GB, free: 24.66 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/3.902, allocations: 3.25 kB / 1.791 GB, free: 24.66 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00396/3.906, allocations: 2.786 MB / 1.794 GB, free: 24.08 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01354/3.92, allocations: 6.646 MB / 1.8 GB, free: 22.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.516e-05/3.92, allocations: 7.812 kB / 1.8 GB, free: 22.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001893/3.922, allocations: 436.9 kB / 1.801 GB, free: 22.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004143/3.922, allocations: 187.3 kB / 1.801 GB, free: 22.77 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002438/3.923, allocations: 99.05 kB / 1.801 GB, free: 22.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002218/3.925, allocations: 3.08 MB / 1.804 GB, free: 35.96 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/3.925, allocations: 9.406 kB / 1.804 GB, free: 35.96 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00691/3.932, allocations: 4.705 MB / 1.808 GB, free: 34.72 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002234/3.934, allocations: 0.5387 MB / 1.809 GB, free: 34.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009139/3.935, allocations: 64.61 kB / 1.809 GB, free: 34.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002234/3.937, allocations: 131.1 kB / 1.809 GB, free: 34.5 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003878/3.938, allocations: 171.2 kB / 1.809 GB, free: 34.49 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003954/3.938, allocations: 159.1 kB / 1.809 GB, free: 34.49 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002008/3.94, allocations: 1.103 MB / 1.811 GB, free: 34.35 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.232e-06/3.94, allocations: 0 / 1.811 GB, free: 34.35 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008521/3.949, allocations: 1.98 MB / 1.812 GB, free: 34.09 MB / 0.5417 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) * Number of clocked states: 0 () * 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.007406/3.956, allocations: 2.452 MB / 1.815 GB, free: 33.54 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01062/3.967, allocations: 4.356 MB / 1.819 GB, free: 33.23 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.73e-05/3.967, allocations: 0 / 1.819 GB, free: 33.23 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003401/3.97, allocations: 1.528 MB / 1.821 GB, free: 32.99 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005663/3.976, allocations: 0.9819 MB / 1.822 GB, free: 32.95 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01108/3.987, allocations: 5.644 MB / 1.827 GB, free: 30.86 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001756/3.989, allocations: 1.72 MB / 1.829 GB, free: 30.12 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006292/3.995, allocations: 1.357 MB / 1.83 GB, free: 30.09 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001445/3.996, allocations: 295.6 kB / 1.83 GB, free: 30.09 MB / 0.5417 GB Notification: Performance of SimCode: time 2.104e-06/3.997, allocations: 0 / 1.83 GB, free: 30.09 MB / 0.5417 GB Notification: Performance of Templates: time 0.1036/4.1, allocations: 73.54 MB / 1.902 GB, free: 9.512 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes16/BranchingPipes16.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches