Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 110.4 kB / 18.94 MB, free: 2.953 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 215.1 kB / 22.25 MB, free: 5.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.314/1.314, allocations: 230.6 MB / 256 MB, free: 7.977 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.887/2.887, allocations: 0.49 GB / 0.7951 GB, free: 33.46 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="Buildings_12_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_12_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 71.97 kB / 1.154 GB, free: 25.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2938, allocations: 176.1 MB / 1.326 GB, free: 1.906 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003688/0.2975, allocations: 2.196 MB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00118/0.2987, allocations: 0.6273 MB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.2989, allocations: 7.875 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.299, allocations: 31.66 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001221/0.2991, allocations: 43.59 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002966/0.2994, allocations: 103.9 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.00038/0.2998, allocations: 295.3 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002485/0.3, allocations: 95.88 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001878/0.3002, allocations: 127.5 kB / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001947/0.3004, allocations: 139.4 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.582e-05/0.3005, allocations: 28 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.525e-05/0.3005, allocations: 32 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.181e-05/0.3006, allocations: 63.77 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.3007, allocations: 135.3 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004092/0.3011, allocations: 322.7 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3011, allocations: 3.938 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3012, allocations: 4 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.32e-05/0.3012, allocations: 0 / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001208/0.3024, allocations: 0.5967 MB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.3024, allocations: 12.03 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/0.3025, allocations: 63.16 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.153e-05/0.3026, allocations: 36.75 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003809/0.303, allocations: 202.7 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.787e-05/0.303, allocations: 20.75 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.233e-05/0.303, allocations: 28.38 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006601/0.3037, allocations: 311.3 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.3037, allocations: 0 / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.435e-05/0.3037, allocations: 4 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.3037, allocations: 8 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006735/0.3044, allocations: 217.6 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001246/0.3057, allocations: 0.6351 MB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000652/0.3063, allocations: 208.5 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000298/0.3066, allocations: 88.78 kB / 1.332 GB, free: 11.1 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.3066, allocations: 8 kB / 1.332 GB, free: 11.09 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004791/0.3071, allocations: 200.8 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.533e-06/0.3071, allocations: 0 / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.00106/0.3082, allocations: 347 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.807e-05/0.3083, allocations: 136.5 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002275/0.3085, allocations: 227.7 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/0.3085, allocations: 41.7 kB / 1.333 GB, free: 10.1 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.3087, allocations: 164.9 kB / 1.334 GB, free: 9.934 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.465e-05/0.3087, allocations: 59.62 kB / 1.334 GB, free: 9.875 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.3089, allocations: 69.92 kB / 1.334 GB, free: 9.797 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001529/0.309, allocations: 334.8 kB / 1.334 GB, free: 9.461 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003653/0.3094, allocations: 116.2 kB / 1.334 GB, free: 9.348 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004092/0.3098, allocations: 189 kB / 1.334 GB, free: 9.137 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006738/0.3105, allocations: 318.4 kB / 1.335 GB, free: 8.789 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.3105, allocations: 0 / 1.335 GB, free: 8.789 MB / 1.029 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009187/0.3114, allocations: 440.4 kB / 1.335 GB, free: 8.336 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.087e-05/0.3114, allocations: 93.09 kB / 1.335 GB, free: 8.227 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3115, allocations: 4 kB / 1.335 GB, free: 8.223 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.3115, allocations: 0 / 1.335 GB, free: 8.223 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/0.3117, allocations: 52.05 kB / 1.335 GB, free: 8.172 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.3117, allocations: 4 kB / 1.335 GB, free: 8.168 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003207/0.312, allocations: 67.72 kB / 1.335 GB, free: 8.102 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.3121, allocations: 12 kB / 1.335 GB, free: 8.09 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 28 (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,antFre.errAndSetOn.y,antFre.ySetOn.y,$PRE.antFre.ySetOn.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 (34): * Single equations (assignments): 31 * 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.0001609/0.3122, allocations: 160.4 kB / 1.335 GB, free: 7.922 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.24e-05/0.3123, allocations: 27.8 kB / 1.335 GB, free: 7.895 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007419/0.313, allocations: 267.3 kB / 1.336 GB, free: 7.629 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.313, allocations: 0 / 1.336 GB, free: 7.629 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.313, allocations: 4 kB / 1.336 GB, free: 7.625 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.313, allocations: 8 kB / 1.336 GB, free: 7.617 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.3141, allocations: 0.6039 MB / 1.336 GB, free: 6.965 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3141, allocations: 3.938 kB / 1.336 GB, free: 6.961 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001543/0.3142, allocations: 35.95 kB / 1.336 GB, free: 6.926 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3142, allocations: 0 / 1.336 GB, free: 6.926 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.156e-05/0.3143, allocations: 8 kB / 1.336 GB, free: 6.918 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.69e-06/0.3143, allocations: 7.922 kB / 1.336 GB, free: 6.91 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3143, allocations: 0 / 1.336 GB, free: 6.91 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007181/0.315, allocations: 361 kB / 1.337 GB, free: 6.543 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.243e-05/0.315, allocations: 19.86 kB / 1.337 GB, free: 6.523 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.997e-05/0.3151, allocations: 11.98 kB / 1.337 GB, free: 6.512 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002934/0.3154, allocations: 47.94 kB / 1.337 GB, free: 6.465 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.3155, allocations: 51.91 kB / 1.337 GB, free: 6.414 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.3155, allocations: 8 kB / 1.337 GB, free: 6.406 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001304/0.3156, allocations: 152.6 kB / 1.337 GB, free: 6.258 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3156, allocations: 0 / 1.337 GB, free: 6.258 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003084/0.3159, allocations: 67.88 kB / 1.337 GB, free: 6.191 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 (antFre.errAndSetOn.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,antFre.disErr.y,antFre.ySetOn.y,antFre.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count) * Number of discrete states: 7 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,antFre.ySetOn.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 13 * 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.001424/0.3174, allocations: 1.019 MB / 1.338 GB, free: 5.145 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00087/0.3182, allocations: 426.4 kB / 1.338 GB, free: 4.691 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3182, allocations: 0 / 1.338 GB, free: 4.691 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003535/0.3186, allocations: 115.8 kB / 1.338 GB, free: 4.578 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.3189, allocations: 40.27 kB / 1.339 GB, free: 4.539 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.3233, allocations: 2.76 MB / 1.341 GB, free: 1.648 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00038/0.3237, allocations: 0.744 MB / 1.342 GB, free: 0.8789 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001096/0.3238, allocations: 25.94 kB / 1.342 GB, free: 0.8555 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.3239, allocations: 87.39 kB / 1.342 GB, free: 0.7734 MB / 1.029 GB Notification: Performance of SimCode: time 7.22e-07/0.3239, allocations: 0 / 1.342 GB, free: 0.7734 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03491/0.3589, allocations: 6.187 MB / 1.348 GB, free: 10.73 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/10.77, allocations: 3.5 kB / 1.348 GB, free: 10.73 MB / 1.045 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --stepSize=1 --timeout=400 --tolerance=1e-08 Buildings_12_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 16.622203627834097]