Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|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.BranchingPipes17") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|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.BranchingPipes17") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001488/0.001488, allocations: 186 kB / 16.4 MB, free: 5.746 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.881/1.881, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001129/0.001129, allocations: 99.75 kB / 270.9 MB, free: 8.375 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.4925/0.4925, allocations: 43.55 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004497/0.0004498, allocations: 19.98 kB / 431.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1192, allocations: 58.85 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.232/2.352, allocations: 0.6919 GB / 1.171 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002814/2.352, allocations: 81.62 kB / 1.171 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.305/5.657, allocations: 0.6212 GB / 1.792 GB, free: 38.86 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.425e-06/5.657, allocations: 3.938 kB / 1.792 GB, free: 38.86 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003374/5.657, allocations: 68.58 kB / 1.792 GB, free: 38.84 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01538/5.673, allocations: 3.511 MB / 1.795 GB, free: 37.17 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/5.673, allocations: 15.58 kB / 1.795 GB, free: 37.17 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005072/5.678, allocations: 464.8 kB / 1.796 GB, free: 37.04 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008526/5.686, allocations: 2.013 MB / 1.798 GB, free: 36.59 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002387/5.687, allocations: 139.3 kB / 1.798 GB, free: 36.58 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001062/5.688, allocations: 178.8 kB / 1.798 GB, free: 36.57 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008405/5.696, allocations: 2.768 MB / 1.801 GB, free: 36.11 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.91e-05/5.696, allocations: 4.281 kB / 1.801 GB, free: 36.11 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005499/5.697, allocations: 83.89 kB / 1.801 GB, free: 36.11 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003027/5.697, allocations: 150.5 kB / 1.801 GB, free: 36.11 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007845/5.705, allocations: 2.358 MB / 1.803 GB, free: 36.09 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.02652/5.732, allocations: 11.61 MB / 1.815 GB, free: 29.78 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005465/5.737, allocations: 1.887 MB / 1.817 GB, free: 29.46 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001526/5.739, allocations: 463.9 kB / 1.817 GB, free: 29.17 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003868/5.742, allocations: 1.363 MB / 1.818 GB, free: 28.98 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=172): time 7.254e-06/5.743, allocations: 0 / 1.818 GB, free: 28.98 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 5: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.05571/5.798, allocations: 12.44 MB / 1.83 GB, free: 26.83 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/5.798, allocations: 364.8 kB / 1.831 GB, free: 26.42 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003348/5.802, allocations: 1.481 MB / 1.832 GB, free: 26.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007973/5.803, allocations: 63.77 kB / 1.832 GB, free: 26.17 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009354/5.804, allocations: 0.8377 MB / 1.833 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001232/5.805, allocations: 0.6716 MB / 1.834 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004262/5.805, allocations: 46.75 kB / 1.834 GB, free: 25.14 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001894/5.806, allocations: 399 kB / 1.834 GB, free: 24.79 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003457/5.809, allocations: 1.1 MB / 1.835 GB, free: 24.42 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004086/5.813, allocations: 1.59 MB / 1.837 GB, free: 23.52 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004071/5.817, allocations: 1.365 MB / 1.838 GB, free: 22.94 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.557e-05/5.817, allocations: 3.688 kB / 1.838 GB, free: 22.94 MB / 0.5261 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.01061/5.828, allocations: 3.276 MB / 1.841 GB, free: 21.71 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009309/5.829, allocations: 4.163 MB / 1.845 GB, free: 17.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.513e-05/5.829, allocations: 9.438 kB / 1.845 GB, free: 17.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001341/5.83, allocations: 308.5 kB / 1.846 GB, free: 17.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004796/5.835, allocations: 0.5599 MB / 1.846 GB, free: 17.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002823/5.838, allocations: 3.006 MB / 1.849 GB, free: 30.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004677/5.843, allocations: 223.3 kB / 1.849 GB, free: 30.37 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009359/5.844, allocations: 205.6 kB / 1.85 GB, free: 30.35 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/5.844, allocations: 3.406 kB / 1.85 GB, free: 30.35 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009835/5.854, allocations: 3.122 MB / 1.853 GB, free: 29.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.125e-05/5.854, allocations: 9.938 kB / 1.853 GB, free: 29.19 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/5.855, allocations: 304.4 kB / 1.853 GB, free: 29.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004587/5.859, allocations: 0.5522 MB / 1.854 GB, free: 29.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002862/5.862, allocations: 3.018 MB / 1.856 GB, free: 26.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003623/5.866, allocations: 222 kB / 1.857 GB, free: 26.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007714/5.867, allocations: 205.9 kB / 1.857 GB, free: 26.23 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (261): * Single equations (assignments): 254 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002428/5.869, allocations: 0.6951 MB / 1.858 GB, free: 25.76 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008013/5.87, allocations: 230.2 kB / 1.858 GB, free: 25.64 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01428/5.884, allocations: 3.972 MB / 1.862 GB, free: 24.23 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.578e-05/5.884, allocations: 22.16 kB / 1.862 GB, free: 24.23 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/5.884, allocations: 2.344 kB / 1.862 GB, free: 24.23 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008479/5.893, allocations: 3.045 MB / 1.865 GB, free: 22.81 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02148/5.914, allocations: 7.143 MB / 1.872 GB, free: 19.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.027e-05/5.915, allocations: 7.281 kB / 1.872 GB, free: 19.61 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003854/5.918, allocations: 456.5 kB / 1.872 GB, free: 19.58 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001434/5.92, allocations: 323 kB / 1.872 GB, free: 19.49 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000641/5.921, allocations: 120.4 kB / 1.873 GB, free: 19.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003802/5.924, allocations: 3.753 MB / 1.876 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.277e-06/5.924, allocations: 11.94 kB / 1.876 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01291/5.937, allocations: 5.071 MB / 1.881 GB, free: 10.78 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002256/5.94, allocations: 0.5729 MB / 1.882 GB, free: 10.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000859/5.941, allocations: 63.83 kB / 1.882 GB, free: 10.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003344/5.944, allocations: 141.3 kB / 1.882 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007332/5.945, allocations: 188.1 kB / 1.882 GB, free: 9.973 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005148/5.945, allocations: 185.8 kB / 1.882 GB, free: 9.809 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002802/5.948, allocations: 1.135 MB / 1.883 GB, free: 8.84 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.22e-07/5.948, allocations: 0 / 1.883 GB, free: 8.84 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01054/5.959, allocations: 2.082 MB / 1.885 GB, free: 6.801 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 9 (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,junctionVolume.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 (206): * Single equations (assignments): 199 * 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: 5 * 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: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009597/5.968, allocations: 2.584 MB / 1.888 GB, free: 4.828 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0152/5.984, allocations: 4.644 MB / 1.892 GB, free: 0.7266 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.785e-05/5.984, allocations: 4.125 kB / 1.892 GB, free: 0.7227 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00694/5.991, allocations: 1.754 MB / 1.894 GB, free: 15.45 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009988/6.001, allocations: 1.117 MB / 1.895 GB, free: 14.64 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01666/6.017, allocations: 6.068 MB / 1.901 GB, free: 9.176 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002203/6.02, allocations: 1.75 MB / 1.903 GB, free: 7.758 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003086/6.023, allocations: 390.5 kB / 1.903 GB, free: 7.418 MB / 0.5573 GB Notification: Performance of SimCode: time 1.253e-06/6.023, allocations: 0 / 1.903 GB, free: 7.418 MB / 0.5573 GB Notification: Performance of Templates: time 0.5914/6.614, allocations: 97.41 MB / 1.998 GB, free: 59.64 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes17/BranchingPipes17.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches