Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.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_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009284/0.009284, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.002326/0.002326, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.44/1.44, allocations: 222.9 MB / 240.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08832/0.08832, allocations: 22.33 MB / 312.9 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 59.91 kB / 437 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1221, allocations: 54.95 MB / 492 MB, free: 4.781 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002578/0.1247, allocations: 1.414 MB / 493.4 MB, free: 3.367 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001826/0.1266, allocations: 1.369 MB / 494.8 MB, free: 1.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001838/0.1268, allocations: 4 kB / 494.8 MB, free: 1.977 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003915/0.1272, allocations: 83.42 kB / 494.9 MB, free: 1.895 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002846/0.1275, allocations: 95.39 kB / 494.9 MB, free: 1.801 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003672/0.1279, allocations: 171.7 kB / 495.1 MB, free: 1.633 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004972/0.1284, allocations: 367.7 kB / 495.5 MB, free: 1.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.1286, allocations: 91.33 kB / 495.6 MB, free: 1.184 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002613/0.1288, allocations: 151.4 kB / 495.7 MB, free: 1.035 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002994/0.1291, allocations: 159.2 kB / 495.9 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.365e-05/0.1292, allocations: 20 kB / 495.9 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.819e-05/0.1293, allocations: 20 kB / 495.9 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.1294, allocations: 79.72 kB / 496 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.1295, allocations: 119.1 kB / 496.1 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003147/0.1298, allocations: 258.7 kB / 496.4 MB, free: 400 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1299, allocations: 3.938 kB / 496.4 MB, free: 396 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1299, allocations: 0 / 496.4 MB, free: 396 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.1299, allocations: 0 / 496.4 MB, free: 396 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001555/0.1314, allocations: 0.6968 MB / 497.1 MB, free: 15.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.1315, allocations: 8.031 kB / 497.1 MB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.432e-05/0.1316, allocations: 40.7 kB / 497.1 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007811/0.1324, allocations: 387.5 kB / 497.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.1324, allocations: 12.38 kB / 497.5 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.73e-05/0.1324, allocations: 20.38 kB / 497.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003775/0.1328, allocations: 215.5 kB / 497.7 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.1328, allocations: 3.938 kB / 497.7 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.091e-05/0.1329, allocations: 12 kB / 497.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.1329, allocations: 8 kB / 497.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002905/0.1332, allocations: 156.7 kB / 497.9 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.1343, allocations: 0.9476 MB / 498.8 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00055/0.1349, allocations: 244.8 kB / 499.1 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001408/0.135, allocations: 80.77 kB / 499.2 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.135, allocations: 0 / 499.2 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.1351, allocations: 38.56 kB / 499.2 MB, free: 13.35 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.102e-06/0.1351, allocations: 0 / 499.2 MB, free: 13.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004903/0.1356, allocations: 256 kB / 499.4 MB, free: 13.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.1356, allocations: 59.39 kB / 499.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007213/0.1363, allocations: 368.5 kB / 499.9 MB, free: 12.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.1364, allocations: 33.64 kB / 499.9 MB, free: 12.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.1365, allocations: 176.4 kB / 0.4884 GB, free: 12.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.597e-05/0.1366, allocations: 79.31 kB / 0.4884 GB, free: 12.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.721e-05/0.1367, allocations: 45.7 kB / 0.4885 GB, free: 12.31 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.1368, allocations: 342.8 kB / 0.4888 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001279/0.1369, allocations: 72.12 kB / 0.4889 GB, free: 11.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/0.1371, allocations: 104.7 kB / 0.489 GB, free: 11.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.1381, allocations: 375.4 kB / 0.4893 GB, free: 11.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1382, allocations: 0 / 0.4893 GB, free: 11.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003933/0.1386, allocations: 253.3 kB / 0.4896 GB, free: 11.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.1386, allocations: 8 kB / 0.4896 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.1386, allocations: 0 / 0.4896 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.1386, allocations: 4 kB / 0.4896 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.1388, allocations: 43.92 kB / 0.4896 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.1388, allocations: 11.92 kB / 0.4896 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002866/0.1391, allocations: 43.84 kB / 0.4897 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/0.1392, allocations: 8.031 kB / 0.4897 GB, free: 11.03 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: g2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] g1.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: 5 * Number of states: 0 () * Number of discrete variables: 2 (Cs.local_reset,N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001827/0.1393, allocations: 157.7 kB / 0.4898 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.127e-05/0.1394, allocations: 27.81 kB / 0.4899 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.372e-05/0.1395, allocations: 34.31 kB / 0.4899 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1395, allocations: 0 / 0.4899 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1395, allocations: 3.938 kB / 0.4899 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1395, allocations: 4 kB / 0.4899 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003504/0.1399, allocations: 325.4 kB / 0.4902 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.1399, allocations: 4 kB / 0.4902 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001925/0.1401, allocations: 35.98 kB / 0.4902 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.1401, allocations: 0 / 0.4902 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.1401, allocations: 4 kB / 0.4902 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.1401, allocations: 0 / 0.4902 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.1401, allocations: 3.938 kB / 0.4903 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005301/0.1407, allocations: 395.1 kB / 0.4906 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.853e-05/0.1408, allocations: 116.9 kB / 0.4907 GB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/0.1408, allocations: 8 kB / 0.4907 GB, free: 9.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002989/0.1411, allocations: 27.95 kB / 0.4908 GB, free: 9.812 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.839e-05/0.1412, allocations: 19.86 kB / 0.4908 GB, free: 9.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.819e-06/0.1412, allocations: 4 kB / 0.4908 GB, free: 9.789 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005965/0.1418, allocations: 287 kB / 0.4911 GB, free: 9.508 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1418, allocations: 0 / 0.4911 GB, free: 9.508 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000304/0.1421, allocations: 43.95 kB / 0.4911 GB, free: 9.465 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (N.y,g1.x_scaled[1],g2.x_scaled[1],Cs.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 (20): * Single equations (assignments): 20 * 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.000115/0.1422, allocations: 107.2 kB / 0.4912 GB, free: 9.348 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003531/0.1426, allocations: 171.8 kB / 0.4914 GB, free: 9.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1426, allocations: 0 / 0.4914 GB, free: 9.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.1428, allocations: 85.62 kB / 0.4915 GB, free: 9.098 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004126/0.1432, allocations: 52.55 kB / 0.4915 GB, free: 9.047 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009089/0.1441, allocations: 0.5344 MB / 0.492 GB, free: 8.484 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.1444, allocations: 0.7907 MB / 0.4928 GB, free: 7.668 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001205/0.1446, allocations: 34.28 kB / 0.4928 GB, free: 7.633 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.214e-05/0.1447, allocations: 23.44 kB / 0.4929 GB, free: 7.609 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1447, allocations: 0 / 0.4929 GB, free: 7.609 MB / 382.1 MB Notification: Performance of Templates: time 0.005237/0.1499, allocations: 2.151 MB / 0.495 GB, free: 5.465 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe 2>&1)