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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001064/0.001064, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005756/0.005756, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.42/1.42, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.75/2.75, allocations: 462.7 MB / 0.7364 GB, free: 336 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004089/0.0004089, allocations: 9.031 kB / 0.9028 GB, free: 36.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3719/0.3723, allocations: 159.6 MB / 1.059 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedSelect): time 0.003233/0.3756, allocations: 1.874 MB / 1.061 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003829/0.3795, allocations: 2.555 MB / 1.063 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001796/0.3797, allocations: 7.938 kB / 1.063 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001464/0.3812, allocations: 0.5332 MB / 1.064 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003012/0.3815, allocations: 107.5 kB / 1.064 GB, free: 460 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007635/0.3822, allocations: 214.7 kB / 1.064 GB, free: 248 kB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005125/0.3828, allocations: 346.3 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.383, allocations: 77.06 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.3831, allocations: 115.3 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002275/0.3834, allocations: 159.1 kB / 1.065 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.8e-05/0.3834, allocations: 0 / 1.065 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002035/0.3836, allocations: 59.95 kB / 1.065 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001955/0.3838, allocations: 131.5 kB / 1.065 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002256/0.3841, allocations: 252.1 kB / 1.065 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007134/0.3848, allocations: 0.677 MB / 1.066 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3848, allocations: 0 / 1.066 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.724e-06/0.3848, allocations: 0 / 1.066 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.656e-06/0.3848, allocations: 0 / 1.066 GB, free: 14.43 MB / 0.8262 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.001206/0.386, allocations: 0.8178 MB / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.3861, allocations: 8.031 kB / 1.066 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.3862, allocations: 72.09 kB / 1.066 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000566/0.3868, allocations: 467.9 kB / 1.067 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.3868, allocations: 384 / 1.067 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.359e-05/0.3868, allocations: 12.12 kB / 1.067 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002398/0.3871, allocations: 96.17 kB / 1.067 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.3871, allocations: 0 / 1.067 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.3871, allocations: 4 kB / 1.067 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.249e-06/0.3871, allocations: 0 / 1.067 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001213/0.3873, allocations: 43.97 kB / 1.067 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000788/0.3881, allocations: 0.5201 MB / 1.068 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003812/0.3884, allocations: 102.7 kB / 1.068 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.541e-05/0.3885, allocations: 36.84 kB / 1.068 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.3886, allocations: 7.984 kB / 1.068 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001829/0.3888, allocations: 79.38 kB / 1.068 GB, free: 12 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.3888, allocations: 4 kB / 1.068 GB, free: 12 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004226/0.3892, allocations: 192.7 kB / 1.068 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.3893, allocations: 106.8 kB / 1.068 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/0.3904, allocations: 0.9187 MB / 1.069 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.3904, allocations: 29.7 kB / 1.069 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002812/0.3907, allocations: 316 kB / 1.069 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.936e-05/0.3907, allocations: 19.75 kB / 1.069 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.972e-05/0.3908, allocations: 17.7 kB / 1.069 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001783/0.391, allocations: 313.9 kB / 1.07 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.507e-05/0.3911, allocations: 23.98 kB / 1.07 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.3912, allocations: 84.2 kB / 1.07 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001494/0.3913, allocations: 73.62 kB / 1.07 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3913, allocations: 0 / 1.07 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002683/0.3916, allocations: 173 kB / 1.07 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.3916, allocations: 4 kB / 1.07 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3916, allocations: 3.938 kB / 1.07 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.3917, allocations: 48 / 1.07 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.064e-05/0.3917, allocations: 19.98 kB / 1.07 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.3918, allocations: 12.09 kB / 1.07 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/0.3919, allocations: 11.92 kB / 1.07 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.3919, allocations: 0 / 1.07 GB, free: 9.613 MB / 0.8262 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.0003403/0.3923, allocations: 322 kB / 1.07 GB, free: 9.293 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.212e-05/0.3923, allocations: 75.14 kB / 1.07 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001297/0.3925, allocations: 74.42 kB / 1.07 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3925, allocations: 0 / 1.07 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.3925, allocations: 4 kB / 1.07 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.3925, allocations: 15.86 kB / 1.07 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004138/0.3929, allocations: 389.4 kB / 1.071 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3929, allocations: 0 / 1.071 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.606e-05/0.393, allocations: 8 kB / 1.071 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.393, allocations: 0 / 1.071 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.393, allocations: 0 / 1.071 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.393, allocations: 0 / 1.071 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.393, allocations: 0 / 1.071 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003108/0.3933, allocations: 200.1 kB / 1.071 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.3935, allocations: 148.2 kB / 1.071 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.507e-05/0.3935, allocations: 8 kB / 1.071 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.3937, allocations: 7.984 kB / 1.071 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.924e-05/0.3937, allocations: 7.984 kB / 1.071 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.231e-05/0.3938, allocations: 7.938 kB / 1.071 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0007903/0.3946, allocations: 0.6824 MB / 1.072 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3946, allocations: 0 / 1.072 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003088/0.3949, allocations: 60 kB / 1.072 GB, free: 7.539 MB / 0.8262 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.001114/0.396, allocations: 426.7 kB / 1.072 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002342/0.3962, allocations: 71.95 kB / 1.072 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3963, allocations: 0 / 1.072 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.739e-05/0.3964, allocations: 39.92 kB / 1.072 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007742/0.3971, allocations: 155.1 kB / 1.073 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00186/0.399, allocations: 1.279 MB / 1.074 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006761/0.3997, allocations: 0.9905 MB / 1.075 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.00018/0.3999, allocations: 47.27 kB / 1.075 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.483e-05/0.4, allocations: 31.36 kB / 1.075 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of SimCode: time 1.192e-06/0.4, allocations: 0 / 1.075 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of Templates: time 0.01291/0.4129, allocations: 5.793 MB / 1.081 GB, free: 14.92 MB / 0.8419 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