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.00556/0.00556, allocations: 102.8 kB / 15.73 MB, free: 5.586 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.001156/0.001156, allocations: 188.4 kB / 16.67 MB, free: 5.523 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0894/0.0894, allocations: 22.32 MB / 312.8 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 59.91 kB / 437 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1186, allocations: 54.97 MB / 492 MB, free: 4.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002515/0.1212, allocations: 0.9985 MB / 493 MB, free: 3.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.1231, allocations: 1.217 MB / 494.2 MB, free: 2.516 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.1232, allocations: 7.875 kB / 494.2 MB, free: 2.508 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003576/0.1236, allocations: 39.75 kB / 494.2 MB, free: 2.469 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001694/0.1238, allocations: 43.77 kB / 494.3 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002254/0.1241, allocations: 91.81 kB / 494.4 MB, free: 2.336 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002837/0.1243, allocations: 211.6 kB / 494.6 MB, free: 2.129 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.1245, allocations: 29.42 kB / 494.6 MB, free: 2.094 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001284/0.1246, allocations: 87.67 kB / 494.7 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000194/0.1248, allocations: 95.64 kB / 494.8 MB, free: 1.914 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.121e-05/0.1249, allocations: 8 kB / 494.8 MB, free: 1.906 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.754e-05/0.1249, allocations: 12 kB / 494.8 MB, free: 1.895 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.216e-05/0.125, allocations: 43.83 kB / 494.9 MB, free: 1.852 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.029e-05/0.1251, allocations: 59.59 kB / 494.9 MB, free: 1.793 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002069/0.1253, allocations: 131.5 kB / 495 MB, free: 1.664 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1253, allocations: 0 / 495 MB, free: 1.664 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1253, allocations: 0 / 495 MB, free: 1.664 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.1253, allocations: 0 / 495 MB, free: 1.664 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.001101/0.1264, allocations: 0.5143 MB / 495.6 MB, free: 1.102 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.1265, allocations: 8.031 kB / 495.6 MB, free: 1.094 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.019e-05/0.1265, allocations: 20.75 kB / 495.6 MB, free: 1.074 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005151/0.127, allocations: 292.6 kB / 495.9 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.1271, allocations: 4.375 kB / 495.9 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.924e-05/0.1271, allocations: 12.38 kB / 495.9 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002221/0.1273, allocations: 138.5 kB / 496 MB, free: 0.582 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.1273, allocations: 3.938 kB / 496 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.1274, allocations: 0 / 496 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.1274, allocations: 4 kB / 496 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001833/0.1276, allocations: 87.88 kB / 496.1 MB, free: 500 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007123/0.1283, allocations: 0.575 MB / 496.7 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.1286, allocations: 142.4 kB / 496.8 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.079e-05/0.1287, allocations: 48.83 kB / 496.9 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.161e-05/0.1288, allocations: 0 / 496.9 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.1288, allocations: 38.56 kB / 496.9 MB, free: 15.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 8.62e-07/0.1288, allocations: 0 / 496.9 MB, free: 15.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003767/0.1292, allocations: 165.6 kB / 497.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.1292, allocations: 51.41 kB / 497.1 MB, free: 15.38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004424/0.1297, allocations: 262.6 kB / 497.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/0.1297, allocations: 25.7 kB / 497.4 MB, free: 15.08 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.244e-05/0.1298, allocations: 116 kB / 497.5 MB, free: 14.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.283e-05/0.1298, allocations: 43.52 kB / 497.6 MB, free: 14.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.391e-05/0.1299, allocations: 33.7 kB / 497.6 MB, free: 14.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.13, allocations: 326.8 kB / 497.9 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.462e-05/0.1301, allocations: 35.97 kB / 498 MB, free: 14.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.096e-05/0.1302, allocations: 70.48 kB / 498 MB, free: 14.44 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000727/0.1309, allocations: 253.1 kB / 498.3 MB, free: 14.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1309, allocations: 0 / 498.3 MB, free: 14.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002555/0.1312, allocations: 161.4 kB / 498.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.1312, allocations: 4 kB / 498.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1312, allocations: 4 kB / 498.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.1312, allocations: 0 / 498.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.1314, allocations: 27.98 kB / 498.5 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.1314, allocations: 3.938 kB / 498.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/0.1316, allocations: 35.94 kB / 498.5 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.1316, allocations: 4 kB / 498.5 MB, free: 13.95 MB / 382.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.0001338/0.1317, allocations: 134.1 kB / 498.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.85e-05/0.1318, allocations: 15.81 kB / 498.6 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.883e-05/0.1318, allocations: 25.39 kB / 498.7 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.1318, allocations: 7.938 kB / 498.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.1318, allocations: 7.938 kB / 498.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1318, allocations: 0 / 498.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000229/0.1321, allocations: 229.5 kB / 498.9 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1321, allocations: 0 / 498.9 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/0.1322, allocations: 23.98 kB / 498.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-06/0.1322, allocations: 0 / 498.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.1322, allocations: 0 / 498.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.1323, allocations: 4 kB / 498.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1323, allocations: 3.938 kB / 498.9 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003454/0.1326, allocations: 279.2 kB / 499.2 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.395e-05/0.1327, allocations: 96.95 kB / 499.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.1327, allocations: 4.094 kB / 499.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.1329, allocations: 23.91 kB / 499.3 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.699e-05/0.133, allocations: 15.91 kB / 499.4 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.535e-06/0.133, allocations: 4 kB / 499.4 MB, free: 12.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003705/0.1334, allocations: 195.2 kB / 499.5 MB, free: 12.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1334, allocations: 3.938 kB / 499.6 MB, free: 12.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002474/0.1336, allocations: 24 kB / 499.6 MB, free: 12.77 MB / 382.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 8.966e-05/0.1337, allocations: 99.23 kB / 499.7 MB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002253/0.134, allocations: 103.9 kB / 499.8 MB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.134, allocations: 0 / 499.8 MB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.115e-05/0.1341, allocations: 55.91 kB / 499.8 MB, free: 12.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.1344, allocations: 25.92 kB / 499.9 MB, free: 12.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005765/0.135, allocations: 336.8 kB / 0.4885 GB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.1352, allocations: 0.7319 MB / 0.4892 GB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.109e-05/0.1353, allocations: 25.08 kB / 0.4892 GB, free: 11.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.023e-05/0.1354, allocations: 15.42 kB / 0.4892 GB, free: 11.34 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.1354, allocations: 0 / 0.4892 GB, free: 11.34 MB / 382.1 MB Notification: Performance of Templates: time 0.003849/0.1393, allocations: 1.346 MB / 0.4905 GB, free: 10 MB / 382.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)