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) 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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004653/0.004653, allocations: 101.1 kB / 15.73 MB, free: 6.035 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.0009914/0.0009915, allocations: 186.8 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.279/1.279, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.616/2.616, allocations: 469.4 MB / 0.7421 GB, free: 7.605 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 71.88 kB / 1.064 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2902, allocations: 159.1 MB / 1.22 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003088/0.2934, allocations: 2.098 MB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0008672/0.2942, allocations: 0.5572 MB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.233e-05/0.2944, allocations: 4 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001089/0.2945, allocations: 23.67 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.748e-05/0.2946, allocations: 35.66 kB / 1.222 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002404/0.2948, allocations: 83.89 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002754/0.2951, allocations: 279.3 kB / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002262/0.2953, allocations: 114.9 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.2955, allocations: 107.6 kB / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001388/0.2956, allocations: 123.4 kB / 1.223 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.269e-05/0.2957, allocations: 24 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 3.707e-05/0.2957, allocations: 28 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.621e-05/0.2958, allocations: 55.83 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.901e-05/0.2959, allocations: 111.4 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002702/0.2961, allocations: 279.2 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2962, allocations: 0 / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2962, allocations: 4 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.66e-06/0.2962, allocations: 0 / 1.224 GB, free: 10.68 MB / 0.9825 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.00101/0.2972, allocations: 0.6448 MB / 1.224 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.2972, allocations: 12.03 kB / 1.224 GB, free: 9.949 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.531e-05/0.2973, allocations: 55.08 kB / 1.224 GB, free: 9.887 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.505e-05/0.2974, allocations: 28.66 kB / 1.224 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002945/0.2977, allocations: 256.5 kB / 1.225 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.085e-05/0.2977, allocations: 20.8 kB / 1.225 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/0.2978, allocations: 24.38 kB / 1.225 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005461/0.2983, allocations: 270.5 kB / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.2983, allocations: 4 kB / 1.225 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.2984, allocations: 11.98 kB / 1.225 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.2984, allocations: 4 kB / 1.225 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000593/0.299, allocations: 197.6 kB / 1.225 GB, free: 9.035 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009869/0.3, allocations: 0.6232 MB / 1.226 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007161/0.3007, allocations: 222.5 kB / 1.226 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002715/0.301, allocations: 88.78 kB / 1.226 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.188e-05/0.301, allocations: 0 / 1.226 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004377/0.3014, allocations: 188.7 kB / 1.226 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.643e-06/0.3015, allocations: 0 / 1.226 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18): time 0.0009483/0.3024, allocations: 338.6 kB / 1.226 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.178e-05/0.3025, allocations: 106.8 kB / 1.227 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/0.3027, allocations: 201.2 kB / 1.227 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.387e-05/0.3027, allocations: 45.64 kB / 1.227 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.935e-05/0.3028, allocations: 156 kB / 1.227 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.15e-05/0.3029, allocations: 55.42 kB / 1.227 GB, free: 6.91 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.282e-05/0.303, allocations: 57.7 kB / 1.227 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3031, allocations: 334.8 kB / 1.227 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003172/0.3034, allocations: 108.2 kB / 1.228 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003495/0.3038, allocations: 175.3 kB / 1.228 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005861/0.3044, allocations: 310.9 kB / 1.228 GB, free: 5.871 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3044, allocations: 0 / 1.228 GB, free: 5.871 MB / 0.9825 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008032/0.3052, allocations: 423.6 kB / 1.228 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.323e-05/0.3053, allocations: 93.03 kB / 1.228 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3053, allocations: 0 / 1.228 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.3053, allocations: 4 kB / 1.228 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.3055, allocations: 52.05 kB / 1.229 GB, free: 5.27 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.3055, allocations: 4 kB / 1.229 GB, free: 5.266 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002681/0.3058, allocations: 59.64 kB / 1.229 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.456e-05/0.3058, allocations: 12 kB / 1.229 GB, free: 5.195 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.0001381/0.3059, allocations: 152 kB / 1.229 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.855e-05/0.306, allocations: 19.75 kB / 1.229 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000673/0.3067, allocations: 265.1 kB / 1.229 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.3067, allocations: 0 / 1.229 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.3067, allocations: 0 / 1.229 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3067, allocations: 0 / 1.229 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009265/0.3076, allocations: 0.5802 MB / 1.23 GB, free: 4.121 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3076, allocations: 4 kB / 1.23 GB, free: 4.117 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.3078, allocations: 31.95 kB / 1.23 GB, free: 4.086 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3078, allocations: 0 / 1.23 GB, free: 4.086 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.3078, allocations: 8 kB / 1.23 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.3078, allocations: 7.984 kB / 1.23 GB, free: 4.07 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3078, allocations: 0 / 1.23 GB, free: 4.07 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006762/0.3085, allocations: 340.9 kB / 1.23 GB, free: 3.723 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.726e-05/0.3086, allocations: 104.8 kB / 1.23 GB, free: 3.602 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.388e-05/0.3086, allocations: 8 kB / 1.23 GB, free: 3.594 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002866/0.3089, allocations: 35.94 kB / 1.23 GB, free: 3.559 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.3091, allocations: 51.88 kB / 1.23 GB, free: 3.508 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.3091, allocations: 8 kB / 1.23 GB, free: 3.5 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001077/0.3092, allocations: 139.3 kB / 1.23 GB, free: 3.363 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3092, allocations: 0 / 1.23 GB, free: 3.363 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002918/0.3095, allocations: 59.84 kB / 1.23 GB, free: 3.305 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.001315/0.3108, allocations: 1.003 MB / 1.231 GB, free: 2.273 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007755/0.3116, allocations: 422.1 kB / 1.232 GB, free: 1.824 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3116, allocations: 3.938 kB / 1.232 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003225/0.312, allocations: 107.9 kB / 1.232 GB, free: 1.715 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003364/0.3123, allocations: 31.98 kB / 1.232 GB, free: 1.684 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/0.3159, allocations: 2.588 MB / 1.234 GB, free: 14.97 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.3162, allocations: 0.7359 MB / 1.235 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.633e-05/0.3163, allocations: 21.53 kB / 1.235 GB, free: 14.19 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.3164, allocations: 67.41 kB / 1.235 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of SimCode: time 2.6e-07/0.3164, allocations: 4 kB / 1.235 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02288/0.3393, allocations: 5.234 MB / 1.24 GB, free: 9.078 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.719/8.058, allocations: 20.92 kB / 1.24 GB, free: 9.059 MB / 0.9981 GB (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 --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --timeout=50 --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)