Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09359/0.09359, allocations: 21.41 MB / 36.68 MB, free: 1.113 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008591/0.0008592, allocations: 181.2 kB / 42.86 MB, free: 3.875 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.455/1.455, allocations: 205 MB / 253.9 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007119/0.0007119, allocations: 98.23 kB / 307.2 MB, free: 11.45 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004308/0.0004309, allocations: 11.41 kB / 372.5 MB, free: 59.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.11, allocations: 52.51 MB / 425 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.00281/0.1129, allocations: 1.798 MB / 426.8 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.114, allocations: 0.7451 MB / 427.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.858e-05/0.1141, allocations: 3.938 kB / 427.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003233/0.1144, allocations: 71.78 kB / 427.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001557/0.1146, allocations: 83.7 kB / 427.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003224/0.1149, allocations: 123.8 kB / 427.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002123/0.1152, allocations: 247.5 kB / 428.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.1153, allocations: 33.55 kB / 428.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.1154, allocations: 107.6 kB / 428.2 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.1156, allocations: 147.5 kB / 428.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.688e-05/0.1156, allocations: 8 kB / 428.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.1157, allocations: 75.94 kB / 428.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.222e-05/0.1158, allocations: 59.81 kB / 428.5 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.049e-05/0.1159, allocations: 83.39 kB / 428.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002288/0.1161, allocations: 227.2 kB / 428.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1161, allocations: 4 kB / 428.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1162, allocations: 0 / 428.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.1162, allocations: 0 / 428.8 MB, free: 10.46 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001123/0.1173, allocations: 0.6248 MB / 429.4 MB, free: 9.785 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.1173, allocations: 12.03 kB / 429.4 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.324e-05/0.1174, allocations: 28.64 kB / 429.5 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004906/0.1179, allocations: 310.7 kB / 429.8 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.1179, allocations: 8.375 kB / 429.8 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.235e-05/0.118, allocations: 12.38 kB / 429.8 MB, free: 9.387 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002347/0.1182, allocations: 152.4 kB / 429.9 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.1182, allocations: 0 / 429.9 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.1182, allocations: 4 kB / 429.9 MB, free: 9.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.1183, allocations: 7.984 kB / 429.9 MB, free: 9.223 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002202/0.1185, allocations: 135.8 kB / 430.1 MB, free: 9.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006409/0.1191, allocations: 0.4964 MB / 430.6 MB, free: 8.543 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003642/0.1195, allocations: 194.4 kB / 430.8 MB, free: 8.344 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.1197, allocations: 116.8 kB / 430.9 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.701e-05/0.1197, allocations: 128 / 430.9 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002159/0.1199, allocations: 185 kB / 431.1 MB, free: 8.027 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.312e-06/0.1199, allocations: 0 / 431.1 MB, free: 8.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0011/0.121, allocations: 0.5711 MB / 431.6 MB, free: 7.422 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/0.1211, allocations: 81.11 kB / 431.7 MB, free: 7.324 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000448/0.1215, allocations: 316.9 kB / 432 MB, free: 7.004 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.1216, allocations: 29.7 kB / 432 MB, free: 6.969 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.869e-05/0.1216, allocations: 139.9 kB / 432.2 MB, free: 6.828 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.367e-05/0.1217, allocations: 59.14 kB / 432.2 MB, free: 6.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.244e-05/0.1218, allocations: 41.7 kB / 432.3 MB, free: 6.723 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.818e-05/0.1219, allocations: 334.8 kB / 432.6 MB, free: 6.387 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.122, allocations: 83.95 kB / 432.7 MB, free: 6.305 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.1221, allocations: 87.95 kB / 432.8 MB, free: 6.219 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.1232, allocations: 0.5852 MB / 433.4 MB, free: 5.605 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1232, allocations: 0 / 433.4 MB, free: 5.605 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005241/0.1237, allocations: 387.7 kB / 433.7 MB, free: 5.211 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.296e-05/0.1238, allocations: 33.7 kB / 433.8 MB, free: 5.172 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1238, allocations: 4 kB / 433.8 MB, free: 5.168 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002402/0.1241, allocations: 64.73 kB / 433.8 MB, free: 5.102 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.1242, allocations: 16 kB / 433.9 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001041/0.1252, allocations: 1.511 MB / 435.4 MB, free: 3.434 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002233/0.1255, allocations: 43.73 kB / 435.4 MB, free: 3.391 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/0.1255, allocations: 4 kB / 435.4 MB, free: 3.387 MB / 298.7 MB Warning: Assuming fixed start value for the following 3 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (SP.nextEventScaled,SP.nextEvent,$PRE.SP.nextEvent,SP.last,SP.b,SP.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001743/0.1257, allocations: 187.6 kB / 435.6 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.292e-05/0.1257, allocations: 23.72 kB / 435.6 MB, free: 3.164 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.64e-05/0.1258, allocations: 30.17 kB / 435.6 MB, free: 3.137 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.1258, allocations: 4 kB / 435.7 MB, free: 3.133 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.1258, allocations: 4 kB / 435.7 MB, free: 3.129 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.1258, allocations: 3.938 kB / 435.7 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.126, allocations: 285.5 kB / 435.9 MB, free: 2.797 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.126, allocations: 0 / 435.9 MB, free: 2.797 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001069/0.1261, allocations: 23.94 kB / 436 MB, free: 2.773 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001401/0.1263, allocations: 56.8 kB / 436 MB, free: 2.715 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.1263, allocations: 8 kB / 436 MB, free: 2.707 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008453/0.1271, allocations: 1.507 MB / 437.5 MB, free: 1.066 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1271, allocations: 0 / 437.5 MB, free: 1.066 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006691/0.1278, allocations: 0.5225 MB / 438.1 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.1e-05/0.1279, allocations: 104.8 kB / 438.2 MB, free: 404 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.07e-05/0.1279, allocations: 8.062 kB / 438.2 MB, free: 396 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002403/0.1282, allocations: 31.95 kB / 438.2 MB, free: 364 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.787e-05/0.1282, allocations: 11.98 kB / 438.2 MB, free: 352 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.078e-05/0.1283, allocations: 8 kB / 438.2 MB, free: 344 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003802/0.1286, allocations: 244.4 kB / 438.5 MB, free: 100 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1286, allocations: 0 / 438.5 MB, free: 100 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002675/0.1289, allocations: 75.84 kB / 438.5 MB, free: 24 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],C.x_scaled[1]) * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002188/0.1291, allocations: 127.2 kB / 438.7 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006445/0.1298, allocations: 433.5 kB / 439.1 MB, free: 15.44 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1298, allocations: 0 / 439.1 MB, free: 15.44 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003697/0.1302, allocations: 334 kB / 439.4 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002703/0.1305, allocations: 24.42 kB / 439.4 MB, free: 15.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00081/0.1313, allocations: 0.5355 MB / 440 MB, free: 14.51 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.1316, allocations: 0.7597 MB / 440.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.075e-05/0.1317, allocations: 29.41 kB / 440.8 MB, free: 13.7 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.711e-05/0.1317, allocations: 15.44 kB / 440.8 MB, free: 13.68 MB / 314.7 MB Notification: Performance of SimCode: time 2e-07/0.1318, allocations: 4 kB / 440.8 MB, free: 13.68 MB / 314.7 MB Notification: Performance of Templates: time 0.005819/0.1376, allocations: 2.619 MB / 443.4 MB, free: 11.06 MB / 314.7 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.makefile (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1)