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.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.001528/0.001528, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001653/0.001653, allocations: 216.4 kB / 23.03 MB, free: 4.922 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.333/1.333, allocations: 230.6 MB / 256.8 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.939/2.939, allocations: 0.5003 GB / 0.8062 GB, free: 28.31 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="cs",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="cs",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.001829/0.001829, allocations: 66.8 kB / 1.171 GB, free: 19.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2948, allocations: 179 MB / 1.345 GB, free: 15.95 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003317/0.2981, allocations: 2.091 MB / 1.347 GB, free: 13.84 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001013/0.2991, allocations: 0.5845 MB / 1.348 GB, free: 13.25 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.935e-05/0.2992, allocations: 3.938 kB / 1.348 GB, free: 13.25 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.2993, allocations: 27.66 kB / 1.348 GB, free: 13.22 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.508e-05/0.2994, allocations: 39.66 kB / 1.348 GB, free: 13.18 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.2997, allocations: 103.8 kB / 1.348 GB, free: 13.08 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003217/0.3, allocations: 279.4 kB / 1.348 GB, free: 12.8 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.3002, allocations: 107.5 kB / 1.348 GB, free: 12.7 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.3004, allocations: 115.6 kB / 1.349 GB, free: 12.59 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001677/0.3005, allocations: 139.4 kB / 1.349 GB, free: 12.45 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.114e-05/0.3006, allocations: 28 kB / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.446e-05/0.3006, allocations: 28 kB / 1.349 GB, free: 12.39 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.157e-05/0.3007, allocations: 63.77 kB / 1.349 GB, free: 12.33 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.3008, allocations: 103.5 kB / 1.349 GB, free: 12.23 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003313/0.3012, allocations: 302.7 kB / 1.349 GB, free: 11.93 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3012, allocations: 3.984 kB / 1.349 GB, free: 11.93 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3012, allocations: 4 kB / 1.349 GB, free: 11.93 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.3012, allocations: 4 kB / 1.349 GB, free: 11.92 MB / 1.045 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.00113/0.3023, allocations: 0.5965 MB / 1.35 GB, free: 11.28 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.3023, allocations: 8.031 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.69e-05/0.3024, allocations: 12.62 kB / 1.35 GB, free: 11.26 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.966e-05/0.3025, allocations: 71.09 kB / 1.35 GB, free: 11.18 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.848e-05/0.3025, allocations: 32.75 kB / 1.35 GB, free: 11.15 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.3029, allocations: 203.5 kB / 1.35 GB, free: 10.92 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/0.3029, allocations: 24.75 kB / 1.35 GB, free: 10.9 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.565e-05/0.303, allocations: 24.12 kB / 1.35 GB, free: 10.88 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000687/0.3037, allocations: 380.5 kB / 1.351 GB, free: 10.46 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.3037, allocations: 0 / 1.351 GB, free: 10.46 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.262e-05/0.3037, allocations: 19.98 kB / 1.351 GB, free: 10.45 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-06/0.3037, allocations: 4 kB / 1.351 GB, free: 10.44 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000664/0.3044, allocations: 213.6 kB / 1.351 GB, free: 10.23 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/0.3056, allocations: 0.5831 MB / 1.351 GB, free: 9.605 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006716/0.3062, allocations: 218.4 kB / 1.352 GB, free: 9.383 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003223/0.3066, allocations: 100.7 kB / 1.352 GB, free: 9.281 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.03e-05/0.3066, allocations: 4 kB / 1.352 GB, free: 9.277 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005178/0.3071, allocations: 212 kB / 1.352 GB, free: 9.059 MB / 1.045 GB Notification: Performance of pre-optimization done (n=24): time 1.924e-06/0.3071, allocations: 0 / 1.352 GB, free: 9.059 MB / 1.045 GB Notification: Performance of matching and sorting (n=26): time 0.001719/0.3088, allocations: 0.5409 MB / 1.352 GB, free: 8.516 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.03e-05/0.3089, allocations: 118.8 kB / 1.352 GB, free: 8.375 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002251/0.3092, allocations: 222.6 kB / 1.353 GB, free: 8.145 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.073e-05/0.3092, allocations: 37.7 kB / 1.353 GB, free: 8.102 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.3093, allocations: 156.8 kB / 1.353 GB, free: 7.945 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.3095, allocations: 75.42 kB / 1.353 GB, free: 7.871 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001339/0.3096, allocations: 81.95 kB / 1.353 GB, free: 7.781 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.3097, allocations: 334.8 kB / 1.353 GB, free: 7.445 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004322/0.3102, allocations: 205.3 kB / 1.354 GB, free: 7.227 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000528/0.3107, allocations: 328.9 kB / 1.354 GB, free: 6.852 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007211/0.3114, allocations: 334.6 kB / 1.354 GB, free: 6.488 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3114, allocations: 0 / 1.354 GB, free: 6.488 MB / 1.045 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00103/0.3125, allocations: 0.5433 MB / 1.355 GB, free: 5.902 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 7.233e-05/0.3125, allocations: 89.09 kB / 1.355 GB, free: 5.797 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.996e-05/0.3125, allocations: 4 kB / 1.355 GB, free: 5.793 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.3126, allocations: 0 / 1.355 GB, free: 5.793 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002723/0.3128, allocations: 59.89 kB / 1.355 GB, free: 5.734 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.3128, allocations: 4 kB / 1.355 GB, free: 5.73 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003023/0.3131, allocations: 52 kB / 1.355 GB, free: 5.68 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.929e-05/0.3132, allocations: 12 kB / 1.355 GB, free: 5.668 MB / 1.045 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,ySetOn.y,$PRE.ySetOn.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,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 (40): * Single equations (assignments): 37 * 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.0001699/0.3133, allocations: 151.9 kB / 1.355 GB, free: 5.508 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.291e-05/0.3134, allocations: 35.78 kB / 1.355 GB, free: 5.473 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008097/0.3142, allocations: 299.5 kB / 1.355 GB, free: 5.18 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.3142, allocations: 4 kB / 1.355 GB, free: 5.176 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.3142, allocations: 3.984 kB / 1.355 GB, free: 5.172 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.3142, allocations: 3.938 kB / 1.355 GB, free: 5.168 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001363/0.3156, allocations: 0.6815 MB / 1.356 GB, free: 4.426 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3156, allocations: 0 / 1.356 GB, free: 4.426 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.3158, allocations: 51.83 kB / 1.356 GB, free: 4.375 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.201e-06/0.3158, allocations: 4 kB / 1.356 GB, free: 4.371 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.629e-05/0.3158, allocations: 11.98 kB / 1.356 GB, free: 4.359 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.3158, allocations: 4 kB / 1.356 GB, free: 4.355 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3158, allocations: 0 / 1.356 GB, free: 4.355 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007978/0.3166, allocations: 415 kB / 1.357 GB, free: 3.922 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 3.407e-05/0.3166, allocations: 19.86 kB / 1.357 GB, free: 3.902 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.839e-05/0.3167, allocations: 11.98 kB / 1.357 GB, free: 3.891 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003039/0.317, allocations: 51.94 kB / 1.357 GB, free: 3.84 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.3171, allocations: 55.84 kB / 1.357 GB, free: 3.785 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.023e-05/0.3171, allocations: 12 kB / 1.357 GB, free: 3.773 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001529/0.3173, allocations: 143.2 kB / 1.357 GB, free: 3.633 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3173, allocations: 0 / 1.357 GB, free: 3.633 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003147/0.3176, allocations: 59.98 kB / 1.357 GB, free: 3.574 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 (antFre.errAndSetOn.y,$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,ySetOn.y) * Number of discrete states: 7 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,ySetOn.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 19 * 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.001607/0.3192, allocations: 1.084 MB / 1.358 GB, free: 2.449 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009477/0.3202, allocations: 0.5231 MB / 1.358 GB, free: 1.871 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3202, allocations: 4 kB / 1.358 GB, free: 1.867 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0004358/0.3206, allocations: 144.4 kB / 1.359 GB, free: 1.727 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003832/0.321, allocations: 35.98 kB / 1.359 GB, free: 1.691 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004598/0.3256, allocations: 3.204 MB / 1.362 GB, free: 14.26 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000134/0.3257, allocations: 130.2 kB / 1.362 GB, free: 14.12 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001201/0.3258, allocations: 33.92 kB / 1.362 GB, free: 14.08 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.326, allocations: 87.39 kB / 1.362 GB, free: 14 MB / 1.061 GB Notification: Performance of SimCode: time 4.81e-07/0.326, allocations: 4 kB / 1.362 GB, free: 13.99 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02747/0.3535, allocations: 6.532 MB / 1.368 GB, free: 7.676 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.38, allocations: 0 / 1.368 GB, free: 7.676 MB / 1.061 GB " [Timeout remaining time 288] (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 -r=Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --stepSize=1 --timeout=800 --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) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 17.39006728399545] Failed to read output from testmodel.py, exit status != 0: 11.53684943006374 11.552691627 11.248511788 Calling exit ...