Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) 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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="Buildings_11_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_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",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.007036/0.007036, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.002111/0.002111, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.794/2.794, allocations: 469.8 MB / 0.7425 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 67.89 kB / 1.065 GB, free: 14 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6986/0.7005, allocations: 159.1 MB / 1.22 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.004368/0.7049, allocations: 2.09 MB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001187/0.7061, allocations: 0.565 MB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.7063, allocations: 4 kB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001351/0.7065, allocations: 23.67 kB / 1.223 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001147/0.7066, allocations: 31.66 kB / 1.223 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003022/0.7069, allocations: 95.81 kB / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003705/0.7073, allocations: 267.4 kB / 1.223 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002591/0.7076, allocations: 114.8 kB / 1.223 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001813/0.7078, allocations: 115.6 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001706/0.7079, allocations: 115.5 kB / 1.224 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.216e-05/0.708, allocations: 24 kB / 1.224 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 4.717e-05/0.708, allocations: 28 kB / 1.224 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.176e-05/0.7081, allocations: 59.77 kB / 1.224 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.7083, allocations: 111.4 kB / 1.224 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003658/0.7086, allocations: 278.5 kB / 1.224 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.7086, allocations: 3.984 kB / 1.224 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.182e-06/0.7086, allocations: 0 / 1.224 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.025e-06/0.7087, allocations: 0 / 1.224 GB, free: 14.13 MB / 0.9512 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.001255/0.7099, allocations: 0.6408 MB / 1.225 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.71, allocations: 8.031 kB / 1.225 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.582e-05/0.7101, allocations: 59.12 kB / 1.225 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.224e-05/0.7102, allocations: 28.8 kB / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004079/0.7106, allocations: 265.3 kB / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.946e-05/0.7106, allocations: 20.8 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.616e-05/0.7107, allocations: 28.31 kB / 1.225 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006596/0.7113, allocations: 270.6 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.7114, allocations: 0 / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.7114, allocations: 7.984 kB / 1.225 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.7114, allocations: 12 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007148/0.7121, allocations: 193.6 kB / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00122/0.7134, allocations: 0.6272 MB / 1.226 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008678/0.7142, allocations: 222.5 kB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000327/0.7146, allocations: 84.78 kB / 1.226 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.7146, allocations: 7.938 kB / 1.226 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005132/0.7151, allocations: 197.1 kB / 1.227 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=18): time 2.114e-06/0.7151, allocations: 0 / 1.227 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of matching and sorting (n=18): time 0.001137/0.7163, allocations: 337.2 kB / 1.227 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.106e-05/0.7164, allocations: 110.8 kB / 1.227 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.7166, allocations: 200.3 kB / 1.227 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.913e-05/0.7166, allocations: 33.7 kB / 1.227 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.7168, allocations: 156.4 kB / 1.227 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.528e-05/0.7168, allocations: 55.61 kB / 1.227 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.717, allocations: 65.7 kB / 1.228 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.7171, allocations: 330.8 kB / 1.228 GB, free: 9.949 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003914/0.7175, allocations: 104.2 kB / 1.228 GB, free: 9.848 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004299/0.7179, allocations: 179.3 kB / 1.228 GB, free: 9.648 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007318/0.7187, allocations: 314.8 kB / 1.228 GB, free: 9.305 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.7187, allocations: 3.938 kB / 1.228 GB, free: 9.301 MB / 0.9512 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009746/0.7197, allocations: 423.7 kB / 1.229 GB, free: 8.863 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 7.46e-05/0.7198, allocations: 97.03 kB / 1.229 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.7198, allocations: 0 / 1.229 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.7198, allocations: 4 kB / 1.229 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002313/0.72, allocations: 43.89 kB / 1.229 GB, free: 8.703 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.7201, allocations: 4 kB / 1.229 GB, free: 8.699 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003363/0.7204, allocations: 59.95 kB / 1.229 GB, free: 8.641 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.065e-05/0.7204, allocations: 12 kB / 1.229 GB, free: 8.629 MB / 0.9512 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.0001654/0.7206, allocations: 151.1 kB / 1.229 GB, free: 8.477 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.157e-05/0.7207, allocations: 23.84 kB / 1.229 GB, free: 8.453 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008005/0.7215, allocations: 253.5 kB / 1.229 GB, free: 8.199 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.7215, allocations: 4 kB / 1.229 GB, free: 8.195 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.7215, allocations: 0 / 1.229 GB, free: 8.195 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.7215, allocations: 0 / 1.229 GB, free: 8.195 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.7226, allocations: 0.5879 MB / 1.23 GB, free: 7.551 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.7226, allocations: 3.984 kB / 1.23 GB, free: 7.547 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00017/0.7228, allocations: 27.97 kB / 1.23 GB, free: 7.52 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.7228, allocations: 0 / 1.23 GB, free: 7.52 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.7228, allocations: 4 kB / 1.23 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/0.7228, allocations: 11.98 kB / 1.23 GB, free: 7.504 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.7228, allocations: 4 kB / 1.23 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007819/0.7236, allocations: 344.9 kB / 1.23 GB, free: 7.148 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.875e-05/0.7237, allocations: 92.97 kB / 1.23 GB, free: 7.039 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.571e-05/0.7237, allocations: 8 kB / 1.23 GB, free: 7.031 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003132/0.7241, allocations: 47.94 kB / 1.231 GB, free: 6.984 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.7242, allocations: 47.88 kB / 1.231 GB, free: 6.938 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.7242, allocations: 8 kB / 1.231 GB, free: 6.93 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001327/0.7244, allocations: 144.2 kB / 1.231 GB, free: 6.789 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7244, allocations: 0 / 1.231 GB, free: 6.789 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003222/0.7247, allocations: 55.89 kB / 1.231 GB, free: 6.734 MB / 0.9512 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.00154/0.7262, allocations: 1.003 MB / 1.232 GB, free: 5.703 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0009397/0.7272, allocations: 417.8 kB / 1.232 GB, free: 5.258 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.7272, allocations: 4.312 kB / 1.232 GB, free: 5.254 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.00038/0.7276, allocations: 111.9 kB / 1.232 GB, free: 5.145 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003774/0.728, allocations: 30.42 kB / 1.232 GB, free: 5.117 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004212/0.7322, allocations: 2.605 MB / 1.235 GB, free: 2.391 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.7326, allocations: 0.732 MB / 1.236 GB, free: 1.633 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001068/0.7327, allocations: 29.52 kB / 1.236 GB, free: 1.605 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.7328, allocations: 67.41 kB / 1.236 GB, free: 1.539 MB / 0.9512 GB Notification: Performance of SimCode: time 4.61e-07/0.7328, allocations: 0 / 1.236 GB, free: 1.539 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02803/0.7609, allocations: 5.218 MB / 1.241 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.725/8.486, allocations: 7.875 kB / 1.241 GB, free: 12.47 MB / 0.9669 GB (rm -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.csv --start-time 0 --stop-time 100 --timeout 400 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 1 Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches