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.09546/0.09546, allocations: 21.61 MB / 37.41 MB, free: 0.7539 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.0009699/0.0009698, allocations: 192.4 kB / 43.63 MB, free: 3.562 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.29/1.29, allocations: 205.1 MB / 254.8 MB, free: 14.25 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.0009475/0.0009474, allocations: 112.1 kB / 307.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 52.56 kB / 372.3 MB, free: 59.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07479/0.076, allocations: 51.98 MB / 424.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002282/0.07833, allocations: 1.806 MB / 426.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000953/0.07929, allocations: 0.7606 MB / 426.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.505e-05/0.07938, allocations: 0 / 426.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003066/0.0797, allocations: 63.78 kB / 426.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001521/0.07986, allocations: 83.7 kB / 427 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003263/0.0802, allocations: 119.7 kB / 427.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002077/0.08041, allocations: 259.5 kB / 427.4 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.08053, allocations: 25.56 kB / 427.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.08064, allocations: 103.6 kB / 427.5 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001888/0.08083, allocations: 159.4 kB / 427.7 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.176e-05/0.08087, allocations: 8 kB / 427.7 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.08099, allocations: 75.92 kB / 427.7 MB, free: 11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.993e-05/0.08109, allocations: 59.81 kB / 427.8 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.733e-05/0.08117, allocations: 79.47 kB / 427.9 MB, free: 10.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000231/0.08141, allocations: 235.2 kB / 428.1 MB, free: 10.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.08142, allocations: 3.938 kB / 428.1 MB, free: 10.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.08143, allocations: 0 / 428.1 MB, free: 10.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.08144, allocations: 0 / 428.1 MB, free: 10.63 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.001211/0.08265, allocations: 0.6209 MB / 428.7 MB, free: 9.957 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.08269, allocations: 8.031 kB / 428.7 MB, free: 9.949 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.241e-05/0.08275, allocations: 24.66 kB / 428.8 MB, free: 9.926 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005135/0.08327, allocations: 314.7 kB / 429.1 MB, free: 9.582 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.08329, allocations: 4.375 kB / 429.1 MB, free: 9.578 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.993e-05/0.08333, allocations: 12.38 kB / 429.1 MB, free: 9.566 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.08355, allocations: 152.3 kB / 429.2 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.08357, allocations: 4 kB / 429.2 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.08359, allocations: 4 kB / 429.3 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.0836, allocations: 0 / 429.3 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.08381, allocations: 135.9 kB / 429.4 MB, free: 9.273 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00062/0.08444, allocations: 0.5003 MB / 429.9 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003731/0.08482, allocations: 198.5 kB / 430.1 MB, free: 8.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.08497, allocations: 104.8 kB / 430.2 MB, free: 8.414 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.085, allocations: 4 kB / 430.2 MB, free: 8.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002191/0.08523, allocations: 186.2 kB / 430.4 MB, free: 8.211 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.783e-06/0.08524, allocations: 0 / 430.4 MB, free: 8.211 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.001053/0.0863, allocations: 0.5827 MB / 430.9 MB, free: 7.594 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.986e-05/0.08634, allocations: 81.11 kB / 431 MB, free: 7.496 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004257/0.08677, allocations: 312.9 kB / 431.3 MB, free: 7.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.08679, allocations: 29.64 kB / 431.4 MB, free: 7.145 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.856e-05/0.08685, allocations: 144 kB / 431.5 MB, free: 7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.097e-05/0.08689, allocations: 55.2 kB / 431.6 MB, free: 6.945 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.459e-05/0.08695, allocations: 37.7 kB / 431.6 MB, free: 6.902 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.801e-05/0.08701, allocations: 330.8 kB / 431.9 MB, free: 6.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.08713, allocations: 87.95 kB / 432 MB, free: 6.484 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.08724, allocations: 87.95 kB / 432.1 MB, free: 6.398 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.0883, allocations: 0.5852 MB / 432.7 MB, free: 5.785 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.08832, allocations: 0 / 432.7 MB, free: 5.785 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004842/0.08881, allocations: 387.7 kB / 433.1 MB, free: 5.391 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.08884, allocations: 45.69 kB / 433.1 MB, free: 5.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.08885, allocations: 0 / 433.1 MB, free: 5.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001737/0.08903, allocations: 48.81 kB / 433.1 MB, free: 5.289 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.131e-05/0.08913, allocations: 27.92 kB / 433.2 MB, free: 5.262 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008807/0.09002, allocations: 1.503 MB / 434.7 MB, free: 3.617 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002247/0.09026, allocations: 43.77 kB / 434.7 MB, free: 3.574 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.09028, allocations: 4 kB / 434.7 MB, free: 3.57 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.0001386/0.09043, allocations: 195.5 kB / 434.9 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.075e-05/0.09046, allocations: 23.72 kB / 434.9 MB, free: 3.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.188e-05/0.09052, allocations: 26.19 kB / 435 MB, free: 3.316 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.09053, allocations: 7.984 kB / 435 MB, free: 3.309 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.09054, allocations: 0 / 435 MB, free: 3.309 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.09054, allocations: 3.938 kB / 435 MB, free: 3.305 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001711/0.09072, allocations: 285.5 kB / 435.3 MB, free: 2.977 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.09073, allocations: 4.141 kB / 435.3 MB, free: 2.973 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.09084, allocations: 15.98 kB / 435.3 MB, free: 2.957 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001386/0.09098, allocations: 60.73 kB / 435.3 MB, free: 2.895 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/0.09101, allocations: 11.98 kB / 435.3 MB, free: 2.883 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008051/0.09182, allocations: 1.491 MB / 436.8 MB, free: 1.258 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.09184, allocations: 0 / 436.8 MB, free: 1.258 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005337/0.09718, allocations: 4.841 MB / 441.7 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.46e-05/0.09726, allocations: 96.95 kB / 441.8 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.188e-05/0.0973, allocations: 8 kB / 441.8 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.09753, allocations: 32.02 kB / 441.8 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.732e-05/0.0976, allocations: 15.92 kB / 441.8 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.373e-05/0.09763, allocations: 8 kB / 441.8 MB, free: 11.92 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004408/0.09808, allocations: 248.3 kB / 442.1 MB, free: 11.68 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09809, allocations: 0 / 442.1 MB, free: 11.68 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003692/0.09846, allocations: 95.84 kB / 442.2 MB, free: 11.58 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 (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.0001709/0.09864, allocations: 127.2 kB / 442.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005771/0.09923, allocations: 430 kB / 442.7 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.09924, allocations: 0 / 442.7 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003421/0.09959, allocations: 326 kB / 443 MB, free: 10.66 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/0.09985, allocations: 36.5 kB / 443.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009977/0.1009, allocations: 0.916 MB / 444 MB, free: 9.645 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.1011, allocations: 0.7716 MB / 444.8 MB, free: 8.848 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.263e-05/0.1012, allocations: 25.41 kB / 444.8 MB, free: 8.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.968e-05/0.1013, allocations: 15.44 kB / 444.8 MB, free: 8.805 MB / 314.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1013, allocations: 4 kB / 444.8 MB, free: 8.801 MB / 314.7 MB Notification: Performance of Templates: time 0.005977/0.1073, allocations: 3.59 MB / 448.4 MB, free: 5.211 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)