Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speSel.speRat",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect") translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speSel.speRat",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009487/0.009487, allocations: 97.67 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001684/0.001684, allocations: 196.9 kB / 16.68 MB, free: 5.977 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.766/2.766, allocations: 472.6 MB / 0.7453 GB, free: 4.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 67.84 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3567, allocations: 159.9 MB / 1.226 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect): time 0.004206/0.361, allocations: 2.156 MB / 1.228 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003852/0.3649, allocations: 2.659 MB / 1.23 GB, free: 4.359 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000234/0.3651, allocations: 8 kB / 1.23 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001634/0.3668, allocations: 0.5366 MB / 1.231 GB, free: 3.812 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003583/0.3672, allocations: 115.4 kB / 1.231 GB, free: 3.699 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000737/0.368, allocations: 234.6 kB / 1.231 GB, free: 3.473 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0005388/0.3685, allocations: 377.2 kB / 1.232 GB, free: 3.105 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.3687, allocations: 69.06 kB / 1.232 GB, free: 3.035 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002481/0.3689, allocations: 135.3 kB / 1.232 GB, free: 2.902 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002314/0.3692, allocations: 143.2 kB / 1.232 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.651e-05/0.3692, allocations: 12 kB / 1.232 GB, free: 2.75 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000232/0.3695, allocations: 59.97 kB / 1.232 GB, free: 2.691 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001889/0.3697, allocations: 139.4 kB / 1.232 GB, free: 2.555 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002528/0.3699, allocations: 222.4 kB / 1.232 GB, free: 2.336 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000865/0.3708, allocations: 0.7118 MB / 1.233 GB, free: 1.621 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3708, allocations: 4 kB / 1.233 GB, free: 1.617 MB / 0.9825 GB Notification: Performance of FrontEnd: time 4.689e-06/0.3708, allocations: 0 / 1.233 GB, free: 1.617 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.879e-05/0.3709, allocations: 3.938 kB / 1.233 GB, free: 1.613 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.001495/0.3724, allocations: 0.9377 MB / 1.234 GB, free: 0.6172 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3724, allocations: 12.03 kB / 1.234 GB, free: 0.6055 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.3726, allocations: 72.47 kB / 1.234 GB, free: 0.5352 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005515/0.3731, allocations: 460.7 kB / 1.234 GB, free: 44 kB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.646e-05/0.3731, allocations: 8.375 kB / 1.234 GB, free: 36 kB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.924e-05/0.3732, allocations: 12.11 kB / 1.234 GB, free: 24 kB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002509/0.3734, allocations: 104.2 kB / 1.235 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.3734, allocations: 3.984 kB / 1.235 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.3735, allocations: 0 / 1.235 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.3735, allocations: 4 kB / 1.235 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001142/0.3736, allocations: 35.98 kB / 1.235 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007564/0.3744, allocations: 0.52 MB / 1.235 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004054/0.3748, allocations: 110.6 kB / 1.235 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.91e-05/0.3749, allocations: 36.84 kB / 1.235 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.026e-05/0.3749, allocations: 0 / 1.235 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001834/0.3751, allocations: 95.27 kB / 1.235 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.3751, allocations: 0 / 1.235 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004054/0.3755, allocations: 193.2 kB / 1.236 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.944e-05/0.3756, allocations: 106.8 kB / 1.236 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.3766, allocations: 0.9227 MB / 1.237 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.3766, allocations: 25.7 kB / 1.237 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002917/0.3769, allocations: 316.1 kB / 1.237 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.868e-05/0.377, allocations: 19.8 kB / 1.237 GB, free: 13.41 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.532e-05/0.3771, allocations: 33.64 kB / 1.237 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.3772, allocations: 309.9 kB / 1.237 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.825e-05/0.3773, allocations: 27.98 kB / 1.237 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.3774, allocations: 76.27 kB / 1.237 GB, free: 12.95 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001493/0.3775, allocations: 70 kB / 1.237 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3775, allocations: 0 / 1.237 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002728/0.3778, allocations: 177.1 kB / 1.238 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.3779, allocations: 9.562 kB / 1.238 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3779, allocations: 4.031 kB / 1.238 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.3779, allocations: 0 / 1.238 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.835e-05/0.378, allocations: 23.92 kB / 1.238 GB, free: 12.66 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.378, allocations: 0 / 1.238 GB, free: 12.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/0.3781, allocations: 7.938 kB / 1.238 GB, free: 12.65 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.3781, allocations: 4 kB / 1.238 GB, free: 12.65 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.sta.combiTimeTable.nextTimeEvent,$whenCondition1,sta.combiTimeTable.nextTimeEventScaled,$PRE.sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEvent,sta.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003052/0.3784, allocations: 321.2 kB / 1.238 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.803e-05/0.3785, allocations: 71.53 kB / 1.238 GB, free: 12.26 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000141/0.3787, allocations: 90.34 kB / 1.238 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.3787, allocations: 0 / 1.238 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3787, allocations: 0 / 1.238 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.3787, allocations: 3.938 kB / 1.238 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003825/0.3791, allocations: 389.4 kB / 1.238 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3791, allocations: 3.938 kB / 1.238 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.889e-05/0.3792, allocations: 8 kB / 1.238 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3792, allocations: 0 / 1.238 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.3792, allocations: 7.984 kB / 1.238 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3792, allocations: 0 / 1.238 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3792, allocations: 0 / 1.238 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002986/0.3795, allocations: 208.5 kB / 1.239 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.3796, allocations: 140.6 kB / 1.239 GB, free: 11.33 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.371e-05/0.3797, allocations: 4 kB / 1.239 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.3798, allocations: 7.984 kB / 1.239 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.77e-05/0.3799, allocations: 11.98 kB / 1.239 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.962e-05/0.3799, allocations: 7.938 kB / 1.239 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007748/0.3807, allocations: 0.6785 MB / 1.239 GB, free: 10.62 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3807, allocations: 4 kB / 1.239 GB, free: 10.62 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000299/0.381, allocations: 59.94 kB / 1.24 GB, free: 10.56 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,sta.y,sta.combiTimeTable.nextTimeEvent,sta.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001034/0.382, allocations: 422.4 kB / 1.24 GB, free: 10.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002453/0.3823, allocations: 71.89 kB / 1.24 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.3823, allocations: 7.938 kB / 1.24 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.3824, allocations: 35.98 kB / 1.24 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006748/0.3831, allocations: 173.3 kB / 1.24 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001601/0.3847, allocations: 1.15 MB / 1.241 GB, free: 8.836 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005822/0.3853, allocations: 0.994 MB / 1.242 GB, free: 7.816 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001454/0.3855, allocations: 47.27 kB / 1.242 GB, free: 7.77 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.034e-05/0.3855, allocations: 31.42 kB / 1.242 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of SimCode: time 3.71e-07/0.3855, allocations: 0 / 1.242 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of Templates: time 0.01189/0.3974, allocations: 6.073 MB / 1.248 GB, free: 1.773 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.makefile (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.sim & ./Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedSelect.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches