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.001182/0.001182, allocations: 99.47 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2149/0.2149, allocations: 22.33 MB / 313.3 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003471/0.0003472, allocations: 15.98 kB / 381.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3206, allocations: 55.97 MB / 437.8 MB, free: 39.21 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.001995/0.3226, allocations: 2.067 MB / 439.9 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008819/0.3235, allocations: 0.6823 MB / 440.6 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.813e-05/0.3236, allocations: 6.562 kB / 440.6 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.3238, allocations: 31.7 kB / 440.6 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.3239, allocations: 100.5 kB / 440.7 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003053/0.3242, allocations: 75.5 kB / 440.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002678/0.3245, allocations: 254.9 kB / 441 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002699/0.3248, allocations: 188.2 kB / 441.2 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001652/0.325, allocations: 139.7 kB / 441.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/0.3252, allocations: 176.5 kB / 441.5 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.873e-05/0.3253, allocations: 27.25 kB / 441.5 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.29e-05/0.3253, allocations: 23.03 kB / 441.6 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.002e-05/0.3254, allocations: 101.5 kB / 441.7 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.949e-05/0.3255, allocations: 84.08 kB / 441.7 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002675/0.3258, allocations: 326.3 kB / 442.1 MB, free: 36.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3258, allocations: 0 / 442.1 MB, free: 36.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.3258, allocations: 6.391 kB / 442.1 MB, free: 36.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.3258, allocations: 0 / 442.1 MB, free: 36.63 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.001246/0.327, allocations: 0.6468 MB / 442.7 MB, free: 36.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.3271, allocations: 9.562 kB / 442.7 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.58e-05/0.3272, allocations: 33.22 kB / 442.8 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003621/0.3276, allocations: 293 kB / 443 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.724e-05/0.3276, allocations: 21.44 kB / 443.1 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.677e-05/0.3277, allocations: 25.47 kB / 443.1 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006489/0.3283, allocations: 355 kB / 443.4 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.3283, allocations: 3.953 kB / 443.4 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/0.3284, allocations: 8 kB / 443.5 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.3284, allocations: 8.281 kB / 443.5 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006834/0.3291, allocations: 349.5 kB / 443.8 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/0.3308, allocations: 1.275 MB / 445.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005203/0.3313, allocations: 313.9 kB / 445.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.757e-05/0.3313, allocations: 11.28 kB / 445.4 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.3314, allocations: 37.39 kB / 445.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.334e-06/0.3314, allocations: 0 / 445.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002599/0.334, allocations: 1.29 MB / 446.7 MB, free: 33.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.334, allocations: 54.56 kB / 446.8 MB, free: 33.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002152/0.3342, allocations: 262.2 kB / 447 MB, free: 33.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.3343, allocations: 32.52 kB / 447.1 MB, free: 33.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.579e-05/0.3344, allocations: 162.1 kB / 447.2 MB, free: 33.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.797e-05/0.3344, allocations: 98 kB / 447.3 MB, free: 33.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-05/0.3345, allocations: 10.81 kB / 447.3 MB, free: 33.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.182e-05/0.3345, allocations: 335.5 kB / 447.7 MB, free: 32.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000348/0.3349, allocations: 192.8 kB / 447.8 MB, free: 32.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000327/0.3352, allocations: 186 kB / 448 MB, free: 32.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003669/0.3356, allocations: 214.8 kB / 448.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3356, allocations: 0 / 448.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001279/0.3369, allocations: 0.6366 MB / 448.9 MB, free: 32.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.3369, allocations: 6.188 kB / 448.9 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.3369, allocations: 0 / 448.9 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006666/0.3376, allocations: 179.4 kB / 449.1 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005035/0.3381, allocations: 92.58 kB / 449.1 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004038/0.3422, allocations: 7.122 MB / 456.3 MB, free: 25.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/0.3426, allocations: 46.16 kB / 456.3 MB, free: 25.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.3427, allocations: 9.75 kB / 456.3 MB, free: 25.47 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000211/0.3429, allocations: 153.1 kB / 456.5 MB, free: 25.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.779e-05/0.343, allocations: 34.56 kB / 456.5 MB, free: 25.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001281/0.3442, allocations: 0.5915 MB / 457.1 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.3443, allocations: 2.875 kB / 457.1 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3443, allocations: 10.77 kB / 457.1 MB, free: 25.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.3443, allocations: 3.938 kB / 457.1 MB, free: 25.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005427/0.3448, allocations: 435.8 kB / 457.5 MB, free: 24.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3449, allocations: 4 kB / 457.5 MB, free: 24.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005232/0.3454, allocations: 97.55 kB / 457.6 MB, free: 24.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004719/0.3459, allocations: 140.4 kB / 457.8 MB, free: 24.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.397e-05/0.3459, allocations: 10.47 kB / 457.8 MB, free: 24.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003357/0.3493, allocations: 6.738 MB / 464.5 MB, free: 17.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.3493, allocations: 0 / 464.5 MB, free: 17.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001771/0.3511, allocations: 0.8881 MB / 465.4 MB, free: 17.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.3512, allocations: 111.4 kB / 465.5 MB, free: 17.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.661e-05/0.3513, allocations: 7.156 kB / 465.5 MB, free: 17.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002843/0.3516, allocations: 33.64 kB / 465.6 MB, free: 17.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3517, allocations: 42.02 kB / 465.6 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.3517, allocations: 9.438 kB / 465.6 MB, free: 17.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001416/0.3519, allocations: 183.5 kB / 465.8 MB, free: 17.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3519, allocations: 3.375 kB / 465.8 MB, free: 17.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005255/0.3524, allocations: 116.5 kB / 465.9 MB, free: 17.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001548/0.3526, allocations: 113.4 kB / 466 MB, free: 17.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001413/0.354, allocations: 1.01 MB / 467 MB, free: 16.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.354, allocations: 4 kB / 467 MB, free: 16.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008204/0.3548, allocations: 0.7906 MB / 467.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.3552, allocations: 73.42 kB / 467.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002754/0.3579, allocations: 1.367 MB / 469.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002155/0.3582, allocations: 0.806 MB / 470.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001915/0.3584, allocations: 46.94 kB / 470.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.821e-05/0.3585, allocations: 25.69 kB / 470.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3585, allocations: 0 / 470.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of Templates: time 0.01041/0.3689, allocations: 5.599 MB / 475.7 MB, free: 14.02 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: