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.001546/0.001546, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001629/0.001629, allocations: 212.7 kB / 23.04 MB, free: 5.074 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.362/1.362, allocations: 230.6 MB / 256.8 MB, free: 8 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.907/2.907, allocations: 0.49 GB / 0.7959 GB, free: 33.38 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="cs",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="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.001874/0.001874, allocations: 65.23 kB / 1.155 GB, free: 25.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2878, allocations: 176.1 MB / 1.327 GB, free: 1.922 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003346/0.2911, allocations: 2.202 MB / 1.329 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001101/0.2922, allocations: 0.6273 MB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.2924, allocations: 7.938 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001215/0.2925, allocations: 23.67 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001033/0.2926, allocations: 43.59 kB / 1.33 GB, free: 15 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.2929, allocations: 99.88 kB / 1.33 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003457/0.2932, allocations: 307.2 kB / 1.33 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000237/0.2934, allocations: 91.88 kB / 1.33 GB, free: 14.51 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.2936, allocations: 127.5 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001717/0.2938, allocations: 139.4 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.364e-05/0.2938, allocations: 35.98 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.003e-05/0.2939, allocations: 28 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.352e-05/0.2939, allocations: 59.83 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.2941, allocations: 139.2 kB / 1.331 GB, free: 13.99 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003669/0.2944, allocations: 314.8 kB / 1.331 GB, free: 13.68 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2944, allocations: 0 / 1.331 GB, free: 13.68 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2944, allocations: 0 / 1.331 GB, free: 13.68 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.452e-06/0.2944, allocations: 0 / 1.331 GB, free: 13.68 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.00121/0.2957, allocations: 0.6123 MB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.2957, allocations: 15.91 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.252e-05/0.2957, allocations: 12.62 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.132e-05/0.2958, allocations: 55.17 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.739e-05/0.2959, allocations: 40.73 kB / 1.332 GB, free: 12.89 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003672/0.2963, allocations: 206.7 kB / 1.332 GB, free: 12.66 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.2963, allocations: 16.81 kB / 1.332 GB, free: 12.65 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.387e-05/0.2963, allocations: 32.06 kB / 1.332 GB, free: 12.62 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000701/0.297, allocations: 315.4 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.2971, allocations: 0 / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.905e-05/0.2971, allocations: 8 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.2971, allocations: 4 kB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000713/0.2978, allocations: 221.6 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001268/0.2991, allocations: 0.6611 MB / 1.333 GB, free: 11.36 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007104/0.2998, allocations: 218.3 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003424/0.3001, allocations: 100.8 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.36e-05/0.3001, allocations: 4 kB / 1.333 GB, free: 11.03 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005382/0.3007, allocations: 216 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of pre-optimization done (n=24): time 2.234e-06/0.3007, allocations: 0 / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of matching and sorting (n=26): time 0.001745/0.3024, allocations: 0.5443 MB / 1.334 GB, free: 10.26 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.452e-05/0.3025, allocations: 136.5 kB / 1.334 GB, free: 10.1 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002286/0.3028, allocations: 223.8 kB / 1.334 GB, free: 9.867 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.553e-05/0.3028, allocations: 41.7 kB / 1.334 GB, free: 9.82 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.3029, allocations: 168.6 kB / 1.335 GB, free: 9.652 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.717e-05/0.303, allocations: 79.36 kB / 1.335 GB, free: 9.574 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.3031, allocations: 74 kB / 1.335 GB, free: 9.492 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3033, allocations: 338.8 kB / 1.335 GB, free: 9.152 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004005/0.3037, allocations: 124.2 kB / 1.335 GB, free: 9.031 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004421/0.3041, allocations: 200.5 kB / 1.335 GB, free: 8.805 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007216/0.3048, allocations: 327 kB / 1.336 GB, free: 8.449 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3048, allocations: 0 / 1.336 GB, free: 8.449 MB / 1.029 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001005/0.3058, allocations: 475.3 kB / 1.336 GB, free: 7.961 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.602e-05/0.3059, allocations: 93.09 kB / 1.336 GB, free: 7.852 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3059, allocations: 4 kB / 1.336 GB, free: 7.848 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.3059, allocations: 4.156 kB / 1.336 GB, free: 7.844 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002722/0.3062, allocations: 55.89 kB / 1.336 GB, free: 7.789 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.3062, allocations: 3.938 kB / 1.336 GB, free: 7.785 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003332/0.3065, allocations: 55.94 kB / 1.336 GB, free: 7.73 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.11e-05/0.3066, allocations: 20 kB / 1.336 GB, free: 7.711 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 (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.0001823/0.3068, allocations: 159 kB / 1.336 GB, free: 7.547 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.418e-05/0.3068, allocations: 23.8 kB / 1.336 GB, free: 7.523 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008451/0.3077, allocations: 303.6 kB / 1.337 GB, free: 7.223 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.3077, allocations: 8 kB / 1.337 GB, free: 7.215 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3077, allocations: 0 / 1.337 GB, free: 7.215 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3077, allocations: 0 / 1.337 GB, free: 7.215 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001425/0.3091, allocations: 0.721 MB / 1.337 GB, free: 6.434 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.634e-06/0.3091, allocations: 4 kB / 1.337 GB, free: 6.43 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.3093, allocations: 39.89 kB / 1.338 GB, free: 6.391 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.3093, allocations: 4 kB / 1.338 GB, free: 6.387 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/0.3093, allocations: 11.98 kB / 1.338 GB, free: 6.375 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.3093, allocations: 4.062 kB / 1.338 GB, free: 6.371 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3093, allocations: 8 kB / 1.338 GB, free: 6.363 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008351/0.3102, allocations: 412.2 kB / 1.338 GB, free: 5.934 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.807e-05/0.3102, allocations: 23.86 kB / 1.338 GB, free: 5.91 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.802e-05/0.3102, allocations: 11.98 kB / 1.338 GB, free: 5.898 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003202/0.3106, allocations: 47.94 kB / 1.338 GB, free: 5.852 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.3107, allocations: 67.83 kB / 1.338 GB, free: 5.785 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-05/0.3107, allocations: 15.97 kB / 1.338 GB, free: 5.77 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001314/0.3109, allocations: 153 kB / 1.338 GB, free: 5.621 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3109, allocations: 0 / 1.338 GB, free: 5.621 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003311/0.3112, allocations: 56 kB / 1.338 GB, free: 5.566 MB / 1.029 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.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 (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.001581/0.3128, allocations: 1.093 MB / 1.339 GB, free: 4.434 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0009391/0.3137, allocations: 445.1 kB / 1.34 GB, free: 3.965 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.3137, allocations: 4 kB / 1.34 GB, free: 3.961 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0004591/0.3142, allocations: 151.8 kB / 1.34 GB, free: 3.812 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.3146, allocations: 38.36 kB / 1.34 GB, free: 3.777 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004517/0.3191, allocations: 2.915 MB / 1.343 GB, free: 0.707 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.3195, allocations: 0.7518 MB / 1.344 GB, free: 15.93 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001224/0.3196, allocations: 29.94 kB / 1.344 GB, free: 15.9 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001627/0.3198, allocations: 87.41 kB / 1.344 GB, free: 15.82 MB / 1.045 GB Notification: Performance of SimCode: time 8.41e-07/0.3198, allocations: 0 / 1.344 GB, free: 15.82 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02803/0.3478, allocations: 6.609 MB / 1.35 GB, free: 9.383 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.02, allocations: 7.562 kB / 1.35 GB, free: 9.379 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] [Calling os._exit(0), Time elapsed: 17.00422584504122] Failed to read output from testmodel.py, exit status != 0: 11.168942693970166 11.183566363 10.886302392 Calling exit ...