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 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 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.09148/0.09148, allocations: 21.62 MB / 36.56 MB, free: 1.059 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000868/0.0008681, allocations: 183.4 kB / 42.83 MB, free: 3.785 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.197/1.197, allocations: 223.2 MB / 272.1 MB, free: 1.797 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007975/0.0007974, allocations: 103.2 kB / 328.7 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002993/0.0002994, allocations: 12 kB / 397 MB, free: 46.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08029/0.0806, allocations: 55.81 MB / 452.9 MB, free: 6.727 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2564/0.3371, allocations: 80.36 MB / 0.5207 GB, free: 13.01 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001719/0.3373, allocations: 72.48 kB / 0.5208 GB, free: 13.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0122/0.3495, allocations: 4.776 MB / 0.5255 GB, free: 12.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3495, allocations: 0 / 0.5255 GB, free: 12.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.3495, allocations: 7.812 kB / 0.5255 GB, free: 12.31 MB / 362.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.0007629/0.3503, allocations: 0.5856 MB / 0.526 GB, free: 11.79 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.852e-05/0.3504, allocations: 11.5 kB / 0.526 GB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.108e-05/0.3504, allocations: 23.25 kB / 0.5261 GB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005418/0.351, allocations: 330.2 kB / 0.5264 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.351, allocations: 6.594 kB / 0.5264 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.601e-05/0.351, allocations: 10.56 kB / 0.5264 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002275/0.3512, allocations: 165.6 kB / 0.5266 GB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.3513, allocations: 0 / 0.5266 GB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.3513, allocations: 1.625 kB / 0.5266 GB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.3513, allocations: 7.75 kB / 0.5266 GB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002256/0.3515, allocations: 143.1 kB / 0.5267 GB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005417/0.3521, allocations: 0.4938 MB / 0.5272 GB, free: 11.06 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003539/0.3524, allocations: 200.9 kB / 0.5274 GB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.3525, allocations: 7.188 kB / 0.5274 GB, free: 11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002091/0.3527, allocations: 193.7 kB / 0.5276 GB, free: 10.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.463e-06/0.3527, allocations: 3.688 kB / 0.5276 GB, free: 10.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.001102/0.3538, allocations: 0.7001 MB / 0.5283 GB, free: 10.51 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.501e-05/0.3538, allocations: 80.95 kB / 0.5283 GB, free: 10.42 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004185/0.3543, allocations: 292.2 kB / 0.5286 GB, free: 10.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.3543, allocations: 29.55 kB / 0.5286 GB, free: 10.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.487e-05/0.3543, allocations: 131 kB / 0.5288 GB, free: 10.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.429e-05/0.3544, allocations: 65.42 kB / 0.5288 GB, free: 10.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.113e-05/0.3544, allocations: 7.094 kB / 0.5288 GB, free: 10.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.63e-05/0.3545, allocations: 334.1 kB / 0.5292 GB, free: 9.781 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.3546, allocations: 87.95 kB / 0.5292 GB, free: 9.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/0.3547, allocations: 94.25 kB / 0.5293 GB, free: 9.754 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.3549, allocations: 134.5 kB / 0.5295 GB, free: 9.707 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3549, allocations: 4 kB / 0.5295 GB, free: 9.703 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005582/0.3555, allocations: 429.3 kB / 0.5299 GB, free: 9.555 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/0.3555, allocations: 37.5 kB / 0.5299 GB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.3555, allocations: 0 / 0.5299 GB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001954/0.3557, allocations: 49.31 kB / 0.5299 GB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.482e-05/0.3558, allocations: 26.33 kB / 0.53 GB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008888/0.3567, allocations: 1.506 MB / 0.5314 GB, free: 8.137 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002314/0.357, allocations: 50.58 kB / 0.5315 GB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.357, allocations: 3.812 kB / 0.5315 GB, free: 8.113 MB / 362.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.0001508/0.3572, allocations: 193.7 kB / 0.5317 GB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.424e-05/0.3572, allocations: 27.31 kB / 0.5317 GB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.134e-05/0.3573, allocations: 37.45 kB / 0.5317 GB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.3573, allocations: 5.281 kB / 0.5317 GB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.3573, allocations: 1.312 kB / 0.5317 GB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3573, allocations: 3.938 kB / 0.5318 GB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001965/0.3575, allocations: 299 kB / 0.532 GB, free: 7.672 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3575, allocations: 0 / 0.532 GB, free: 7.672 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.3576, allocations: 17.14 kB / 0.5321 GB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001451/0.3578, allocations: 51.88 kB / 0.5321 GB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.3578, allocations: 11.61 kB / 0.5321 GB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008416/0.3586, allocations: 1.516 MB / 0.5336 GB, free: 6.285 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3587, allocations: 4.062 kB / 0.5336 GB, free: 6.281 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007733/0.3594, allocations: 0.5792 MB / 0.5342 GB, free: 6.074 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.776e-05/0.3595, allocations: 96.48 kB / 0.5343 GB, free: 5.969 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.472e-05/0.3595, allocations: 10.62 kB / 0.5343 GB, free: 5.969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002336/0.3598, allocations: 34.81 kB / 0.5343 GB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.3598, allocations: 11.64 kB / 0.5343 GB, free: 5.949 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.3599, allocations: 15.05 kB / 0.5343 GB, free: 5.945 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003675/0.3602, allocations: 240 kB / 0.5346 GB, free: 5.828 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3602, allocations: 0 / 0.5346 GB, free: 5.828 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002934/0.3605, allocations: 76.84 kB / 0.5346 GB, free: 5.812 MB / 362.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.0001604/0.3607, allocations: 144.7 kB / 0.5348 GB, free: 5.707 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000516/0.3612, allocations: 429.2 kB / 0.5352 GB, free: 5.496 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3612, allocations: 3.844 kB / 0.5352 GB, free: 5.496 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002772/0.3615, allocations: 325.9 kB / 0.5355 GB, free: 5.289 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001901/0.3617, allocations: 27.02 kB / 0.5355 GB, free: 5.285 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000581/0.3623, allocations: 0.5243 MB / 0.536 GB, free: 4.965 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001379/0.3625, allocations: 0.7651 MB / 0.5368 GB, free: 4.227 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.673e-05/0.3625, allocations: 36.73 kB / 0.5368 GB, free: 4.211 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.264e-05/0.3626, allocations: 11.28 kB / 0.5368 GB, free: 4.203 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3626, allocations: 3.844 kB / 0.5368 GB, free: 4.203 MB / 362.7 MB Notification: Performance of Templates: time 0.004277/0.3669, allocations: 2.555 MB / 0.5393 GB, free: 2.969 MB / 362.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)