Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.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.Typical_actuation_schemes.TimeDivisionOutput,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput") translateModel(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput") [/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.09219/0.09219, allocations: 21.62 MB / 36.56 MB, free: 1.043 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.0008566/0.0008566, allocations: 179.4 kB / 42.82 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.22/1.22, allocations: 223.2 MB / 272.1 MB, free: 1.789 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.0008919/0.0008919, allocations: 103 kB / 328.7 MB, free: 12.09 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002712, allocations: 8 kB / 397 MB, free: 46.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07497/0.07525, allocations: 55.83 MB / 452.9 MB, free: 6.672 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2532/0.3285, allocations: 80.7 MB / 0.5211 GB, free: 13.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001773/0.3287, allocations: 72.89 kB / 0.5211 GB, free: 13.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008088/0.3368, allocations: 3.274 MB / 0.5243 GB, free: 12.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3368, allocations: 0 / 0.5243 GB, free: 12.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.3369, allocations: 3.906 kB / 0.5243 GB, free: 12.57 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0006472/0.3375, allocations: 0.5426 MB / 0.5249 GB, free: 12.1 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.792e-05/0.3375, allocations: 11.56 kB / 0.5249 GB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.014e-05/0.3376, allocations: 15.5 kB / 0.5249 GB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.338, allocations: 286.8 kB / 0.5252 GB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.338, allocations: 11.22 kB / 0.5252 GB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/0.3381, allocations: 14.03 kB / 0.5252 GB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002789/0.3384, allocations: 174.5 kB / 0.5254 GB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.3384, allocations: 1.922 kB / 0.5254 GB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.3384, allocations: 15.02 kB / 0.5254 GB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.3384, allocations: 3.688 kB / 0.5254 GB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002585/0.3387, allocations: 138.4 kB / 0.5255 GB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007503/0.3394, allocations: 0.5469 MB / 0.526 GB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004315/0.3399, allocations: 182.6 kB / 0.5262 GB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.3399, allocations: 0 / 0.5262 GB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002338/0.3401, allocations: 203 kB / 0.5264 GB, free: 11.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.293e-06/0.3402, allocations: 3.938 kB / 0.5264 GB, free: 11.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.001297/0.3415, allocations: 0.6386 MB / 0.527 GB, free: 10.99 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.77e-05/0.3415, allocations: 166.1 kB / 0.5272 GB, free: 10.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002741/0.3418, allocations: 194 kB / 0.5274 GB, free: 10.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.3418, allocations: 28.89 kB / 0.5274 GB, free: 10.64 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.597e-05/0.3419, allocations: 124.9 kB / 0.5275 GB, free: 10.54 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.444e-05/0.3419, allocations: 45.8 kB / 0.5276 GB, free: 10.51 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.388e-06/0.3419, allocations: 6.812 kB / 0.5276 GB, free: 10.51 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.061e-05/0.342, allocations: 333.1 kB / 0.5279 GB, free: 10.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.3421, allocations: 60.94 kB / 0.5279 GB, free: 10.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.3422, allocations: 90.16 kB / 0.528 GB, free: 10.15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.3424, allocations: 134.6 kB / 0.5282 GB, free: 10.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3424, allocations: 3.688 kB / 0.5282 GB, free: 10.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003439/0.3427, allocations: 281.5 kB / 0.5284 GB, free: 9.938 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.762e-05/0.3428, allocations: 155.4 kB / 0.5286 GB, free: 9.777 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.3428, allocations: 0 / 0.5286 GB, free: 9.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.3428, allocations: 7.797 kB / 0.5286 GB, free: 9.773 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.343, allocations: 28.52 kB / 0.5286 GB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.343, allocations: 3.984 kB / 0.5286 GB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001785/0.3432, allocations: 38.12 kB / 0.5287 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.3432, allocations: 7.844 kB / 0.5287 GB, free: 9.746 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.11e-06/0.3432, allocations: 3.625 kB / 0.5287 GB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002555/0.3435, allocations: 222 kB / 0.5289 GB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-06/0.3435, allocations: 3.875 kB / 0.5289 GB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.735e-06/0.3435, allocations: 7.938 kB / 0.5289 GB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.3436, allocations: 27.16 kB / 0.5289 GB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.733e-06/0.3436, allocations: 0 / 0.5289 GB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.3438, allocations: 30.33 kB / 0.5289 GB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/0.3438, allocations: 7.844 kB / 0.529 GB, free: 9.633 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: 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: 6 ($whenCondition1,$whenCondition2,$PRE.TDO.tdo,TDO.tdo,$PRE.TDO.timeNextEv,TDO.timeNextEv) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001259/0.3439, allocations: 246.7 kB / 0.5292 GB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.676e-05/0.344, allocations: 19.41 kB / 0.5292 GB, free: 9.395 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.825e-05/0.344, allocations: 25.2 kB / 0.5292 GB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.344, allocations: 0 / 0.5292 GB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.344, allocations: 0 / 0.5292 GB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.344, allocations: 3.984 kB / 0.5292 GB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001758/0.3442, allocations: 277.6 kB / 0.5295 GB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3442, allocations: 0 / 0.5295 GB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.3443, allocations: 12.2 kB / 0.5295 GB, free: 9.148 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003384/0.3447, allocations: 161.2 kB / 0.5297 GB, free: 9.074 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.086e-05/0.3447, allocations: 6.531 kB / 0.5297 GB, free: 9.074 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006483/0.3454, allocations: 0.8318 MB / 0.5305 GB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3454, allocations: 0 / 0.5305 GB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007287/0.3461, allocations: 0.5114 MB / 0.531 GB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.446e-05/0.3462, allocations: 88.61 kB / 0.5311 GB, free: 8.176 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.3462, allocations: 7.781 kB / 0.5311 GB, free: 8.176 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.3464, allocations: 30.62 kB / 0.5311 GB, free: 8.164 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.142e-05/0.3465, allocations: 11.36 kB / 0.5311 GB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.3465, allocations: 11.59 kB / 0.5311 GB, free: 8.156 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002193/0.3467, allocations: 164.3 kB / 0.5313 GB, free: 8.059 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3467, allocations: 0 / 0.5313 GB, free: 8.059 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002752/0.347, allocations: 76.75 kB / 0.5314 GB, free: 8.043 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],Cfb.FO.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,TDO.tdo,TDO.timeNextEv) * Number of discrete states: 4 ($whenCondition2,TDO.timeNextEv,TDO.tdo,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 9.781e-05/0.3471, allocations: 123.4 kB / 0.5315 GB, free: 7.941 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000464/0.3476, allocations: 489.5 kB / 0.5319 GB, free: 7.641 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.3476, allocations: 0 / 0.5319 GB, free: 7.641 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003788/0.348, allocations: 239.2 kB / 0.5322 GB, free: 7.543 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001689/0.3482, allocations: 25.67 kB / 0.5322 GB, free: 7.535 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005815/0.3487, allocations: 473.5 kB / 0.5326 GB, free: 7.227 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001137/0.3489, allocations: 0.7388 MB / 0.5334 GB, free: 6.496 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001068/0.349, allocations: 41.02 kB / 0.5334 GB, free: 6.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.564e-05/0.349, allocations: 15.25 kB / 0.5334 GB, free: 6.473 MB / 362.7 MB Notification: Performance of SimCode: time 1.8e-07/0.349, allocations: 0 / 0.5334 GB, free: 6.473 MB / 362.7 MB Notification: Performance of Templates: time 0.003818/0.3529, allocations: 2.357 MB / 0.5357 GB, free: 5.309 MB / 362.7 MB make -j1 -f AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.makefile (rm -f AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.sim & ./AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe 2>&1)