Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.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.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008887/0.008887, allocations: 99.61 kB / 15.73 MB, free: 6.008 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.002181/0.002181, allocations: 196.2 kB / 16.67 MB, free: 5.93 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.499/1.499, allocations: 222.9 MB / 240.4 MB, free: 4.203 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2374/0.2374, allocations: 22.35 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 62.62 kB / 437.1 MB, free: 33.89 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1211, allocations: 54.96 MB / 492 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001991/0.1232, allocations: 1.025 MB / 493 MB, free: 340 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001586/0.1248, allocations: 1.202 MB / 494.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.1249, allocations: 4 kB / 494.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000353/0.1253, allocations: 51.7 kB / 494.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001943/0.1255, allocations: 43.77 kB / 494.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002297/0.1258, allocations: 79.88 kB / 494.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003145/0.1261, allocations: 215.6 kB / 494.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.1262, allocations: 29.48 kB / 494.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.1264, allocations: 91.66 kB / 494.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.1266, allocations: 91.64 kB / 494.8 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.119e-05/0.1266, allocations: 8 kB / 494.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.474e-05/0.1266, allocations: 12 kB / 494.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.456e-05/0.1267, allocations: 39.84 kB / 494.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.121e-05/0.1268, allocations: 55.66 kB / 494.9 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001983/0.127, allocations: 135.5 kB / 495.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.127, allocations: 7.938 kB / 495.1 MB, free: 14.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.127, allocations: 0 / 495.1 MB, free: 14.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.127, allocations: 0 / 495.1 MB, free: 14.26 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001145/0.1282, allocations: 0.5159 MB / 495.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.1282, allocations: 8.031 kB / 495.6 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.683e-05/0.1283, allocations: 16.75 kB / 495.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005864/0.1289, allocations: 288.7 kB / 495.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.1289, allocations: 4.375 kB / 495.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.78e-05/0.1289, allocations: 12.38 kB / 495.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002299/0.1292, allocations: 122.6 kB / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.1292, allocations: 3.938 kB / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.1292, allocations: 0 / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1292, allocations: 0 / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.1294, allocations: 91.94 kB / 496.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008107/0.1303, allocations: 0.5827 MB / 496.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003861/0.1307, allocations: 142.6 kB / 496.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.859e-05/0.1308, allocations: 56.77 kB / 496.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.1308, allocations: 0 / 496.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.1308, allocations: 38.56 kB / 497 MB, free: 12.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.1308, allocations: 0 / 497 MB, free: 12.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.000405/0.1312, allocations: 165.4 kB / 497.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.1313, allocations: 51.41 kB / 497.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004881/0.1318, allocations: 262.6 kB / 497.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.1318, allocations: 25.7 kB / 497.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.178e-05/0.1319, allocations: 120.1 kB / 497.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.465e-05/0.1319, allocations: 35.45 kB / 497.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.029e-05/0.132, allocations: 33.72 kB / 497.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.1321, allocations: 334.8 kB / 498 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-05/0.1322, allocations: 35.98 kB / 498 MB, free: 11.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.852e-05/0.1323, allocations: 62.55 kB / 498.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007903/0.1331, allocations: 253.4 kB / 498.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1331, allocations: 384 / 498.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002721/0.1334, allocations: 157.4 kB / 498.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.1335, allocations: 8.062 kB / 498.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1335, allocations: 4 kB / 498.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.1335, allocations: 3.938 kB / 498.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.1336, allocations: 27.94 kB / 498.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.1336, allocations: 7.922 kB / 498.5 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001999/0.1338, allocations: 31.81 kB / 498.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.1339, allocations: 4 kB / 498.5 MB, free: 10.55 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: g.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cps.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001381/0.134, allocations: 137.8 kB / 498.7 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.08e-05/0.134, allocations: 15.81 kB / 498.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.039e-05/0.1341, allocations: 21.41 kB / 498.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1341, allocations: 3.938 kB / 498.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1341, allocations: 3.938 kB / 498.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.1341, allocations: 7.984 kB / 498.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002459/0.1344, allocations: 233.5 kB / 499 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1344, allocations: 0 / 499 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001264/0.1345, allocations: 20 kB / 499 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.1345, allocations: 4 kB / 499 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.1346, allocations: 0 / 499 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1346, allocations: 0 / 499 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.1346, allocations: 7.938 kB / 499 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003745/0.1349, allocations: 283.2 kB / 499.3 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.51e-05/0.135, allocations: 96.86 kB / 499.4 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.95e-05/0.1351, allocations: 8.031 kB / 499.4 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.1353, allocations: 23.97 kB / 499.4 MB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.756e-05/0.1354, allocations: 15.92 kB / 499.4 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.231e-06/0.1354, allocations: 0 / 499.4 MB, free: 9.586 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003972/0.1358, allocations: 191.2 kB / 499.6 MB, free: 9.398 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1358, allocations: 4 kB / 499.6 MB, free: 9.395 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002593/0.136, allocations: 24 kB / 499.6 MB, free: 9.371 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (N.y,Cps.x_scaled[1],g.x_scaled[1]) * 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 (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001122/0.1362, allocations: 99.19 kB / 499.7 MB, free: 9.266 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002611/0.1364, allocations: 107.9 kB / 499.8 MB, free: 9.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1364, allocations: 96 / 499.8 MB, free: 9.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.032e-05/0.1365, allocations: 51.91 kB / 499.9 MB, free: 9.109 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.1369, allocations: 27.98 kB / 499.9 MB, free: 9.082 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006932/0.1376, allocations: 333 kB / 0.4885 GB, free: 8.734 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.138, allocations: 0.724 MB / 0.4892 GB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.156e-05/0.1381, allocations: 25.06 kB / 0.4892 GB, free: 7.961 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.867e-05/0.1381, allocations: 15.44 kB / 0.4892 GB, free: 7.945 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1381, allocations: 0 / 0.4892 GB, free: 7.945 MB / 366.1 MB Notification: Performance of Templates: time 0.004202/0.1424, allocations: 1.329 MB / 0.4905 GB, free: 6.625 MB / 366.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1)