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.001789/0.001789, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002241/0.002241, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.371/1.371, allocations: 230.6 MB / 256 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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.936/2.936, allocations: 0.4892 GB / 0.7943 GB, free: 35.69 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.001981/0.001981, allocations: 67.69 kB / 1.153 GB, free: 25.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2946, allocations: 176.1 MB / 1.325 GB, free: 2.379 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003965/0.2986, allocations: 2.113 MB / 1.327 GB, free: 264 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001309/0.2999, allocations: 0.5961 MB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001585/0.3, allocations: 7.938 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.3002, allocations: 27.66 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001359/0.3003, allocations: 43.59 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.3006, allocations: 107.9 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003894/0.301, allocations: 291.3 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002579/0.3013, allocations: 102.4 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001957/0.3015, allocations: 119.6 kB / 1.328 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002092/0.3017, allocations: 127.4 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.426e-05/0.3018, allocations: 32 kB / 1.329 GB, free: 14.81 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.836e-05/0.3018, allocations: 28 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.29e-05/0.3019, allocations: 63.83 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.302, allocations: 107.4 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004032/0.3024, allocations: 326.6 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.3024, allocations: 4 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3024, allocations: 4 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.021e-05/0.3024, allocations: 3.938 kB / 1.329 GB, free: 14.29 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.001246/0.3037, allocations: 0.6045 MB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.3037, allocations: 8.031 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.804e-05/0.3038, allocations: 55.17 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.635e-05/0.3039, allocations: 36.75 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003842/0.3043, allocations: 206.7 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/0.3043, allocations: 20.81 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.532e-05/0.3044, allocations: 28.36 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007215/0.3051, allocations: 384.4 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.3051, allocations: 4 kB / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.477e-05/0.3051, allocations: 4 kB / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.3051, allocations: 12 kB / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006953/0.3058, allocations: 209.6 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001241/0.3071, allocations: 0.5845 MB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006804/0.3077, allocations: 198.3 kB / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003167/0.3081, allocations: 92.78 kB / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.046e-05/0.3081, allocations: 0 / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005313/0.3086, allocations: 208.3 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.532e-06/0.3086, allocations: 0 / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.001157/0.3098, allocations: 347.1 kB / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.3099, allocations: 140.5 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/0.3101, allocations: 227.7 kB / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.872e-05/0.3102, allocations: 41.69 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.3103, allocations: 168.9 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.761e-05/0.3104, allocations: 59.55 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.3105, allocations: 69.97 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3107, allocations: 334.8 kB / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004398/0.3111, allocations: 197.3 kB / 1.333 GB, free: 9.832 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005287/0.3116, allocations: 355 kB / 1.334 GB, free: 9.422 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000712/0.3123, allocations: 318.5 kB / 1.334 GB, free: 9.074 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3123, allocations: 0 / 1.334 GB, free: 9.074 MB / 1.029 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00104/0.3134, allocations: 0.521 MB / 1.334 GB, free: 8.512 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.066e-05/0.3135, allocations: 86.83 kB / 1.334 GB, free: 8.41 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.3135, allocations: 0 / 1.334 GB, free: 8.41 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.3135, allocations: 4 kB / 1.334 GB, free: 8.406 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002462/0.3137, allocations: 56.05 kB / 1.334 GB, free: 8.352 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.3137, allocations: 3.938 kB / 1.334 GB, free: 8.348 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003415/0.3141, allocations: 71.77 kB / 1.335 GB, free: 8.277 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.3141, allocations: 12 kB / 1.335 GB, free: 8.266 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.0001853/0.3143, allocations: 152.4 kB / 1.335 GB, free: 8.105 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.82e-05/0.3143, allocations: 23.8 kB / 1.335 GB, free: 8.082 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007913/0.3151, allocations: 280.9 kB / 1.335 GB, free: 7.805 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.3151, allocations: 0 / 1.335 GB, free: 7.805 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3151, allocations: 0 / 1.335 GB, free: 7.805 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3151, allocations: 0 / 1.335 GB, free: 7.805 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.3163, allocations: 0.5831 MB / 1.336 GB, free: 7.172 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3163, allocations: 0 / 1.336 GB, free: 7.172 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001625/0.3164, allocations: 31.95 kB / 1.336 GB, free: 7.141 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3164, allocations: 0 / 1.336 GB, free: 7.141 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.3165, allocations: 11.98 kB / 1.336 GB, free: 7.129 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.3165, allocations: 4 kB / 1.336 GB, free: 7.125 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3165, allocations: 3.938 kB / 1.336 GB, free: 7.121 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007911/0.3173, allocations: 353.1 kB / 1.336 GB, free: 6.762 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.145e-05/0.3173, allocations: 27.78 kB / 1.336 GB, free: 6.734 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.159e-05/0.3174, allocations: 16 kB / 1.336 GB, free: 6.719 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003015/0.3177, allocations: 47.94 kB / 1.336 GB, free: 6.672 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.3178, allocations: 51.91 kB / 1.336 GB, free: 6.621 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.3178, allocations: 7.984 kB / 1.336 GB, free: 6.613 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001474/0.318, allocations: 152.7 kB / 1.336 GB, free: 6.465 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.318, allocations: 0 / 1.336 GB, free: 6.465 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003126/0.3183, allocations: 59.89 kB / 1.336 GB, free: 6.406 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.001534/0.3198, allocations: 1.038 MB / 1.337 GB, free: 5.34 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0009724/0.3208, allocations: 0.5033 MB / 1.338 GB, free: 4.781 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3208, allocations: 0 / 1.338 GB, free: 4.781 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003909/0.3212, allocations: 116.2 kB / 1.338 GB, free: 4.668 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003704/0.3215, allocations: 36.14 kB / 1.338 GB, free: 4.637 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004719/0.3263, allocations: 3.097 MB / 1.341 GB, free: 1.332 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001368/0.3264, allocations: 138.2 kB / 1.341 GB, free: 1.18 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001209/0.3265, allocations: 21.95 kB / 1.341 GB, free: 1.16 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.3267, allocations: 83.39 kB / 1.341 GB, free: 1.082 MB / 1.029 GB Notification: Performance of SimCode: time 7.12e-07/0.3267, allocations: 0 / 1.341 GB, free: 1.082 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03625/0.3629, allocations: 6.799 MB / 1.348 GB, free: 10.46 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.1, allocations: 11.28 kB / 1.348 GB, free: 10.46 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: 17.158397892024368]