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.0008565/0.0008565, allocations: 72.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.0008424/0.0008424, allocations: 169.2 kB / 23.23 MB, free: 1.328 MB / 18.57 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 0.8871/0.8871, allocations: 177.1 MB / 203.5 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] 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.06125/0.06125, allocations: 18.13 MB / 278.1 MB, free: 11.54 MB / 266.7 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 415.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.176e-05/2.38e-05, allocations: 2.984 kB / 415.1 MB, free: 12.7 MB / 330.7 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.02665/0.02667, allocations: 23.48 MB / 438.5 MB, free: 15.6 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001542/0.02822, allocations: 0.6793 MB / 439.2 MB, free: 14.99 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.02839, allocations: 0 / 439.2 MB, free: 14.99 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.02855, allocations: 47.28 kB / 439.3 MB, free: 14.95 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002327/0.02878, allocations: 115.8 kB / 439.4 MB, free: 14.86 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004346/0.02922, allocations: 111.3 kB / 439.5 MB, free: 14.78 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004438/0.02966, allocations: 430 kB / 439.9 MB, free: 14.41 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003431/0.03, allocations: 193.1 kB / 440.1 MB, free: 14.27 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003238/0.03033, allocations: 174.2 kB / 440.3 MB, free: 14.12 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002721/0.0306, allocations: 193 kB / 440.5 MB, free: 13.99 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.278e-05/0.03065, allocations: 40 kB / 440.5 MB, free: 13.95 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.569e-05/0.0307, allocations: 36 kB / 440.5 MB, free: 13.91 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.03082, allocations: 130.1 kB / 440.7 MB, free: 13.82 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001379/0.03096, allocations: 151.5 kB / 440.8 MB, free: 13.69 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004527/0.03141, allocations: 469.5 kB / 441.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.03142, allocations: 0 / 441.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.03142, allocations: 3.938 kB / 441.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.03143, allocations: 0 / 441.3 MB, free: 13.39 MB / 346.7 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.0009591/0.03239, allocations: 0.616 MB / 441.9 MB, free: 12.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.03243, allocations: 8.922 kB / 441.9 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.849e-05/0.03249, allocations: 64.56 kB / 442 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.257e-05/0.03255, allocations: 41.41 kB / 442 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003085/0.03286, allocations: 237.5 kB / 442.2 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.03288, allocations: 16.88 kB / 442.3 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.249e-05/0.03292, allocations: 33.03 kB / 442.3 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004953/0.03342, allocations: 336.2 kB / 442.6 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.03343, allocations: 4.125 kB / 442.6 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.03345, allocations: 16.64 kB / 442.6 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.03346, allocations: 4 kB / 442.6 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004839/0.03394, allocations: 336 kB / 443 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.03527, allocations: 0.8907 MB / 443.9 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003867/0.03565, allocations: 271 kB / 444.1 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002955/0.03595, allocations: 216.3 kB / 444.3 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.03597, allocations: 4.234 kB / 444.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.03599, allocations: 38.8 kB / 444.4 MB, free: 10.58 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 1.824e-06/0.036, allocations: 0 / 444.4 MB, free: 10.58 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.002747/0.03874, allocations: 1.512 MB / 445.9 MB, free: 9.266 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.03878, allocations: 55.41 kB / 445.9 MB, free: 9.199 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002227/0.039, allocations: 260.6 kB / 446.2 MB, free: 8.961 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.03903, allocations: 25.7 kB / 446.2 MB, free: 8.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.02e-05/0.03912, allocations: 175.4 kB / 446.4 MB, free: 8.766 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.267e-05/0.03919, allocations: 107.1 kB / 446.5 MB, free: 8.668 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.807e-05/0.03928, allocations: 59.95 kB / 446.6 MB, free: 8.609 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.828e-05/0.03938, allocations: 339.8 kB / 446.9 MB, free: 8.277 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002969/0.03968, allocations: 190.5 kB / 447.1 MB, free: 8.125 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002989/0.03998, allocations: 223.6 kB / 447.3 MB, free: 7.938 MB / 346.7 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.001031/0.04101, allocations: 0.5739 MB / 447.9 MB, free: 7.473 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.04101, allocations: 0 / 447.9 MB, free: 7.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009684/0.04198, allocations: 0.6414 MB / 448.5 MB, free: 6.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.04199, allocations: 4.797 kB / 448.5 MB, free: 6.906 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.042, allocations: 7.984 kB / 448.5 MB, free: 6.898 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003601/0.04236, allocations: 171.2 kB / 448.7 MB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003325/0.04269, allocations: 98.64 kB / 448.8 MB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003901/0.04659, allocations: 7.053 MB / 455.8 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003027/0.04689, allocations: 29.61 kB / 455.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.289e-05/0.04692, allocations: 9.594 kB / 455.9 MB, free: 15.24 MB / 362.7 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.0002245/0.04714, allocations: 158.7 kB / 456 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.333e-05/0.04718, allocations: 28.55 kB / 456.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008842/0.04807, allocations: 0.6102 MB / 456.7 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.04807, allocations: 7.984 kB / 456.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.04807, allocations: 4 kB / 456.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.04808, allocations: 0 / 456.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003862/0.04846, allocations: 357.3 kB / 457 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.04847, allocations: 3.938 kB / 457 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002925/0.04876, allocations: 95.92 kB / 457.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002732/0.04903, allocations: 144.1 kB / 457.3 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.728e-05/0.04906, allocations: 8 kB / 457.3 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003549/0.05261, allocations: 6.671 MB / 463.9 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.05261, allocations: 3.938 kB / 463.9 MB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/0.05422, allocations: 0.8898 MB / 464.8 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.046e-05/0.0543, allocations: 31.86 kB / 464.9 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.05433, allocations: 4 kB / 464.9 MB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.0545, allocations: 27.97 kB / 464.9 MB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.05464, allocations: 43.8 kB / 464.9 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.05466, allocations: 8.125 kB / 464.9 MB, free: 5.512 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001531/0.05481, allocations: 189.2 kB / 465.1 MB, free: 5.328 MB / 362.7 MB Notification: Performance of sort global known variables: time 3e-08/0.05481, allocations: 0 / 465.1 MB, free: 5.328 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004701/0.05528, allocations: 112 kB / 465.2 MB, free: 5.219 MB / 362.7 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.001374/0.05665, allocations: 1.462 MB / 466.7 MB, free: 3.711 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001113/0.05777, allocations: 1.001 MB / 467.7 MB, free: 2.645 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.05777, allocations: 0 / 467.7 MB, free: 2.645 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006359/0.0584, allocations: 0.7747 MB / 468.5 MB, free: 1.805 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004112/0.05882, allocations: 86.84 kB / 468.6 MB, free: 1.723 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005551/0.06437, allocations: 4.307 MB / 472.9 MB, free: 13.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001513/0.06452, allocations: 183.1 kB / 473.1 MB, free: 13.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001598/0.06468, allocations: 54.95 kB / 473.1 MB, free: 13.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.06482, allocations: 104.5 kB / 473.2 MB, free: 12.95 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/0.06482, allocations: 0 / 473.2 MB, free: 12.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03451/0.09933, allocations: 10.86 MB / 484.1 MB, free: 2.277 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.238/7.337, allocations: 7.859 kB / 484.1 MB, free: 2.27 MB / 378.7 MB " [Timeout remaining time 653] (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 sys.exit(0), Time elapsed: 9.255422096699476] Failed to read output from testmodel.py, exit status != 0: 7.424852129071951 7.438828768 7.40472288 Calling exit ...