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.001166/0.001166, allocations: 101.8 kB / 16.4 MB, free: 6.406 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.001057/0.001058, allocations: 192.2 kB / 17.35 MB, free: 5.695 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.291/1.291, allocations: 222.9 MB / 241 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.08728/0.08728, allocations: 22.32 MB / 313.5 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 59.91 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1073, allocations: 54.95 MB / 492.7 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.002466/0.1099, allocations: 1.014 MB / 493.7 MB, free: 3.734 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.1118, allocations: 1.213 MB / 494.9 MB, free: 2.504 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.1119, allocations: 7.875 kB / 494.9 MB, free: 2.496 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003599/0.1123, allocations: 39.77 kB / 494.9 MB, free: 2.457 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001794/0.1125, allocations: 47.75 kB / 495 MB, free: 2.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002348/0.1128, allocations: 79.89 kB / 495.1 MB, free: 2.332 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003224/0.1131, allocations: 215.6 kB / 495.3 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.1132, allocations: 37.41 kB / 495.3 MB, free: 2.078 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.1134, allocations: 91.66 kB / 495.4 MB, free: 1.988 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002203/0.1136, allocations: 87.66 kB / 495.5 MB, free: 1.902 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.66e-05/0.1137, allocations: 8 kB / 495.5 MB, free: 1.895 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.696e-05/0.1137, allocations: 12 kB / 495.5 MB, free: 1.883 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.072e-05/0.1138, allocations: 35.91 kB / 495.5 MB, free: 1.848 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.729e-05/0.1139, allocations: 67.52 kB / 495.6 MB, free: 1.781 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001876/0.1141, allocations: 127.5 kB / 495.7 MB, free: 1.656 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1141, allocations: 4 kB / 495.7 MB, free: 1.652 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1141, allocations: 0 / 495.7 MB, free: 1.652 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.782e-06/0.1141, allocations: 0 / 495.7 MB, free: 1.652 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.001146/0.1153, allocations: 0.5181 MB / 496.2 MB, free: 1.086 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.1153, allocations: 8.031 kB / 496.2 MB, free: 1.078 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.676e-05/0.1154, allocations: 16.75 kB / 496.3 MB, free: 1.062 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006104/0.116, allocations: 296.6 kB / 496.6 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.116, allocations: 4.375 kB / 496.6 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.271e-05/0.1161, allocations: 12.38 kB / 496.6 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002381/0.1163, allocations: 126.7 kB / 496.7 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.1163, allocations: 0 / 496.7 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.1163, allocations: 0 / 496.7 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1163, allocations: 4 kB / 496.7 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001932/0.1165, allocations: 98.48 kB / 496.8 MB, free: 492 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007939/0.1173, allocations: 0.575 MB / 497.4 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003802/0.1177, allocations: 150.4 kB / 497.5 MB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.1179, allocations: 52.83 kB / 497.6 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/0.1179, allocations: 0 / 497.6 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.1179, allocations: 30.56 kB / 497.6 MB, free: 15.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 3.937e-06/0.1179, allocations: 3.984 kB / 497.6 MB, free: 15.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003784/0.1183, allocations: 165.6 kB / 497.8 MB, free: 15.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.1183, allocations: 51.41 kB / 497.8 MB, free: 15.36 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004648/0.1188, allocations: 262.6 kB / 498.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.1188, allocations: 25.7 kB / 498.1 MB, free: 15.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.585e-05/0.1189, allocations: 120 kB / 498.2 MB, free: 14.95 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.119, allocations: 35.59 kB / 498.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.026e-05/0.119, allocations: 29.72 kB / 498.3 MB, free: 14.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1191, allocations: 334.8 kB / 498.6 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.999e-05/0.1193, allocations: 35.98 kB / 498.6 MB, free: 14.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.916e-05/0.1194, allocations: 66.42 kB / 498.7 MB, free: 14.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007656/0.1201, allocations: 254.2 kB / 499 MB, free: 14.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1201, allocations: 0 / 499 MB, free: 14.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002688/0.1204, allocations: 161.4 kB / 499.1 MB, free: 14.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.1205, allocations: 8.062 kB / 499.1 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1205, allocations: 4 kB / 499.1 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.1205, allocations: 0 / 499.1 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.1206, allocations: 24 kB / 499.1 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.1206, allocations: 3.938 kB / 499.1 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001908/0.1208, allocations: 31.86 kB / 499.2 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.1208, allocations: 8 kB / 499.2 MB, free: 13.93 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.0001666/0.121, allocations: 145.6 kB / 499.3 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.099e-05/0.1211, allocations: 15.81 kB / 499.3 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.23e-05/0.1211, allocations: 17.78 kB / 499.4 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1211, allocations: 0 / 499.4 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.1211, allocations: 7.938 kB / 499.4 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1211, allocations: 3.984 kB / 499.4 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002446/0.1214, allocations: 237.5 kB / 499.6 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1214, allocations: 0 / 499.6 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001516/0.1216, allocations: 16 kB / 499.6 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-06/0.1216, allocations: 4 kB / 499.6 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.1216, allocations: 0 / 499.6 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.1216, allocations: 4 kB / 499.6 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.1216, allocations: 3.938 kB / 499.6 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003642/0.122, allocations: 279.2 kB / 499.9 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.793e-05/0.122, allocations: 92.92 kB / 500 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.936e-05/0.1221, allocations: 8.031 kB / 0.4883 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.1223, allocations: 23.97 kB / 0.4883 GB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.337e-05/0.1224, allocations: 15.92 kB / 0.4883 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.874e-06/0.1224, allocations: 0 / 0.4883 GB, free: 12.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003774/0.1228, allocations: 195.1 kB / 0.4885 GB, free: 12.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1228, allocations: 3.938 kB / 0.4885 GB, free: 12.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002481/0.123, allocations: 28 kB / 0.4885 GB, free: 12.75 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 0.0001107/0.1231, allocations: 95.25 kB / 0.4886 GB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002426/0.1234, allocations: 107.9 kB / 0.4887 GB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1234, allocations: 0 / 0.4887 GB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.666e-05/0.1235, allocations: 51.91 kB / 0.4888 GB, free: 12.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003348/0.1238, allocations: 25.86 kB / 0.4888 GB, free: 12.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006344/0.1245, allocations: 363 kB / 0.4892 GB, free: 12.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.1248, allocations: 0.7317 MB / 0.4899 GB, free: 11.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.683e-05/0.1248, allocations: 15.44 kB / 0.4899 GB, free: 11.32 MB / 382.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1248, allocations: 0 / 0.4899 GB, free: 11.32 MB / 382.1 MB Notification: Performance of Templates: time 0.00381/0.1286, allocations: 1.91 MB / 0.4917 GB, free: 9.406 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)