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.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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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: translateModel(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT") translateModel(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 198.1 kB / 16.79 MB, free: 6.809 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.317/1.317, allocations: 222.9 MB / 240.5 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2/0.2, allocations: 22.33 MB / 313 MB, free: 12.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 67.88 kB / 380.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2576, allocations: 54.94 MB / 435.7 MB, free: 39.56 MB / 350.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.03114/0.2888, allocations: 22.01 MB / 457.7 MB, free: 31.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001476/0.2902, allocations: 0.6902 MB / 458.4 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002805/0.2905, allocations: 4 kB / 458.4 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002127/0.2908, allocations: 31.92 kB / 458.4 MB, free: 31.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003314/0.2911, allocations: 99.58 kB / 458.5 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00042/0.2915, allocations: 86.84 kB / 458.6 MB, free: 30.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005578/0.2921, allocations: 496.8 kB / 459.1 MB, free: 30.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003629/0.2925, allocations: 213.7 kB / 459.3 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003007/0.2928, allocations: 154.8 kB / 459.5 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003893/0.2932, allocations: 223.8 kB / 459.7 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.59e-05/0.2933, allocations: 25.19 kB / 459.7 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.843e-05/0.2934, allocations: 26.25 kB / 459.7 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.2935, allocations: 111.1 kB / 459.8 MB, free: 30.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001838/0.2937, allocations: 177.3 kB / 460 MB, free: 30.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000268/0.2939, allocations: 350.7 kB / 460.4 MB, free: 30.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2939, allocations: 9.25 kB / 460.4 MB, free: 30.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.2939, allocations: 0 / 460.4 MB, free: 30.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.294, allocations: 0 / 460.4 MB, free: 30.32 MB / 350.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.001332/0.2953, allocations: 0.6775 MB / 461 MB, free: 29.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.2953, allocations: 10.19 kB / 461.1 MB, free: 29.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.238e-05/0.2954, allocations: 33.03 kB / 461.1 MB, free: 29.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/0.2957, allocations: 303.5 kB / 461.4 MB, free: 29.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.2958, allocations: 22.44 kB / 461.4 MB, free: 29.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.55e-05/0.2958, allocations: 24.72 kB / 461.4 MB, free: 29.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006686/0.2965, allocations: 347.5 kB / 461.8 MB, free: 29.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.2965, allocations: 1.188 kB / 461.8 MB, free: 29.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.349e-05/0.2966, allocations: 9.5 kB / 461.8 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.2966, allocations: 5.688 kB / 461.8 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007028/0.2973, allocations: 328.8 kB / 462.1 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0018/0.2991, allocations: 1.257 MB / 463.4 MB, free: 28.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005654/0.2997, allocations: 312.7 kB / 463.7 MB, free: 28.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004263/0.3001, allocations: 227.7 kB / 463.9 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.176e-05/0.3001, allocations: 3.016 kB / 463.9 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.3002, allocations: 40.33 kB / 463.9 MB, free: 28.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.623e-06/0.3002, allocations: 0 / 463.9 MB, free: 28.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002701/0.3029, allocations: 1.235 MB / 465.2 MB, free: 27.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.367e-05/0.3029, allocations: 57.97 kB / 465.2 MB, free: 27.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002494/0.3032, allocations: 258.8 kB / 465.5 MB, free: 27.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.3032, allocations: 25.7 kB / 465.5 MB, free: 27.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.425e-05/0.3033, allocations: 164.7 kB / 465.7 MB, free: 26.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.085e-05/0.3034, allocations: 105 kB / 465.8 MB, free: 26.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.3035, allocations: 55.73 kB / 465.8 MB, free: 26.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.263e-05/0.3036, allocations: 340.5 kB / 466.2 MB, free: 26.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003728/0.3039, allocations: 179.5 kB / 466.3 MB, free: 26.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003625/0.3043, allocations: 179.3 kB / 466.5 MB, free: 26.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007669/0.3051, allocations: 393.5 kB / 466.9 MB, free: 26.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3051, allocations: 5.281 kB / 466.9 MB, free: 26.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001375/0.3065, allocations: 0.6023 MB / 467.5 MB, free: 25.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.3065, allocations: 11.94 kB / 467.5 MB, free: 25.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3065, allocations: 0 / 467.5 MB, free: 25.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006965/0.3072, allocations: 172.7 kB / 467.7 MB, free: 25.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005073/0.3077, allocations: 88.12 kB / 467.8 MB, free: 25.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003822/0.3116, allocations: 7.065 MB / 474.8 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003689/0.312, allocations: 42.58 kB / 474.9 MB, free: 18.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.754e-05/0.312, allocations: 11.94 kB / 474.9 MB, free: 18.02 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (31): * Single equations (assignments): 26 * 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.0001596/0.3122, allocations: 156.4 kB / 475 MB, free: 17.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.912e-05/0.3122, allocations: 31.66 kB / 475.1 MB, free: 17.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001167/0.3134, allocations: 0.5842 MB / 475.6 MB, free: 17.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.3134, allocations: 4 kB / 475.7 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.3134, allocations: 0 / 475.7 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3134, allocations: 3.328 kB / 475.7 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000414/0.3138, allocations: 436.5 kB / 476.1 MB, free: 16.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3139, allocations: 0 / 476.1 MB, free: 16.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005039/0.3144, allocations: 99.53 kB / 476.2 MB, free: 16.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004397/0.3148, allocations: 142 kB / 476.3 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.969e-05/0.3149, allocations: 14.95 kB / 476.3 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003031/0.3179, allocations: 6.671 MB / 483 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3179, allocations: 0 / 483 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/0.3194, allocations: 0.8627 MB / 483.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.074e-05/0.3195, allocations: 104.7 kB / 484 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.172e-05/0.3196, allocations: 11.06 kB / 484 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003015/0.3199, allocations: 25.78 kB / 484 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.32, allocations: 40.64 kB / 484 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.32, allocations: 11.56 kB / 484.1 MB, free: 8.598 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001388/0.3202, allocations: 185.4 kB / 484.2 MB, free: 8.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3202, allocations: 4 kB / 484.2 MB, free: 8.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004899/0.3207, allocations: 119.8 kB / 484.4 MB, free: 8.312 MB / 350.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 (24): * Single equations (assignments): 19 * 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.0001171/0.3208, allocations: 110.1 kB / 484.5 MB, free: 8.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001228/0.322, allocations: 0.9863 MB / 485.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.322, allocations: 4 kB / 485.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007023/0.3227, allocations: 0.7808 MB / 486.2 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004496/0.3232, allocations: 76.2 kB / 486.3 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002652/0.3259, allocations: 1.313 MB / 487.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000193/0.3261, allocations: 0.795 MB / 488.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.3262, allocations: 26.86 kB / 488.4 MB, free: 4.363 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3262, allocations: 0 / 488.4 MB, free: 4.363 MB / 350.1 MB Notification: Performance of Templates: time 0.01139/0.3376, allocations: 9.903 MB / 498.3 MB, free: 13.66 MB / 366.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.makefile (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 & ./AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1)