Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.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.001403/0.001403, allocations: 119.6 kB / 17.16 MB, free: 5.914 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.001435/0.001435, allocations: 211 kB / 20.13 MB, free: 2.969 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.569/1.569, allocations: 230.6 MB / 253.5 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1044/0.1044, allocations: 22.93 MB / 332.5 MB, free: 2.621 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES 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.002071/0.002071, allocations: 71.86 kB / 466.8 MB, free: 32.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1173, allocations: 59.27 MB / 0.5137 GB, free: 13.98 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT): time 0.04357/0.1608, allocations: 22.96 MB / 0.5361 GB, free: 7.129 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00189/0.1627, allocations: 0.717 MB / 0.5368 GB, free: 6.406 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002405/0.163, allocations: 7.938 kB / 0.5368 GB, free: 6.398 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002159/0.1632, allocations: 35.64 kB / 0.5369 GB, free: 6.363 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003158/0.1635, allocations: 115.2 kB / 0.537 GB, free: 6.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004338/0.1639, allocations: 99.73 kB / 0.5371 GB, free: 6.152 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005997/0.1645, allocations: 419.1 kB / 0.5375 GB, free: 5.742 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004153/0.1649, allocations: 215.9 kB / 0.5377 GB, free: 5.531 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003854/0.1653, allocations: 171.5 kB / 0.5378 GB, free: 5.363 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003966/0.1657, allocations: 235.2 kB / 0.5381 GB, free: 5.133 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.433e-05/0.1658, allocations: 36 kB / 0.5381 GB, free: 5.098 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.533e-05/0.1659, allocations: 40 kB / 0.5381 GB, free: 5.059 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.1661, allocations: 119.7 kB / 0.5382 GB, free: 4.941 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002394/0.1663, allocations: 203.1 kB / 0.5384 GB, free: 4.742 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005606/0.1669, allocations: 458.3 kB / 0.5389 GB, free: 4.293 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1669, allocations: 0 / 0.5389 GB, free: 4.293 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1669, allocations: 0 / 0.5389 GB, free: 4.293 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.046e-05/0.1669, allocations: 0 / 0.5389 GB, free: 4.293 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001685/0.1686, allocations: 0.6934 MB / 0.5396 GB, free: 3.551 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.1686, allocations: 12.62 kB / 0.5396 GB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.161e-05/0.1686, allocations: 8.75 kB / 0.5396 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.96e-05/0.1687, allocations: 58.73 kB / 0.5396 GB, free: 3.465 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.335e-05/0.1688, allocations: 40.7 kB / 0.5397 GB, free: 3.426 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004572/0.1693, allocations: 306.7 kB / 0.54 GB, free: 3.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.722e-05/0.1693, allocations: 20.94 kB / 0.54 GB, free: 3.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.293e-05/0.1694, allocations: 36.06 kB / 0.54 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007652/0.1701, allocations: 336.7 kB / 0.5403 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.1701, allocations: 0 / 0.5403 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.976e-05/0.1702, allocations: 16 kB / 0.5404 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.1702, allocations: 8 kB / 0.5404 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00082/0.171, allocations: 334 kB / 0.5407 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002379/0.1734, allocations: 1.253 MB / 0.5419 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000623/0.174, allocations: 267.4 kB / 0.5422 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004953/0.1745, allocations: 213.2 kB / 0.5424 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.246e-05/0.1746, allocations: 12.22 kB / 0.5424 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.1746, allocations: 38.73 kB / 0.5424 GB, free: 456 kB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.703e-06/0.1746, allocations: 0 / 0.5424 GB, free: 456 kB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.005502/0.1801, allocations: 1.964 MB / 0.5443 GB, free: 14.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.1802, allocations: 59.39 kB / 0.5444 GB, free: 14.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003656/0.1805, allocations: 250.6 kB / 0.5446 GB, free: 14 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.252e-05/0.1806, allocations: 33.7 kB / 0.5447 GB, free: 13.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.1807, allocations: 176.7 kB / 0.5448 GB, free: 13.78 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.1808, allocations: 103.1 kB / 0.5449 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.181, allocations: 61.69 kB / 0.545 GB, free: 13.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.1812, allocations: 334.8 kB / 0.5453 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005089/0.1817, allocations: 191.9 kB / 0.5455 GB, free: 13.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005276/0.1822, allocations: 222 kB / 0.5457 GB, free: 12.87 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $DER.tube.w = 0.0 (if time < w.startTime then 0.0 else if time < w.startTime + w.duration then w.height * w.duration / w.duration ^ 2.0 else 0.0 = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.001936/0.1841, allocations: 0.6628 MB / 0.5463 GB, free: 12.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.1841, allocations: 0 / 0.5463 GB, free: 12.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001831/0.186, allocations: 0.6377 MB / 0.547 GB, free: 11.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.186, allocations: 4 kB / 0.547 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.186, allocations: 4 kB / 0.547 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008644/0.1869, allocations: 180.1 kB / 0.5471 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006254/0.1875, allocations: 95.86 kB / 0.5472 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007516/0.195, allocations: 7.59 MB / 0.5546 GB, free: 2.898 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004654/0.1955, allocations: 32 kB / 0.5547 GB, free: 2.867 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.645e-05/0.1955, allocations: 7.984 kB / 0.5547 GB, free: 2.859 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.tube.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003577/0.1959, allocations: 169.4 kB / 0.5548 GB, free: 2.688 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.492e-05/0.196, allocations: 31.75 kB / 0.5549 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001693/0.1977, allocations: 0.606 MB / 0.5555 GB, free: 2.031 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.1977, allocations: 0 / 0.5555 GB, free: 2.031 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.1977, allocations: 4 kB / 0.5555 GB, free: 2.027 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.1977, allocations: 7.984 kB / 0.5555 GB, free: 2.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006414/0.1983, allocations: 441.2 kB / 0.5559 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1983, allocations: 0 / 0.5559 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006232/0.199, allocations: 100 kB / 0.556 GB, free: 1.441 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005711/0.1995, allocations: 148.1 kB / 0.5561 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.974e-05/0.1996, allocations: 11.98 kB / 0.5562 GB, free: 1.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006653/0.2062, allocations: 7.2 MB / 0.5632 GB, free: 9.371 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.2062, allocations: 3.938 kB / 0.5632 GB, free: 9.367 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002337/0.2086, allocations: 0.8979 MB / 0.5641 GB, free: 8.438 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.2087, allocations: 100.9 kB / 0.5642 GB, free: 8.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.958e-05/0.2087, allocations: 11.94 kB / 0.5642 GB, free: 8.309 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003414/0.2091, allocations: 31.95 kB / 0.5642 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.2092, allocations: 31.95 kB / 0.5642 GB, free: 8.246 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-05/0.2093, allocations: 4 kB / 0.5642 GB, free: 8.242 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002331/0.2095, allocations: 194 kB / 0.5644 GB, free: 8.055 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2095, allocations: 0 / 0.5644 GB, free: 8.055 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005515/0.21, allocations: 116 kB / 0.5645 GB, free: 7.941 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002572/0.2126, allocations: 1.451 MB / 0.5659 GB, free: 6.449 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002054/0.2147, allocations: 1.005 MB / 0.5669 GB, free: 5.379 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2147, allocations: 0 / 0.5669 GB, free: 5.379 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001313/0.216, allocations: 0.7863 MB / 0.5677 GB, free: 4.527 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005546/0.2165, allocations: 79.45 kB / 0.5678 GB, free: 4.453 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009588/0.2261, allocations: 4.435 MB / 0.5721 GB, free: 15.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004738/0.2266, allocations: 0.7918 MB / 0.5729 GB, free: 15.08 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002289/0.2268, allocations: 50.95 kB / 0.5729 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.227, allocations: 99.41 kB / 0.573 GB, free: 14.94 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.227, allocations: 0 / 0.573 GB, free: 14.94 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04185/0.2689, allocations: 9.558 MB / 0.5824 GB, free: 5.504 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.08, allocations: 13.5 kB / 0.5824 GB, free: 5.492 MB / 446.1 MB " [Timeout remaining time 649] (rm -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT_fmu --startTime=0 --stopTime=1.5e+06 --stepSize=1500 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT.fmu > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.288062163977884] Failed to read output from testmodel.py, exit status != 0: 11.235816658998374 11.471310744 11.301725326 Calling exit ...