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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 109.2 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.002078/0.002078, allocations: 191.8 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.457/1.457, 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 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.859/2.859, allocations: 476.7 MB / 0.7611 GB, free: 11.32 MB / 0.6231 GB " [Timeout remaining time 177] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002051, allocations: 71.89 kB / 1.104 GB, free: 9.199 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7836/0.7857, allocations: 168.7 MB / 1.269 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003697/0.7894, allocations: 2.101 MB / 1.271 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00108/0.7904, allocations: 0.5533 MB / 1.271 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.7906, allocations: 7.938 kB / 1.271 GB, free: 2.477 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.7907, allocations: 23.73 kB / 1.271 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.7908, allocations: 43.58 kB / 1.271 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002949/0.7911, allocations: 91.83 kB / 1.272 GB, free: 2.32 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003537/0.7915, allocations: 255.4 kB / 1.272 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.7917, allocations: 100.6 kB / 1.272 GB, free: 1.969 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.792, allocations: 107.7 kB / 1.272 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002096/0.7922, allocations: 119.5 kB / 1.272 GB, free: 1.746 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.749e-05/0.7922, allocations: 28 kB / 1.272 GB, free: 1.719 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 4.92e-05/0.7923, allocations: 28 kB / 1.272 GB, free: 1.691 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.829e-05/0.7924, allocations: 63.7 kB / 1.272 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001447/0.7925, allocations: 111.4 kB / 1.272 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004168/0.7929, allocations: 274.9 kB / 1.273 GB, free: 1.25 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.7929, allocations: 0 / 1.273 GB, free: 1.25 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.532e-06/0.7929, allocations: 3.938 kB / 1.273 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.668e-06/0.7929, allocations: 0 / 1.273 GB, free: 1.246 MB / 0.9669 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.001331/0.7943, allocations: 0.6486 MB / 1.273 GB, free: 0.5273 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.7943, allocations: 8.031 kB / 1.273 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.7944, allocations: 63.06 kB / 1.273 GB, free: 460 kB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.265e-05/0.7945, allocations: 28.8 kB / 1.273 GB, free: 432 kB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000408/0.7949, allocations: 257.1 kB / 1.274 GB, free: 136 kB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/0.7949, allocations: 12.81 kB / 1.274 GB, free: 124 kB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.312e-05/0.795, allocations: 28.36 kB / 1.274 GB, free: 96 kB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006804/0.7956, allocations: 274.6 kB / 1.274 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.7957, allocations: 0 / 1.274 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.818e-05/0.7957, allocations: 8 kB / 1.274 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.7957, allocations: 7.938 kB / 1.274 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006811/0.7964, allocations: 205.6 kB / 1.274 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.7976, allocations: 0.6233 MB / 1.275 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008284/0.7985, allocations: 218.5 kB / 1.275 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003055/0.7988, allocations: 80.78 kB / 1.275 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.7988, allocations: 4 kB / 1.275 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004929/0.7993, allocations: 187.2 kB / 1.275 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.884e-06/0.7993, allocations: 0 / 1.275 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18): time 0.001081/0.8004, allocations: 335 kB / 1.275 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.586e-05/0.8004, allocations: 110.8 kB / 1.276 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.8007, allocations: 200.3 kB / 1.276 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.695e-05/0.8007, allocations: 37.7 kB / 1.276 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.8008, allocations: 156.4 kB / 1.276 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.164e-05/0.8009, allocations: 51.61 kB / 1.276 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.801, allocations: 65.7 kB / 1.276 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.8011, allocations: 330.8 kB / 1.276 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003654/0.8015, allocations: 112.1 kB / 1.276 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004029/0.8019, allocations: 183.2 kB / 1.277 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006876/0.8026, allocations: 315.6 kB / 1.277 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.8026, allocations: 0 / 1.277 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009458/0.8035, allocations: 423.8 kB / 1.277 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 7.093e-05/0.8036, allocations: 89.05 kB / 1.277 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.8036, allocations: 3.984 kB / 1.277 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.489e-05/0.8036, allocations: 4 kB / 1.277 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/0.8039, allocations: 43.91 kB / 1.278 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.8039, allocations: 4 kB / 1.278 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003161/0.8042, allocations: 59.78 kB / 1.278 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.843e-05/0.8042, allocations: 16.06 kB / 1.278 GB, free: 11.76 MB / 0.9825 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.0001712/0.8044, allocations: 151.9 kB / 1.278 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.115e-05/0.8044, allocations: 23.84 kB / 1.278 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007646/0.8052, allocations: 260.4 kB / 1.278 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.8052, allocations: 4 kB / 1.278 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.8052, allocations: 0 / 1.278 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.8052, allocations: 0 / 1.278 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.8063, allocations: 0.5855 MB / 1.279 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.8063, allocations: 0 / 1.279 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001621/0.8064, allocations: 35.89 kB / 1.279 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.8065, allocations: 0 / 1.279 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/0.8065, allocations: 4 kB / 1.279 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.8065, allocations: 4 kB / 1.279 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.8065, allocations: 0 / 1.279 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007597/0.8072, allocations: 343.1 kB / 1.279 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.988e-05/0.8073, allocations: 96.95 kB / 1.279 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.473e-05/0.8074, allocations: 8 kB / 1.279 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/0.8077, allocations: 39.94 kB / 1.279 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.8078, allocations: 43.95 kB / 1.279 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.352e-05/0.8078, allocations: 19.98 kB / 1.279 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001346/0.8079, allocations: 140.2 kB / 1.279 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.8079, allocations: 0 / 1.279 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.00033/0.8083, allocations: 59.89 kB / 1.279 GB, free: 9.859 MB / 0.9825 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.001516/0.8098, allocations: 0.9984 MB / 1.28 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009056/0.8107, allocations: 405.9 kB / 1.281 GB, free: 8.402 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.8107, allocations: 0 / 1.281 GB, free: 8.402 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003611/0.8111, allocations: 112.1 kB / 1.281 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003802/0.8114, allocations: 43.94 kB / 1.281 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004276/0.8157, allocations: 2.597 MB / 1.283 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.8161, allocations: 0.7359 MB / 1.284 GB, free: 4.77 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001126/0.8162, allocations: 21.55 kB / 1.284 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.8164, allocations: 71.41 kB / 1.284 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of SimCode: time 8.42e-07/0.8164, allocations: 0 / 1.284 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0316/0.848, allocations: 5.244 MB / 1.289 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.393/9.241, allocations: 4.062 kB / 1.289 GB, free: 15.59 MB / 0.9981 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --stepSize=1 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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.285299926996231]