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.0009527/0.000953, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001416/0.001417, allocations: 172.7 kB / 15.95 MB, free: 208 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.514/1.514, allocations: 223.3 MB / 240 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.247/0.247, allocations: 22.35 MB / 313.4 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003652/0.0003654, allocations: 12 kB / 381.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3457, allocations: 55.97 MB / 437.9 MB, free: 39.15 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.00256/0.3483, allocations: 2.188 MB / 440.1 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.3494, allocations: 0.6659 MB / 440.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.3495, allocations: 2.969 kB / 440.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001573/0.3497, allocations: 24.62 kB / 440.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002234/0.3499, allocations: 112.4 kB / 440.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003926/0.3503, allocations: 70.88 kB / 441 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004359/0.3508, allocations: 435.9 kB / 441.4 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003241/0.3511, allocations: 191.5 kB / 441.6 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001847/0.3513, allocations: 146.5 kB / 441.7 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002898/0.3516, allocations: 216.5 kB / 441.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.279e-05/0.3516, allocations: 24.41 kB / 442 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.93e-05/0.3517, allocations: 22.72 kB / 442 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.3518, allocations: 105.2 kB / 442.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.021e-05/0.3519, allocations: 90.33 kB / 442.2 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003096/0.3522, allocations: 336.8 kB / 442.5 MB, free: 36.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.3522, allocations: 0 / 442.5 MB, free: 36.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3523, allocations: 0 / 442.5 MB, free: 36.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.3523, allocations: 0 / 442.5 MB, free: 36.42 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.001271/0.3535, allocations: 0.6554 MB / 443.2 MB, free: 35.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.3536, allocations: 11.19 kB / 443.2 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.266e-05/0.3537, allocations: 32.06 kB / 443.2 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003457/0.354, allocations: 293 kB / 443.5 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.3541, allocations: 17.56 kB / 443.5 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.145e-05/0.3541, allocations: 25.22 kB / 443.5 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006043/0.3547, allocations: 351.3 kB / 443.9 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.3548, allocations: 3.953 kB / 443.9 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/0.3548, allocations: 10.66 kB / 443.9 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3548, allocations: 7.625 kB / 443.9 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000629/0.3555, allocations: 348.4 kB / 444.2 MB, free: 35.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001658/0.3571, allocations: 1.272 MB / 445.5 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000551/0.3577, allocations: 325.1 kB / 445.8 MB, free: 34.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004138/0.3581, allocations: 243.8 kB / 446.1 MB, free: 34.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.3582, allocations: 2.922 kB / 446.1 MB, free: 34.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.3582, allocations: 37.48 kB / 446.1 MB, free: 34.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.953e-06/0.3582, allocations: 0 / 446.1 MB, free: 34.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002441/0.3606, allocations: 1.285 MB / 447.4 MB, free: 33.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.3607, allocations: 58.23 kB / 447.4 MB, free: 33.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002306/0.3609, allocations: 256.8 kB / 447.7 MB, free: 33.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.361, allocations: 33.64 kB / 447.7 MB, free: 33.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.357e-05/0.3611, allocations: 166.6 kB / 447.9 MB, free: 33.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.683e-05/0.3611, allocations: 104.6 kB / 448 MB, free: 33.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.05e-05/0.3612, allocations: 4 kB / 448 MB, free: 33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.121e-05/0.3612, allocations: 345.5 kB / 448.3 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004161/0.3617, allocations: 186.9 kB / 448.5 MB, free: 32.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/0.362, allocations: 189.1 kB / 448.7 MB, free: 32.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003563/0.3624, allocations: 208.6 kB / 448.9 MB, free: 32.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3624, allocations: 0 / 448.9 MB, free: 32.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001257/0.3636, allocations: 0.6331 MB / 449.5 MB, free: 32.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.3637, allocations: 4.812 kB / 449.5 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3637, allocations: 3.938 kB / 449.5 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006735/0.3644, allocations: 177.5 kB / 449.7 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005025/0.3649, allocations: 111.4 kB / 449.8 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003949/0.3688, allocations: 7.07 MB / 456.9 MB, free: 25.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003605/0.3692, allocations: 39.11 kB / 456.9 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.3693, allocations: 5.688 kB / 456.9 MB, free: 25.2 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.0001906/0.3695, allocations: 157.4 kB / 457.1 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.065e-05/0.3695, allocations: 38.2 kB / 457.1 MB, free: 25.03 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.3707, allocations: 0.5933 MB / 457.7 MB, free: 24.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3707, allocations: 2.812 kB / 457.7 MB, free: 24.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3707, allocations: 3.953 kB / 457.7 MB, free: 24.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.3707, allocations: 6.109 kB / 457.7 MB, free: 24.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004335/0.3712, allocations: 439.9 kB / 458.2 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.3712, allocations: 2.688 kB / 458.2 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004886/0.3717, allocations: 95.12 kB / 458.3 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004276/0.3721, allocations: 144.1 kB / 458.4 MB, free: 24.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.242e-05/0.3722, allocations: 13.3 kB / 458.4 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003222/0.3754, allocations: 6.691 MB / 465.1 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3754, allocations: 1.094 kB / 465.1 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001513/0.3769, allocations: 0.8807 MB / 466 MB, free: 17.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.162e-05/0.377, allocations: 113.2 kB / 466.1 MB, free: 17.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.642e-05/0.3771, allocations: 7.156 kB / 466.1 MB, free: 17.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.3774, allocations: 38.39 kB / 466.1 MB, free: 17.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.3775, allocations: 31.81 kB / 466.2 MB, free: 17.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.3775, allocations: 9.828 kB / 466.2 MB, free: 17.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001446/0.3777, allocations: 184.1 kB / 466.4 MB, free: 17.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3777, allocations: 0 / 466.4 MB, free: 17.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005618/0.3782, allocations: 118 kB / 466.5 MB, free: 17 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.0001406/0.3784, allocations: 117.3 kB / 466.6 MB, free: 16.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001419/0.3798, allocations: 1.011 MB / 467.6 MB, free: 16.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3798, allocations: 0 / 467.6 MB, free: 16.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008338/0.3807, allocations: 0.7959 MB / 468.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004701/0.3811, allocations: 69.08 kB / 468.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002899/0.3841, allocations: 1.38 MB / 469.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.3843, allocations: 0.7983 MB / 470.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002087/0.3845, allocations: 49.92 kB / 470.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.484e-05/0.3846, allocations: 22.12 kB / 470.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3846, allocations: 0 / 470.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of Templates: time 0.01176/0.3964, allocations: 5.603 MB / 476.3 MB, free: 13.74 MB / 350.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)