Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2") translateModel(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 110.9 kB / 16.37 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 189.9 kB / 17.3 MB, free: 5.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0924/0.0924, allocations: 22.32 MB / 313.5 MB, free: 8.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 66.53 kB / 382.2 MB, free: 41.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0945/0.09587, allocations: 54.96 MB / 437.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.003221/0.09913, allocations: 2.127 MB / 439.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001124/0.1003, allocations: 0.7326 MB / 440.1 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.1004, allocations: 4 kB / 440.1 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002974/0.1007, allocations: 59.52 kB / 440.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001898/0.1009, allocations: 67.5 kB / 440.2 MB, free: 9.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004046/0.1013, allocations: 207.7 kB / 440.4 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003968/0.1017, allocations: 415.2 kB / 440.8 MB, free: 8.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.102, allocations: 112.2 kB / 440.9 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000173/0.1021, allocations: 159.4 kB / 441.1 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002246/0.1024, allocations: 179.3 kB / 441.2 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.05e-05/0.1024, allocations: 32 kB / 441.3 MB, free: 8.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.61e-05/0.1025, allocations: 36 kB / 441.3 MB, free: 8.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.1026, allocations: 103.7 kB / 441.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001295/0.1027, allocations: 155.1 kB / 441.6 MB, free: 7.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003098/0.1031, allocations: 366.6 kB / 441.9 MB, free: 7.547 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1031, allocations: 4 kB / 441.9 MB, free: 7.543 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1031, allocations: 0 / 441.9 MB, free: 7.543 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1031, allocations: 4 kB / 441.9 MB, free: 7.539 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001467/0.1046, allocations: 0.7229 MB / 442.6 MB, free: 6.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.1046, allocations: 12.03 kB / 442.7 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.259e-05/0.1047, allocations: 36.47 kB / 442.7 MB, free: 6.723 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007368/0.1054, allocations: 395.2 kB / 443.1 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.1055, allocations: 16.81 kB / 443.1 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.778e-05/0.1055, allocations: 20.38 kB / 443.1 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005249/0.106, allocations: 302.7 kB / 443.4 MB, free: 5.953 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.1061, allocations: 4 kB / 443.4 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.62e-05/0.1061, allocations: 8 kB / 443.4 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.1061, allocations: 4 kB / 443.4 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005344/0.1067, allocations: 241.6 kB / 443.7 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00137/0.108, allocations: 0.8261 MB / 444.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008509/0.1089, allocations: 326.2 kB / 444.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00028/0.1092, allocations: 143.2 kB / 445 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.151e-05/0.1092, allocations: 4 kB / 445 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.1093, allocations: 34.56 kB / 445 MB, free: 4.301 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.452e-06/0.1093, allocations: 0 / 445 MB, free: 4.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.002826/0.1121, allocations: 1.004 MB / 446 MB, free: 3.246 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.234e-05/0.1122, allocations: 118.6 kB / 446.1 MB, free: 3.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000604/0.1128, allocations: 350.9 kB / 446.5 MB, free: 2.754 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.1128, allocations: 33.64 kB / 446.5 MB, free: 2.715 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.1129, allocations: 172.2 kB / 446.7 MB, free: 2.539 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.693e-05/0.113, allocations: 86.75 kB / 446.7 MB, free: 2.453 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.129e-05/0.1131, allocations: 49.69 kB / 446.8 MB, free: 2.398 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.1132, allocations: 338.8 kB / 447.1 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.1135, allocations: 128.8 kB / 447.2 MB, free: 1.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002787/0.1138, allocations: 155.7 kB / 447.4 MB, free: 1.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001998/0.1158, allocations: 0.6454 MB / 448 MB, free: 1.121 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1158, allocations: 0 / 448 MB, free: 1.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001374/0.1172, allocations: 0.5649 MB / 448.6 MB, free: 0.543 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.1172, allocations: 4 kB / 448.6 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.1172, allocations: 3.938 kB / 448.6 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004704/0.1177, allocations: 153.5 kB / 448.8 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/0.1179, allocations: 35.92 kB / 448.8 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00434/0.1222, allocations: 3.9 MB / 452.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003484/0.1226, allocations: 59.88 kB / 452.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/0.1226, allocations: 7.984 kB / 452.8 MB, free: 12.09 MB / 334.1 MB Warning: Assuming fixed start value for the following 4 variables: Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002888/0.1229, allocations: 213 kB / 453 MB, free: 11.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001994/0.1231, allocations: 138.8 kB / 453.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001747/0.1249, allocations: 0.5671 MB / 453.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.123e-06/0.1249, allocations: 0 / 453.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007809/0.1257, allocations: 426.9 kB / 454.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.1257, allocations: 11.98 kB / 454.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.355e-06/0.1257, allocations: 0 / 454.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003163/0.126, allocations: 117.6 kB / 454.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.1262, allocations: 31.92 kB / 454.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003017/0.1292, allocations: 3.684 MB / 457.9 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003132/0.1295, allocations: 47.89 kB / 458 MB, free: 6.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.928e-05/0.1295, allocations: 12 kB / 458 MB, free: 6.555 MB / 334.1 MB Warning: Assuming fixed start value for the following 4 variables: Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001809/0.1297, allocations: 205.9 kB / 458.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.328e-05/0.1298, allocations: 39.56 kB / 458.2 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.1299, allocations: 42.3 kB / 458.3 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1299, allocations: 0 / 458.3 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.13, allocations: 7.938 kB / 458.3 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.13, allocations: 3.984 kB / 458.3 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004863/0.1305, allocations: 385.4 kB / 458.7 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.1305, allocations: 4 kB / 458.7 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002367/0.1307, allocations: 23.98 kB / 458.7 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000707/0.1314, allocations: 177.5 kB / 458.9 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.725e-05/0.1315, allocations: 8 kB / 458.9 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003814/0.1353, allocations: 3.669 MB / 462.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.1353, allocations: 0 / 462.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00146/0.1368, allocations: 0.7326 MB / 463.3 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.1369, allocations: 112.7 kB / 463.4 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.604e-05/0.137, allocations: 11.98 kB / 463.4 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003526/0.1373, allocations: 39.94 kB / 463.4 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.573e-05/0.1374, allocations: 27.97 kB / 463.5 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.1374, allocations: 4 kB / 463.5 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005006/0.1379, allocations: 269.8 kB / 463.7 MB, free: 448 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.138, allocations: 0 / 463.7 MB, free: 448 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006246/0.1386, allocations: 127.7 kB / 463.9 MB, free: 320 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Process_1.x_scaled[1],Process_1.x_scaled[2],PI_1.FO.y,Process_2.x_scaled[1],Process_2.x_scaled[2],PI_2.FO.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001243/0.1387, allocations: 110.1 kB / 464 MB, free: 200 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001669/0.1404, allocations: 0.9786 MB / 464.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1404, allocations: 0 / 464.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005728/0.141, allocations: 432 kB / 465.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.1414, allocations: 56.64 kB / 465.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.1428, allocations: 0.6916 MB / 466.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003923/0.1432, allocations: 0.8038 MB / 466.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00016/0.1433, allocations: 70.48 kB / 467 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.806e-05/0.1434, allocations: 23.42 kB / 467 MB, free: 13.03 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1434, allocations: 0 / 467 MB, free: 13.03 MB / 350.1 MB Notification: Performance of Templates: time 0.01698/0.1604, allocations: 6.396 MB / 473.4 MB, free: 6.66 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.makefile (rm -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.sim & ./AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe 2>&1)