Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.Example3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Examples.Performance.Example3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example3") translateModel(Buildings.Fluid.Examples.Performance.Example3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009654/0.0009656, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 187.8 kB / 16.92 MB, free: 6.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 223.3 MB / 241 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.67/2.67, allocations: 390.9 MB / 0.667 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003832/0.0003834, allocations: 8.281 kB / 0.8166 GB, free: 13.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6733/0.6737, allocations: 142.4 MB / 0.9557 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example3): time 0.03037/0.7041, allocations: 31.78 MB / 0.9867 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01578/0.7199, allocations: 10.43 MB / 0.9969 GB, free: 5.309 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00192/0.7219, allocations: 47.69 kB / 0.997 GB, free: 5.262 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002322/0.7243, allocations: 0.6396 MB / 0.9976 GB, free: 4.621 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.004481/0.7288, allocations: 1.444 MB / 0.999 GB, free: 3.172 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003619/0.7324, allocations: 1.266 MB / 1 GB, free: 1.914 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.007531/0.7399, allocations: 6.437 MB / 1.007 GB, free: 11.46 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002798/0.7428, allocations: 1.733 MB / 1.008 GB, free: 9.703 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003635/0.7464, allocations: 1.618 MB / 1.01 GB, free: 8.078 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002419/0.7489, allocations: 1.33 MB / 1.011 GB, free: 6.742 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0003376/0.7493, allocations: 71.92 kB / 1.011 GB, free: 6.672 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002921/0.7522, allocations: 1.076 MB / 1.012 GB, free: 5.594 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0005607/0.7528, allocations: 374.3 kB / 1.013 GB, free: 5.227 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001527/0.7543, allocations: 0.9418 MB / 1.013 GB, free: 4.273 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.00312/0.7574, allocations: 2.159 MB / 1.016 GB, free: 2.109 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.7575, allocations: 0 / 1.016 GB, free: 2.109 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.954e-06/0.7575, allocations: 0 / 1.016 GB, free: 2.109 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.86e-05/0.7576, allocations: 4 kB / 1.016 GB, free: 2.105 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 235 * Number of variables: 235 Notification: Performance of Generate backend data structure: time 0.00384/0.7614, allocations: 2.046 MB / 1.018 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.7615, allocations: 8.031 kB / 1.018 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001953/0.7634, allocations: 398 kB / 1.018 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00345/0.7669, allocations: 1.672 MB / 1.02 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.071e-05/0.767, allocations: 81.94 kB / 1.02 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00019/0.7672, allocations: 112 kB / 1.02 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002454/0.7697, allocations: 1.314 MB / 1.021 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/0.7697, allocations: 4 kB / 1.021 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/0.7698, allocations: 40 kB / 1.021 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.735e-05/0.7699, allocations: 27.98 kB / 1.021 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002106/0.772, allocations: 1.046 MB / 1.022 GB, free: 11.18 MB / 0.7794 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.008417/0.7804, allocations: 6.824 MB / 1.029 GB, free: 3.852 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.7819, allocations: 0.6527 MB / 1.029 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008156/0.7828, allocations: 423.5 kB / 1.03 GB, free: 2.773 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002934/0.7857, allocations: 1.71 MB / 1.032 GB, free: 0.9258 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008556/0.7866, allocations: 396.9 kB / 1.032 GB, free: 0.5273 MB / 0.7794 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006317/0.7873, allocations: 111.2 kB / 1.032 GB, free: 428 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=46): time 2.866e-06/0.7873, allocations: 4 kB / 1.032 GB, free: 424 kB / 0.7794 GB Notification: Performance of matching and sorting (n=46): time 0.003936/0.7912, allocations: 1.383 MB / 1.033 GB, free: 15 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/0.7913, allocations: 63.39 kB / 1.033 GB, free: 14.93 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002594/0.7939, allocations: 1.781 MB / 1.035 GB, free: 13.1 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.7941, allocations: 37.7 kB / 1.035 GB, free: 13.06 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008052/0.7949, allocations: 0.8539 MB / 1.036 GB, free: 12.2 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002032/0.7951, allocations: 157.7 kB / 1.036 GB, free: 12.04 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.7952, allocations: 77.67 kB / 1.036 GB, free: 11.96 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.7954, allocations: 337.9 kB / 1.037 GB, free: 11.62 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007843/0.7961, allocations: 333.8 kB / 1.037 GB, free: 11.3 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001044/0.7972, allocations: 0.7713 MB / 1.038 GB, free: 10.32 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001785/0.799, allocations: 1.034 MB / 1.039 GB, free: 9.141 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.799, allocations: 0 / 1.039 GB, free: 9.141 MB / 0.795 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003042/0.8021, allocations: 1.355 MB / 1.04 GB, free: 7.77 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003088/0.8024, allocations: 427 kB / 1.04 GB, free: 7.203 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.8024, allocations: 11.94 kB / 1.04 GB, free: 7.191 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006721/0.8031, allocations: 180.7 kB / 1.041 GB, free: 7.012 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007071/0.8038, allocations: 183.6 kB / 1.041 GB, free: 6.832 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007103/0.8045, allocations: 0.7553 MB / 1.042 GB, free: 6.051 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/0.8059, allocations: 104.5 kB / 1.042 GB, free: 5.949 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.344e-05/0.806, allocations: 47.98 kB / 1.042 GB, free: 5.902 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.806, allocations: 5.406 kB / 1.042 GB, free: 5.898 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002097/0.8081, allocations: 1.128 MB / 1.043 GB, free: 4.742 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/0.8082, allocations: 15.98 kB / 1.043 GB, free: 4.727 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002437/0.8084, allocations: 121.5 kB / 1.043 GB, free: 4.605 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006261/0.809, allocations: 175.7 kB / 1.043 GB, free: 4.434 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002241/0.8113, allocations: 2.138 MB / 1.045 GB, free: 2.168 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.8125, allocations: 100.6 kB / 1.045 GB, free: 2.066 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.522e-05/0.8126, allocations: 36 kB / 1.045 GB, free: 2.031 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,from_dp.y,mergeDp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 82 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0009382/0.8135, allocations: 0.5864 MB / 1.046 GB, free: 1.434 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003475/0.8139, allocations: 173.8 kB / 1.046 GB, free: 1.262 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002343/0.8162, allocations: 1.035 MB / 1.047 GB, free: 220 kB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.8163, allocations: 4 kB / 1.047 GB, free: 216 kB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.8163, allocations: 0 / 1.047 GB, free: 216 kB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001699/0.818, allocations: 1.004 MB / 1.048 GB, free: 15.14 MB / 0.8106 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 postOpt removeSimpleEquations (simulation): time 0.004154/0.8222, allocations: 2.238 MB / 1.05 GB, free: 12.81 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.8222, allocations: 64 / 1.05 GB, free: 12.81 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004938/0.8227, allocations: 99.86 kB / 1.05 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003013/0.823, allocations: 116.7 kB / 1.05 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.153e-05/0.8231, allocations: 15.98 kB / 1.05 GB, free: 12.58 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005883/0.8236, allocations: 0.7462 MB / 1.051 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.8237, allocations: 4.031 kB / 1.051 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00279/0.8265, allocations: 1.433 MB / 1.053 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007237/0.8272, allocations: 314.8 kB / 1.053 GB, free: 10.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/0.8274, allocations: 19.92 kB / 1.053 GB, free: 9.996 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008138/0.8282, allocations: 87.89 kB / 1.053 GB, free: 9.91 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.8283, allocations: 36.33 kB / 1.053 GB, free: 9.875 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.545e-05/0.8284, allocations: 23.98 kB / 1.053 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001719/0.8301, allocations: 1.231 MB / 1.054 GB, free: 8.598 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8301, allocations: 0 / 1.054 GB, free: 8.598 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.002263/0.8324, allocations: 0.7876 MB / 1.055 GB, free: 7.809 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (pump.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001028/0.8334, allocations: 380.7 kB / 1.055 GB, free: 7.43 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003113/0.8366, allocations: 1.54 MB / 1.057 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.8366, allocations: 64 / 1.057 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000796/0.8374, allocations: 358.3 kB / 1.057 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003857/0.8413, allocations: 0.745 MB / 1.058 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005514/0.8468, allocations: 3.569 MB / 1.061 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001096/0.8479, allocations: 1.48 MB / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004523/0.8484, allocations: 139.3 kB / 1.063 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of SimCode: time 7.32e-07/0.8484, allocations: 0 / 1.063 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of Templates: time 0.05338/0.9018, allocations: 36.88 MB / 1.099 GB, free: 10.83 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.Example3.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.Example3.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.Example3.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.Example3.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example3.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.Example3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.Example3.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.Example3_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_Example3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Examples.Performance.Example3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches