Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 107.5 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001787/0.001787, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.085/3.085, allocations: 497.2 MB / 0.7811 GB, free: 33.76 MB / 0.6231 GB " [Timeout remaining time 177] 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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 68.83 kB / 1.134 GB, free: 33.66 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.3716, allocations: 173.9 MB / 1.304 GB, free: 1.535 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003707/0.3753, allocations: 2.089 MB / 1.306 GB, free: 15.43 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001079/0.3764, allocations: 0.5688 MB / 1.307 GB, free: 14.86 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.3765, allocations: 3.938 kB / 1.307 GB, free: 14.85 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.3766, allocations: 27.72 kB / 1.307 GB, free: 14.82 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.3767, allocations: 43.59 kB / 1.307 GB, free: 14.78 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002744/0.377, allocations: 75.91 kB / 1.307 GB, free: 14.71 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003476/0.3774, allocations: 267.3 kB / 1.307 GB, free: 14.45 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002277/0.3776, allocations: 99.09 kB / 1.307 GB, free: 14.35 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001471/0.3777, allocations: 111.6 kB / 1.307 GB, free: 14.24 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.3779, allocations: 115.5 kB / 1.307 GB, free: 14.12 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.717e-05/0.3779, allocations: 24 kB / 1.307 GB, free: 14.1 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.094e-05/0.378, allocations: 28 kB / 1.307 GB, free: 14.07 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 6.676e-05/0.378, allocations: 59.75 kB / 1.307 GB, free: 14.02 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.3782, allocations: 115.4 kB / 1.308 GB, free: 13.9 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003486/0.3785, allocations: 270.9 kB / 1.308 GB, free: 13.64 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3785, allocations: 0 / 1.308 GB, free: 13.64 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3785, allocations: 0 / 1.308 GB, free: 13.64 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.274e-05/0.3785, allocations: 3.984 kB / 1.308 GB, free: 13.63 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001241/0.3798, allocations: 0.6524 MB / 1.308 GB, free: 12.91 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.3798, allocations: 8.922 kB / 1.308 GB, free: 12.9 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.69e-05/0.3799, allocations: 55.17 kB / 1.309 GB, free: 12.84 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.411e-05/0.38, allocations: 32.8 kB / 1.309 GB, free: 12.81 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000363/0.3803, allocations: 252.5 kB / 1.309 GB, free: 12.52 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.961e-05/0.3804, allocations: 28.8 kB / 1.309 GB, free: 12.5 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.29e-05/0.3804, allocations: 16.38 kB / 1.309 GB, free: 12.48 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006223/0.381, allocations: 270.6 kB / 1.309 GB, free: 12.2 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.3811, allocations: 3.938 kB / 1.309 GB, free: 12.2 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.138e-05/0.3811, allocations: 15.98 kB / 1.309 GB, free: 12.18 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.3811, allocations: 8 kB / 1.309 GB, free: 12.18 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006656/0.3818, allocations: 193.6 kB / 1.309 GB, free: 11.98 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.383, allocations: 0.6272 MB / 1.31 GB, free: 11.3 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008/0.3838, allocations: 210.5 kB / 1.31 GB, free: 11.09 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003014/0.3841, allocations: 84.78 kB / 1.31 GB, free: 11 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.3841, allocations: 0 / 1.31 GB, free: 11 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004875/0.3846, allocations: 191.1 kB / 1.31 GB, free: 10.8 MB / 1.014 GB Notification: Performance of pre-optimization done (n=18): time 1.553e-06/0.3846, allocations: 0 / 1.31 GB, free: 10.8 MB / 1.014 GB Notification: Performance of matching and sorting (n=18): time 0.001173/0.3858, allocations: 331.4 kB / 1.311 GB, free: 10.48 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.298e-05/0.3859, allocations: 114.8 kB / 1.311 GB, free: 10.34 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.3861, allocations: 210.8 kB / 1.311 GB, free: 10.12 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.159e-05/0.3861, allocations: 37.7 kB / 1.311 GB, free: 10.08 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.3862, allocations: 156.4 kB / 1.311 GB, free: 9.922 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 5.503e-05/0.3863, allocations: 55.61 kB / 1.311 GB, free: 9.867 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.3864, allocations: 65.64 kB / 1.311 GB, free: 9.797 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3865, allocations: 330.8 kB / 1.312 GB, free: 9.465 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003523/0.3869, allocations: 112.2 kB / 1.312 GB, free: 9.355 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003919/0.3873, allocations: 175.3 kB / 1.312 GB, free: 9.16 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006726/0.3879, allocations: 305.5 kB / 1.312 GB, free: 8.828 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.3879, allocations: 0 / 1.312 GB, free: 8.828 MB / 1.014 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009202/0.3889, allocations: 423.7 kB / 1.313 GB, free: 8.391 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 8.099e-05/0.3889, allocations: 97.03 kB / 1.313 GB, free: 8.277 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.389, allocations: 0 / 1.313 GB, free: 8.277 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.389, allocations: 4 kB / 1.313 GB, free: 8.273 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.3892, allocations: 47.89 kB / 1.313 GB, free: 8.227 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.3892, allocations: 3.938 kB / 1.313 GB, free: 8.223 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/0.3895, allocations: 63.89 kB / 1.313 GB, free: 8.16 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.3895, allocations: 12 kB / 1.313 GB, free: 8.148 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 25 (antFre.disErr.y,$PRE.antFre.disErr.y,TEvaOutEmu.count,$PRE.TEvaOutEmu.count,TEvaOutEmu.T_start,$PRE.TEvaOutEmu.T_start,TConInEmu.count,$PRE.TConInEmu.count,TConInEmu.T_start,$PRE.TConInEmu.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,antFre.hys.y,$PRE.antFre.hys.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,antFre.intConOne.y,antFre.disErr.local_set,antFre.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 3 * 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.0001636/0.3897, allocations: 156 kB / 1.313 GB, free: 7.984 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.513e-05/0.3897, allocations: 19.84 kB / 1.313 GB, free: 7.965 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007323/0.3905, allocations: 259.3 kB / 1.313 GB, free: 7.703 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3905, allocations: 0 / 1.313 GB, free: 7.703 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3905, allocations: 0 / 1.313 GB, free: 7.703 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.3905, allocations: 0 / 1.313 GB, free: 7.703 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/0.3915, allocations: 0.5818 MB / 1.314 GB, free: 7.066 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3915, allocations: 0 / 1.314 GB, free: 7.066 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/0.3917, allocations: 39.89 kB / 1.314 GB, free: 7.027 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3917, allocations: 0 / 1.314 GB, free: 7.027 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.089e-05/0.3917, allocations: 8 kB / 1.314 GB, free: 7.02 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3917, allocations: 3.984 kB / 1.314 GB, free: 7.016 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3917, allocations: 0 / 1.314 GB, free: 7.016 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007291/0.3924, allocations: 345 kB / 1.314 GB, free: 6.664 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 7.844e-05/0.3925, allocations: 100.9 kB / 1.314 GB, free: 6.547 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.601e-05/0.3925, allocations: 8 kB / 1.314 GB, free: 6.539 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002856/0.3928, allocations: 43.94 kB / 1.314 GB, free: 6.496 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.393, allocations: 47.94 kB / 1.314 GB, free: 6.449 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.192e-05/0.393, allocations: 4 kB / 1.314 GB, free: 6.445 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001341/0.3931, allocations: 140.5 kB / 1.314 GB, free: 6.309 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3931, allocations: 3.938 kB / 1.314 GB, free: 6.305 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003015/0.3934, allocations: 55.89 kB / 1.315 GB, free: 6.25 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,antFre.disErr.y,antFre.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count) * Number of discrete states: 6 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001471/0.3949, allocations: 1.003 MB / 1.316 GB, free: 5.219 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0008921/0.3958, allocations: 405.9 kB / 1.316 GB, free: 4.785 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.3958, allocations: 4.312 kB / 1.316 GB, free: 4.781 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003539/0.3961, allocations: 107.8 kB / 1.316 GB, free: 4.676 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003438/0.3965, allocations: 31.98 kB / 1.316 GB, free: 4.645 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003993/0.4005, allocations: 2.586 MB / 1.319 GB, free: 1.941 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.4008, allocations: 0.732 MB / 1.319 GB, free: 1.184 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001017/0.4009, allocations: 25.53 kB / 1.319 GB, free: 1.16 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.4011, allocations: 67.41 kB / 1.319 GB, free: 1.094 MB / 1.014 GB Notification: Performance of SimCode: time 4.11e-07/0.4011, allocations: 0 / 1.319 GB, free: 1.094 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03091/0.432, allocations: 5.266 MB / 1.325 GB, free: 12.02 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.24/8.672, allocations: 12.69 kB / 1.325 GB, free: 12.01 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --stepSize=1 --timeout=800 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.099230092018843]