Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004452/0.004452, allocations: 100.6 kB / 15.73 MB, free: 6.012 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.001111/0.001112, allocations: 190 kB / 16.67 MB, free: 5.934 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.26/1.26, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.117/2.117, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 71.89 kB / 0.9504 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6633/0.6647, allocations: 140.4 MB / 1.088 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect): time 0.003228/0.6679, allocations: 2.095 MB / 1.09 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002916/0.6709, allocations: 2.547 MB / 1.092 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001912/0.6711, allocations: 2.625 kB / 1.092 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001529/0.6727, allocations: 0.5063 MB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003205/0.673, allocations: 105.2 kB / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007369/0.6738, allocations: 243 kB / 1.093 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004907/0.6743, allocations: 359.2 kB / 1.093 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.6744, allocations: 71.08 kB / 1.093 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.6746, allocations: 122.5 kB / 1.093 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001874/0.6748, allocations: 142.2 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.584e-05/0.6748, allocations: 8.719 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001934/0.675, allocations: 68.12 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.6752, allocations: 123.3 kB / 1.094 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000166/0.6754, allocations: 223.9 kB / 1.094 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008421/0.6762, allocations: 0.6797 MB / 1.095 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.6762, allocations: 4 kB / 1.095 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.663e-06/0.6762, allocations: 4 kB / 1.095 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.949e-06/0.6762, allocations: 0.6562 kB / 1.095 GB, free: 0.8281 MB / 0.8575 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.001149/0.6774, allocations: 0.8841 MB / 1.095 GB, free: 104 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.6774, allocations: 9.125 kB / 1.095 GB, free: 104 kB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.136e-05/0.6775, allocations: 38.2 kB / 1.096 GB, free: 60 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.6776, allocations: 70.34 kB / 1.096 GB, free: 20 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006073/0.6782, allocations: 446 kB / 1.096 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.669e-05/0.6782, allocations: 6.5 kB / 1.096 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.791e-05/0.6783, allocations: 3.719 kB / 1.096 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.6785, allocations: 99.73 kB / 1.096 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.6785, allocations: 0.5625 kB / 1.096 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.6785, allocations: 5.516 kB / 1.096 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.6785, allocations: 1.094 kB / 1.096 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001266/0.6787, allocations: 42.27 kB / 1.096 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008135/0.6795, allocations: 0.5139 MB / 1.097 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004074/0.6799, allocations: 102.3 kB / 1.097 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.362e-05/0.68, allocations: 36.62 kB / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.68, allocations: 5.797 kB / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.6802, allocations: 86.67 kB / 1.097 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.6802, allocations: 0 / 1.097 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of matching and sorting (n=7): time 0.0004724/0.6807, allocations: 190.5 kB / 1.097 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.6808, allocations: 112.5 kB / 1.097 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.682, allocations: 0.8881 MB / 1.098 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.682, allocations: 27.89 kB / 1.098 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002657/0.6823, allocations: 296.7 kB / 1.098 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 2.924e-05/0.6823, allocations: 20.22 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.291e-05/0.6824, allocations: 29.05 kB / 1.098 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.779e-05/0.6825, allocations: 315.7 kB / 1.099 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.983e-05/0.6826, allocations: 31.88 kB / 1.099 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.6827, allocations: 71.62 kB / 1.099 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/0.6829, allocations: 84.31 kB / 1.099 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.6829, allocations: 1.094 kB / 1.099 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002933/0.6832, allocations: 164.7 kB / 1.099 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.6832, allocations: 7.094 kB / 1.099 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.6832, allocations: 1.719 kB / 1.099 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.6832, allocations: 5.031 kB / 1.099 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.7e-05/0.6833, allocations: 18.81 kB / 1.099 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.6834, allocations: 0 / 1.099 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.6835, allocations: 9.875 kB / 1.099 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.6835, allocations: 10.88 kB / 1.099 GB, free: 13.68 MB / 0.8731 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.0003404/0.6839, allocations: 313.6 kB / 1.099 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.384e-05/0.684, allocations: 70.23 kB / 1.099 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001244/0.6841, allocations: 75.06 kB / 1.1 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.6841, allocations: 5 kB / 1.1 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.6841, allocations: 0 / 1.1 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.6841, allocations: 1.594 kB / 1.1 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004668/0.6846, allocations: 383.5 kB / 1.1 GB, free: 13.17 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.6846, allocations: 0 / 1.1 GB, free: 13.17 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.089e-05/0.6847, allocations: 11.41 kB / 1.1 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.6847, allocations: 1.75 kB / 1.1 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.6847, allocations: 1.906 kB / 1.1 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.6847, allocations: 7.875 kB / 1.1 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.6847, allocations: 1.188 kB / 1.1 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000328/0.6851, allocations: 190.6 kB / 1.1 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001531/0.6852, allocations: 145.4 kB / 1.1 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.97e-05/0.6853, allocations: 1.891 kB / 1.1 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.6854, allocations: 17.3 kB / 1.1 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.715e-05/0.6855, allocations: 6.797 kB / 1.1 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-05/0.6855, allocations: 8.172 kB / 1.1 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0009531/0.6865, allocations: 0.6576 MB / 1.101 GB, free: 12.63 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6865, allocations: 0 / 1.101 GB, free: 12.63 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003599/0.6869, allocations: 54.12 kB / 1.101 GB, free: 12.62 MB / 0.8731 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.001579/0.6884, allocations: 1.055 MB / 1.102 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002461/0.6887, allocations: 75.33 kB / 1.102 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.6887, allocations: 0.9688 kB / 1.102 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.6888, allocations: 34.69 kB / 1.102 GB, free: 11.83 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006677/0.6895, allocations: 152.8 kB / 1.102 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006264/0.6958, allocations: 4.675 MB / 1.107 GB, free: 9.465 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005765/0.6964, allocations: 0.9793 MB / 1.108 GB, free: 8.703 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002138/0.6966, allocations: 41.34 kB / 1.108 GB, free: 8.691 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002295/0.6969, allocations: 175.8 kB / 1.108 GB, free: 8.555 MB / 0.8731 GB Notification: Performance of SimCode: time 6.32e-07/0.6969, allocations: 0 / 1.108 GB, free: 8.555 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03421/0.7311, allocations: 12.51 MB / 1.12 GB, free: 7.223 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.349/9.081, allocations: 12.69 kB / 1.12 GB, free: 7.215 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches