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.09807/0.09807, allocations: 21.46 MB / 36.42 MB, free: 1.172 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.0008683/0.0008683, allocations: 182.7 kB / 42.64 MB, free: 4 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.387/1.387, allocations: 205.4 MB / 254.1 MB, free: 15.2 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.0007744/0.0007745, allocations: 88.3 kB / 307.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000314/0.000314, allocations: 9.406 kB / 373.3 MB, free: 59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09377/0.0941, allocations: 52.95 MB / 426.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.001604/0.09574, allocations: 1.433 MB / 427.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009078/0.09666, allocations: 0.687 MB / 428.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.568e-05/0.09675, allocations: 7.938 kB / 428.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003011/0.09706, allocations: 67.78 kB / 428.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001551/0.09723, allocations: 83.77 kB / 428.5 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003117/0.09755, allocations: 111.8 kB / 428.6 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001926/0.09776, allocations: 219.5 kB / 428.8 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.677e-05/0.09786, allocations: 25.55 kB / 428.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.09799, allocations: 115.6 kB / 428.9 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.09817, allocations: 139.6 kB / 429.1 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.929e-05/0.09821, allocations: 8 kB / 429.1 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001003/0.09832, allocations: 67.94 kB / 429.2 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.369e-05/0.09839, allocations: 55.81 kB / 429.2 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.02e-05/0.09844, allocations: 53.56 kB / 429.3 MB, free: 9.957 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.09859, allocations: 163.7 kB / 429.4 MB, free: 9.797 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.0986, allocations: 0 / 429.4 MB, free: 9.797 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09861, allocations: 4 kB / 429.4 MB, free: 9.793 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.09862, allocations: 0 / 429.4 MB, free: 9.793 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.001068/0.09969, allocations: 0.6052 MB / 430 MB, free: 9.133 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.09974, allocations: 12.03 kB / 430 MB, free: 9.121 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.564e-05/0.0998, allocations: 27.7 kB / 430.1 MB, free: 9.094 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005112/0.1003, allocations: 305.6 kB / 430.4 MB, free: 8.758 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.1003, allocations: 4 kB / 430.4 MB, free: 8.754 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.624e-05/0.1004, allocations: 15.94 kB / 430.4 MB, free: 8.738 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002379/0.1006, allocations: 145.6 kB / 430.5 MB, free: 8.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.1006, allocations: 0 / 430.5 MB, free: 8.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.1007, allocations: 8 kB / 430.5 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.1007, allocations: 0 / 430.5 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002171/0.1009, allocations: 139.9 kB / 430.7 MB, free: 8.445 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006382/0.1015, allocations: 0.4965 MB / 431.2 MB, free: 7.898 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003703/0.1019, allocations: 202.4 kB / 431.4 MB, free: 7.691 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.1021, allocations: 105 kB / 431.5 MB, free: 7.586 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.1021, allocations: 4 kB / 431.5 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002167/0.1023, allocations: 182.1 kB / 431.7 MB, free: 7.387 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.332e-06/0.1023, allocations: 0 / 431.7 MB, free: 7.387 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.001075/0.1034, allocations: 0.5671 MB / 432.2 MB, free: 6.785 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/0.1035, allocations: 85.05 kB / 432.3 MB, free: 6.684 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004591/0.1039, allocations: 320.9 kB / 432.6 MB, free: 6.359 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.1039, allocations: 25.7 kB / 432.6 MB, free: 6.328 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.382e-05/0.104, allocations: 140 kB / 432.8 MB, free: 6.188 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.369e-05/0.1041, allocations: 59.19 kB / 432.8 MB, free: 6.129 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.948e-06/0.1041, allocations: 4 kB / 432.8 MB, free: 6.125 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.585e-05/0.1041, allocations: 342.7 kB / 433.2 MB, free: 5.781 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.1043, allocations: 87.95 kB / 433.3 MB, free: 5.695 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.1044, allocations: 83.95 kB / 433.3 MB, free: 5.613 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/0.1045, allocations: 121.7 kB / 433.5 MB, free: 5.488 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1046, allocations: 0 / 433.5 MB, free: 5.488 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005173/0.1051, allocations: 394.5 kB / 433.8 MB, free: 5.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.965e-05/0.1051, allocations: 41.69 kB / 433.9 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1051, allocations: 0 / 433.9 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002249/0.1054, allocations: 52.81 kB / 433.9 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.903e-05/0.1055, allocations: 23.94 kB / 434 MB, free: 4.965 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009366/0.1064, allocations: 1.503 MB / 435.5 MB, free: 3.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002444/0.1067, allocations: 35.91 kB / 435.5 MB, free: 3.285 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.1067, allocations: 7.984 kB / 435.5 MB, free: 3.277 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 ($whenCondition1,SP.a,SP.b,SP.last,$PRE.SP.nextEvent,SP.nextEvent,SP.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001724/0.1069, allocations: 191.5 kB / 435.7 MB, free: 3.074 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.177e-05/0.1069, allocations: 23.72 kB / 435.7 MB, free: 3.051 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.699e-05/0.107, allocations: 34.17 kB / 435.8 MB, free: 3.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.107, allocations: 7.953 kB / 435.8 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.107, allocations: 0 / 435.8 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.107, allocations: 4 kB / 435.8 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.1072, allocations: 293.3 kB / 436.1 MB, free: 2.672 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1072, allocations: 0 / 436.1 MB, free: 2.672 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.1073, allocations: 19.98 kB / 436.1 MB, free: 2.652 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001478/0.1075, allocations: 52.81 kB / 436.1 MB, free: 2.598 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.966e-05/0.1075, allocations: 11.98 kB / 436.1 MB, free: 2.586 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008744/0.1084, allocations: 1.507 MB / 437.6 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1084, allocations: 0 / 437.6 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007055/0.1091, allocations: 0.523 MB / 438.2 MB, free: 404 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.299e-05/0.1092, allocations: 100.9 kB / 438.3 MB, free: 284 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/0.1092, allocations: 12.06 kB / 438.3 MB, free: 272 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.1094, allocations: 31.95 kB / 438.3 MB, free: 240 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.505e-05/0.1095, allocations: 19.94 kB / 438.3 MB, free: 220 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.1095, allocations: 4 kB / 438.3 MB, free: 216 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004339/0.11, allocations: 244.4 kB / 438.6 MB, free: 15.97 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.11, allocations: 0 / 438.6 MB, free: 15.97 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002862/0.1103, allocations: 63.98 kB / 438.6 MB, free: 15.91 MB / 314.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002091/0.1105, allocations: 138.9 kB / 438.8 MB, free: 15.76 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006719/0.1112, allocations: 430.6 kB / 439.2 MB, free: 15.32 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1112, allocations: 4 kB / 439.2 MB, free: 15.31 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003748/0.1116, allocations: 322 kB / 439.5 MB, free: 14.97 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/0.1118, allocations: 32.36 kB / 439.5 MB, free: 14.94 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007611/0.1126, allocations: 0.5336 MB / 440.1 MB, free: 14.39 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.1129, allocations: 0.7558 MB / 440.8 MB, free: 13.61 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.941e-05/0.113, allocations: 37.39 kB / 440.9 MB, free: 13.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.771e-05/0.1131, allocations: 11.44 kB / 440.9 MB, free: 13.56 MB / 314.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1131, allocations: 0 / 440.9 MB, free: 13.56 MB / 314.7 MB Notification: Performance of Templates: time 0.00536/0.1184, allocations: 2.573 MB / 443.4 MB, free: 10.98 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1)