Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.Performance.Example1v1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1") translateModel(Buildings.Fluid.Examples.Performance.Example1v1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.376/2.376, allocations: 387.1 MB / 399.7 MB, free: 9.527 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 180.4 kB / 492.3 MB, free: 0.6445 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 221.3 MB / 0.7871 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009675/0.0009673, allocations: 90.7 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.521e-05/3.531e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3198, allocations: 142.3 MB / 1.212 GB, free: 38.56 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.249/1.569, allocations: 419.6 MB / 1.622 GB, free: 10.23 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/1.569, allocations: 95.19 kB / 1.622 GB, free: 10.19 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 5.175/6.745, allocations: 1.338 GB / 2.96 GB, free: 114 MB / 1.167 GB Notification: Performance of FrontEnd: time 4.509e-06/6.745, allocations: 8 kB / 2.96 GB, free: 114 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0007826/6.745, allocations: 87.97 kB / 2.96 GB, free: 114 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 398 * Number of variables: 398 Notification: Performance of Generate backend data structure: time 0.01425/6.76, allocations: 3.117 MB / 2.963 GB, free: 110.8 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/6.76, allocations: 12.03 kB / 2.963 GB, free: 110.8 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004118/6.764, allocations: 0.6281 MB / 2.963 GB, free: 110.1 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.012/6.776, allocations: 4.366 MB / 2.968 GB, free: 105.7 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/6.776, allocations: 135.1 kB / 2.968 GB, free: 105.6 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000557/6.777, allocations: 188 kB / 2.968 GB, free: 105.4 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00342/6.78, allocations: 2.179 MB / 2.97 GB, free: 103.1 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.795e-05/6.78, allocations: 11.94 kB / 2.97 GB, free: 103.1 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001635/6.78, allocations: 68 kB / 2.97 GB, free: 103 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.834e-05/6.78, allocations: 40 kB / 2.97 GB, free: 102.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002364/6.783, allocations: 1.686 MB / 2.972 GB, free: 101.3 MB / 1.167 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.01361/6.796, allocations: 11.58 MB / 2.983 GB, free: 89.03 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/6.798, allocations: 1.18 MB / 2.984 GB, free: 87.83 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009921/6.799, allocations: 0.9087 MB / 2.985 GB, free: 86.91 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0054/6.805, allocations: 3.489 MB / 2.989 GB, free: 83.15 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008864/6.805, allocations: 0.693 MB / 2.989 GB, free: 82.45 MB / 1.167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002178/6.808, allocations: 0.6077 MB / 2.99 GB, free: 81.84 MB / 1.167 GB Notification: Performance of pre-optimization done (n=98): time 3.928e-06/6.808, allocations: 0 / 2.99 GB, free: 81.84 MB / 1.167 GB Notification: Performance of matching and sorting (n=98): time 0.002664/6.81, allocations: 1.796 MB / 2.992 GB, free: 80.02 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/6.81, allocations: 60.19 kB / 2.992 GB, free: 79.95 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003053/6.813, allocations: 2.475 MB / 2.994 GB, free: 77.48 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001068/6.814, allocations: 61.69 kB / 2.994 GB, free: 77.41 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001034/6.815, allocations: 1.421 MB / 2.996 GB, free: 75.98 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/6.815, allocations: 339.1 kB / 2.996 GB, free: 75.64 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.165e-05/6.815, allocations: 36 kB / 2.996 GB, free: 75.61 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 9.61e-05/6.815, allocations: 361.9 kB / 2.996 GB, free: 75.25 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007334/6.816, allocations: 0.5194 MB / 2.997 GB, free: 74.73 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009831/6.817, allocations: 1.286 MB / 2.998 GB, free: 73.09 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008762/6.818, allocations: 0.7369 MB / 2.999 GB, free: 72.34 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/6.818, allocations: 4 kB / 2.999 GB, free: 72.34 MB / 1.167 GB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003341/6.821, allocations: 2.378 MB / 3.001 GB, free: 69.94 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001238/6.822, allocations: 5.976 MB / 3.007 GB, free: 63.41 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/6.822, allocations: 19.84 kB / 3.007 GB, free: 63.39 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/6.823, allocations: 0.5053 MB / 3.007 GB, free: 62.88 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/6.824, allocations: 285.3 kB / 3.008 GB, free: 62.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001616/6.826, allocations: 1.886 MB / 3.01 GB, free: 60.66 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003226/6.829, allocations: 188.1 kB / 3.01 GB, free: 60.48 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002057/6.83, allocations: 83.97 kB / 3.01 GB, free: 60.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/6.83, allocations: 4 kB / 3.01 GB, free: 60.39 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003193/6.833, allocations: 2.132 MB / 3.012 GB, free: 58.23 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.023e-05/6.833, allocations: 19.95 kB / 3.012 GB, free: 58.21 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000873/6.834, allocations: 474.2 kB / 3.012 GB, free: 57.74 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/6.835, allocations: 269.5 kB / 3.013 GB, free: 57.47 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00648/6.841, allocations: 5.822 MB / 3.018 GB, free: 51.37 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003636/6.845, allocations: 184.2 kB / 3.019 GB, free: 51.18 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003598/6.845, allocations: 67.98 kB / 3.019 GB, free: 51.12 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,from_dp.y,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (133): * Single equations (assignments): 129 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 40,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0006182/6.846, allocations: 193.2 kB / 3.019 GB, free: 50.92 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008739/6.847, allocations: 296.2 kB / 3.019 GB, free: 50.63 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003994/6.851, allocations: 2.129 MB / 3.021 GB, free: 48.49 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.629e-05/6.851, allocations: 8 kB / 3.021 GB, free: 48.48 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/6.851, allocations: 7.938 kB / 3.021 GB, free: 48.48 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002187/6.853, allocations: 1.835 MB / 3.023 GB, free: 46.57 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007206/6.86, allocations: 4.083 MB / 3.027 GB, free: 42.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/6.86, allocations: 0 / 3.027 GB, free: 42.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000704/6.861, allocations: 141.6 kB / 3.027 GB, free: 42.26 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009324/6.862, allocations: 469.1 kB / 3.028 GB, free: 41.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.37e-05/6.862, allocations: 31.98 kB / 3.028 GB, free: 41.77 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00133/6.863, allocations: 1.842 MB / 3.029 GB, free: 39.87 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/6.863, allocations: 4.031 kB / 3.029 GB, free: 39.87 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003976/6.867, allocations: 2.811 MB / 3.032 GB, free: 37.01 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001831/6.869, allocations: 0.4972 MB / 3.033 GB, free: 36.49 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009187/6.87, allocations: 20 kB / 3.033 GB, free: 36.47 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00227/6.873, allocations: 143.6 kB / 3.033 GB, free: 36.33 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001835/6.873, allocations: 72.89 kB / 3.033 GB, free: 36.26 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/6.873, allocations: 43.97 kB / 3.033 GB, free: 36.22 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.004048/6.877, allocations: 1.918 MB / 3.035 GB, free: 34.31 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.81e-07/6.877, allocations: 0 / 3.035 GB, free: 34.31 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.006767/6.884, allocations: 1.451 MB / 3.036 GB, free: 32.86 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pump.vol.dynBal.U,hea.outCon.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 5,1 40} Notification: Performance of Backend phase and start with SimCode phase: time 0.002674/6.886, allocations: 1.088 MB / 3.037 GB, free: 31.82 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.005248/6.892, allocations: 2.879 MB / 3.04 GB, free: 28.89 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/6.892, allocations: 4 kB / 3.04 GB, free: 28.89 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001083/6.893, allocations: 0.6549 MB / 3.041 GB, free: 28.24 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00645/6.899, allocations: 1.171 MB / 3.042 GB, free: 27.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008993/6.908, allocations: 3.873 MB / 3.046 GB, free: 23.2 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002449/6.911, allocations: 2.1 MB / 3.048 GB, free: 21.07 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.006751/6.918, allocations: 1.462 MB / 3.049 GB, free: 19.64 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005641/6.918, allocations: 143.3 kB / 3.049 GB, free: 19.5 MB / 1.167 GB Notification: Performance of SimCode: time 2.003e-06/6.918, allocations: 4 kB / 3.049 GB, free: 19.49 MB / 1.167 GB Notification: Performance of Templates: time 0.9789/7.897, allocations: 63.17 MB / 3.111 GB, free: 215.3 MB / 1.182 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_Example1v1.csv","../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example1v1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches