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.001104/0.001104, allocations: 107 kB / 16.36 MB, free: 6.336 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.001712/0.001712, allocations: 195.3 kB / 17.29 MB, free: 5.883 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.405/1.405, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09828/0.09828, allocations: 22.33 MB / 313.5 MB, free: 8.918 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 62.16 kB / 382.2 MB, free: 41.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1048, allocations: 54.96 MB / 437.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2): time 0.003485/0.1084, allocations: 2.13 MB / 439.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.1097, allocations: 0.7326 MB / 440.1 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.1099, allocations: 7.938 kB / 440.1 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004311/0.1104, allocations: 47.58 kB / 440.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002285/0.1106, allocations: 71.5 kB / 440.2 MB, free: 9.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004739/0.1111, allocations: 214.5 kB / 440.4 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004758/0.1116, allocations: 411.2 kB / 440.8 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002556/0.1119, allocations: 120.2 kB / 440.9 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002083/0.1121, allocations: 159.4 kB / 441.1 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002788/0.1124, allocations: 179.2 kB / 441.2 MB, free: 8.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.14e-05/0.1124, allocations: 32 kB / 441.3 MB, free: 8.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.586e-05/0.1125, allocations: 32 kB / 441.3 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001446/0.1126, allocations: 107.7 kB / 441.4 MB, free: 8.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001482/0.1128, allocations: 155 kB / 441.6 MB, free: 7.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000392/0.1132, allocations: 362.7 kB / 441.9 MB, free: 7.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1132, allocations: 0 / 441.9 MB, free: 7.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1132, allocations: 0 / 441.9 MB, free: 7.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.1132, allocations: 4 kB / 441.9 MB, free: 7.555 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.00162/0.1149, allocations: 0.7285 MB / 442.6 MB, free: 6.777 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.1149, allocations: 8.031 kB / 442.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.487e-05/0.115, allocations: 40.47 kB / 442.7 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007932/0.1158, allocations: 391.2 kB / 443.1 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.1158, allocations: 16.81 kB / 443.1 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.092e-05/0.1159, allocations: 24.38 kB / 443.1 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005354/0.1164, allocations: 298.8 kB / 443.4 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.1165, allocations: 0 / 443.4 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.807e-05/0.1165, allocations: 12 kB / 443.4 MB, free: 5.953 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.1165, allocations: 4 kB / 443.4 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000522/0.117, allocations: 237.6 kB / 443.7 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.1185, allocations: 0.83 MB / 444.5 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009228/0.1194, allocations: 330.2 kB / 444.8 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003665/0.1198, allocations: 135.2 kB / 444.9 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.1199, allocations: 8 kB / 444.9 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.1199, allocations: 38.56 kB / 445 MB, free: 4.309 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.754e-06/0.1199, allocations: 0 / 445 MB, free: 4.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.003834/0.1237, allocations: 1.004 MB / 446 MB, free: 3.254 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.598e-05/0.1238, allocations: 118.6 kB / 446.1 MB, free: 3.113 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007938/0.1246, allocations: 346.9 kB / 446.4 MB, free: 2.766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.609e-05/0.1247, allocations: 29.7 kB / 446.5 MB, free: 2.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001778/0.1249, allocations: 180.2 kB / 446.6 MB, free: 2.547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.125, allocations: 86.73 kB / 446.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.1252, allocations: 45.7 kB / 446.8 MB, free: 2.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.1254, allocations: 342.8 kB / 447.1 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004338/0.1258, allocations: 120.8 kB / 447.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004784/0.1263, allocations: 163.6 kB / 447.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002675/0.129, allocations: 0.6376 MB / 448 MB, free: 1.137 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.129, allocations: 0 / 448 MB, free: 1.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001959/0.131, allocations: 0.5649 MB / 448.6 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.131, allocations: 10.34 kB / 448.6 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.131, allocations: 3.938 kB / 448.6 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006273/0.1317, allocations: 157.5 kB / 448.8 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002014/0.1319, allocations: 31.98 kB / 448.8 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006284/0.1382, allocations: 3.905 MB / 452.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004668/0.1387, allocations: 55.88 kB / 452.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.45e-05/0.1387, allocations: 12 kB / 452.8 MB, free: 12.1 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.0004192/0.1391, allocations: 213 kB / 453 MB, free: 11.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000285/0.1394, allocations: 134.8 kB / 453.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0022/0.1416, allocations: 0.571 MB / 453.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.854e-06/0.1417, allocations: 0 / 453.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.00119/0.1429, allocations: 430.9 kB / 454.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.1429, allocations: 8 kB / 454.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.076e-06/0.1429, allocations: 0 / 454.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004476/0.1433, allocations: 121.6 kB / 454.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000268/0.1436, allocations: 27.92 kB / 454.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004389/0.148, allocations: 3.684 MB / 457.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004416/0.1485, allocations: 51.89 kB / 458 MB, free: 6.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.96e-05/0.1485, allocations: 4 kB / 458 MB, free: 6.562 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.0002152/0.1488, allocations: 205.9 kB / 458.2 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.558e-05/0.1489, allocations: 31.56 kB / 458.2 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.149, allocations: 50.28 kB / 458.3 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.149, allocations: 4.188 kB / 458.3 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.149, allocations: 4 kB / 458.3 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.149, allocations: 0 / 458.3 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005742/0.1496, allocations: 385.2 kB / 458.7 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.1496, allocations: 0 / 458.7 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002249/0.1499, allocations: 27.98 kB / 458.7 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007656/0.1506, allocations: 177.5 kB / 458.9 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.531e-05/0.1507, allocations: 7.938 kB / 458.9 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004843/0.1555, allocations: 3.669 MB / 462.5 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.1556, allocations: 0 / 462.5 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001661/0.1572, allocations: 0.7326 MB / 463.3 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.1574, allocations: 108.7 kB / 463.4 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.043e-05/0.1574, allocations: 11.98 kB / 463.4 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003566/0.1578, allocations: 47.88 kB / 463.4 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.1579, allocations: 27.97 kB / 463.5 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.571e-05/0.1579, allocations: 4 kB / 463.5 MB, free: 0.707 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005754/0.1585, allocations: 261.9 kB / 463.7 MB, free: 464 kB / 334.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1585, allocations: 0 / 463.7 MB, free: 464 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007928/0.1593, allocations: 131.7 kB / 463.8 MB, free: 332 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.0002121/0.1595, allocations: 115.2 kB / 464 MB, free: 204 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001842/0.1614, allocations: 0.9709 MB / 464.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.1614, allocations: 0 / 464.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006312/0.1621, allocations: 424 kB / 465.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004738/0.1625, allocations: 56.5 kB / 465.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001557/0.1641, allocations: 0.7034 MB / 466.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005055/0.1646, allocations: 0.7999 MB / 466.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001974/0.1648, allocations: 74.22 kB / 467 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.448e-05/0.1649, allocations: 19.44 kB / 467 MB, free: 13.04 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1649, allocations: 0 / 467 MB, free: 13.04 MB / 350.1 MB Notification: Performance of Templates: time 0.01226/0.1772, allocations: 6.402 MB / 473.4 MB, free: 6.664 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 cvode -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_compare2.pipe 2>&1)