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.0007647/0.000765, allocations: 99.34 kB / 16.02 MB, free: 76 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.000831/0.000831, allocations: 182.7 kB / 16.92 MB, free: 6.918 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.313/1.313, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1951/0.1951, allocations: 22.34 MB / 314.4 MB, free: 13.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003501, allocations: 8 kB / 383.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2693, allocations: 55.99 MB / 439.2 MB, free: 39.2 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_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/flowTwoPorts_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.02409/0.2934, allocations: 21.62 MB / 460.9 MB, free: 31.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00125/0.2946, allocations: 0.6802 MB / 461.6 MB, free: 30.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.2948, allocations: 7.625 kB / 461.6 MB, free: 30.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001289/0.2949, allocations: 28.52 kB / 461.6 MB, free: 30.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001966/0.2951, allocations: 103.2 kB / 461.7 MB, free: 30.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003142/0.2954, allocations: 86.52 kB / 461.8 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004263/0.2959, allocations: 491.3 kB / 462.3 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002664/0.2961, allocations: 205.6 kB / 462.5 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001708/0.2963, allocations: 152.9 kB / 462.6 MB, free: 30.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.2966, allocations: 216.1 kB / 462.8 MB, free: 30.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.034e-05/0.2966, allocations: 23.16 kB / 462.8 MB, free: 30.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.483e-05/0.2967, allocations: 21.25 kB / 462.9 MB, free: 30.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.2968, allocations: 106.4 kB / 463 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.297, allocations: 196.6 kB / 463.2 MB, free: 30.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002464/0.2972, allocations: 333.4 kB / 463.5 MB, free: 30.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.2972, allocations: 0 / 463.5 MB, free: 30.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.71e-07/0.2972, allocations: 0 / 463.5 MB, free: 30.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.2973, allocations: 0 / 463.5 MB, free: 30.2 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.001128/0.2984, allocations: 0.6528 MB / 464.1 MB, free: 29.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.2984, allocations: 8.938 kB / 464.1 MB, free: 29.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.69e-05/0.2985, allocations: 33.72 kB / 464.2 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002945/0.2988, allocations: 311.1 kB / 464.5 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.2988, allocations: 15 kB / 464.5 MB, free: 29.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.15e-05/0.2989, allocations: 27.88 kB / 464.5 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006791/0.2996, allocations: 354.1 kB / 464.9 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.2996, allocations: 5.188 kB / 464.9 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.446e-05/0.2997, allocations: 10.34 kB / 464.9 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.2997, allocations: 5.062 kB / 464.9 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007392/0.3004, allocations: 348 kB / 465.2 MB, free: 29.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001799/0.3022, allocations: 1.276 MB / 466.5 MB, free: 28.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005628/0.3028, allocations: 318.2 kB / 466.8 MB, free: 28.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004387/0.3032, allocations: 235.3 kB / 467 MB, free: 28.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.894e-05/0.3033, allocations: 11.44 kB / 467.1 MB, free: 28.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.973e-05/0.3033, allocations: 41.31 kB / 467.1 MB, free: 28.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.413e-06/0.3033, allocations: 0 / 467.1 MB, free: 28.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002835/0.3062, allocations: 1.298 MB / 468.4 MB, free: 27.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.073e-05/0.3062, allocations: 57.91 kB / 468.4 MB, free: 27.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002265/0.3064, allocations: 254.6 kB / 468.7 MB, free: 27.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.898e-05/0.3065, allocations: 30.58 kB / 468.7 MB, free: 27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.829e-05/0.3066, allocations: 167.9 kB / 468.9 MB, free: 26.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.255e-05/0.3066, allocations: 93.88 kB / 469 MB, free: 26.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-05/0.3067, allocations: 33.17 kB / 469 MB, free: 26.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.527e-05/0.3068, allocations: 340.1 kB / 469.3 MB, free: 26.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003984/0.3072, allocations: 188.1 kB / 469.5 MB, free: 26.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003592/0.3075, allocations: 193.1 kB / 469.7 MB, free: 26.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006979/0.3082, allocations: 412 kB / 470.1 MB, free: 25.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3083, allocations: 0 / 470.1 MB, free: 25.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001344/0.3096, allocations: 0.6457 MB / 470.8 MB, free: 25.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.3096, allocations: 9.656 kB / 470.8 MB, free: 25.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3096, allocations: 0 / 470.8 MB, free: 25.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006918/0.3103, allocations: 174 kB / 470.9 MB, free: 25.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005204/0.3109, allocations: 103.6 kB / 471 MB, free: 25.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003889/0.3148, allocations: 7.074 MB / 478.1 MB, free: 17.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003679/0.3152, allocations: 53.95 kB / 478.2 MB, free: 17.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.654e-05/0.3152, allocations: 7.047 kB / 478.2 MB, free: 17.49 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.0001652/0.3154, allocations: 163.1 kB / 478.3 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.645e-05/0.3154, allocations: 31.56 kB / 478.4 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001211/0.3166, allocations: 0.601 MB / 479 MB, free: 16.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3167, allocations: 0 / 479 MB, free: 16.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3167, allocations: 4 kB / 479 MB, free: 16.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3167, allocations: 0 / 479 MB, free: 16.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004095/0.3171, allocations: 447.8 kB / 479.4 MB, free: 16.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3171, allocations: 0 / 479.4 MB, free: 16.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005099/0.3176, allocations: 97.8 kB / 479.5 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004303/0.3181, allocations: 141.5 kB / 479.6 MB, free: 16.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.3181, allocations: 11.38 kB / 479.7 MB, free: 16.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003089/0.3212, allocations: 6.679 MB / 486.3 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3212, allocations: 0 / 486.3 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/0.3227, allocations: 0.8928 MB / 487.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-05/0.3228, allocations: 108.7 kB / 487.3 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.593e-05/0.3228, allocations: 11.39 kB / 487.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002791/0.3231, allocations: 30.78 kB / 487.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.3232, allocations: 41.17 kB / 487.4 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.3233, allocations: 4 kB / 487.4 MB, free: 7.996 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001478/0.3234, allocations: 189.1 kB / 487.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3234, allocations: 0 / 487.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004529/0.3239, allocations: 123.8 kB / 487.7 MB, free: 7.711 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.0001216/0.324, allocations: 111.1 kB / 487.8 MB, free: 7.594 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001253/0.3253, allocations: 1.012 MB / 488.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3253, allocations: 0 / 488.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007394/0.326, allocations: 0.7984 MB / 489.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004371/0.3265, allocations: 72.77 kB / 489.7 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/0.329, allocations: 1.414 MB / 491.1 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.3293, allocations: 0.8005 MB / 491.9 MB, free: 3.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.3294, allocations: 24.94 kB / 492 MB, free: 3.68 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.3294, allocations: 0 / 492 MB, free: 3.68 MB / 350.1 MB Notification: Performance of Templates: time 0.01215/0.3415, allocations: 9.884 MB / 0.4901 GB, free: 12.73 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)