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: "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008013/0.0008014, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.004509/0.004509, allocations: 171.2 kB / 16.26 MB, free: 6.676 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.336/1.336, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1925/0.1925, allocations: 22.34 MB / 313.8 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002946/0.0002946, allocations: 12 kB / 382.7 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2252, allocations: 55.98 MB / 438.7 MB, free: 39.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.0009262/0.2262, allocations: 0.72 MB / 439.4 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009945/0.2272, allocations: 1.205 MB / 440.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.803e-05/0.2273, allocations: 2.375 kB / 440.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002438/0.2275, allocations: 28.62 kB / 440.6 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001203/0.2277, allocations: 44.58 kB / 440.7 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001423/0.2278, allocations: 74.75 kB / 440.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001887/0.228, allocations: 214.6 kB / 441 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.232e-05/0.2281, allocations: 30.39 kB / 441 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.77e-05/0.2282, allocations: 67.58 kB / 441.1 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.2283, allocations: 84.53 kB / 441.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.2284, allocations: 5.094 kB / 441.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.667e-05/0.2284, allocations: 5.469 kB / 441.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.552e-05/0.2285, allocations: 34.25 kB / 441.2 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.088e-05/0.2285, allocations: 76.56 kB / 441.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.2286, allocations: 116.8 kB / 441.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2286, allocations: 0 / 441.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2286, allocations: 7.875 kB / 441.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.027e-06/0.2286, allocations: 4 kB / 441.4 MB, free: 37.6 MB / 350.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.0008641/0.2295, allocations: 0.4975 MB / 441.9 MB, free: 37.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.2296, allocations: 15.22 kB / 441.9 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.097e-05/0.2296, allocations: 37.94 kB / 441.9 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.299e-05/0.2296, allocations: 18.94 kB / 442 MB, free: 37.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004326/0.2301, allocations: 285.7 kB / 442.2 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.2301, allocations: 11.28 kB / 442.2 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.112e-05/0.2301, allocations: 7.656 kB / 442.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.2303, allocations: 123.4 kB / 442.4 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.2303, allocations: 0 / 442.4 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.2303, allocations: 6.656 kB / 442.4 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2303, allocations: 0 / 442.4 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.2305, allocations: 84.11 kB / 442.5 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005618/0.2311, allocations: 0.5911 MB / 443.1 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.2314, allocations: 137.7 kB / 443.2 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.064e-05/0.2315, allocations: 49.78 kB / 443.2 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.2315, allocations: 6.891 kB / 443.2 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.219e-05/0.2315, allocations: 34.69 kB / 443.3 MB, free: 36.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.2315, allocations: 0 / 443.3 MB, free: 36.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003044/0.2318, allocations: 161.1 kB / 443.4 MB, free: 36.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.83e-05/0.2319, allocations: 55.41 kB / 443.5 MB, free: 36.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003893/0.2323, allocations: 257 kB / 443.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.2323, allocations: 28.52 kB / 443.8 MB, free: 35.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.358e-05/0.2323, allocations: 117 kB / 443.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.414e-05/0.2324, allocations: 45.31 kB / 443.9 MB, free: 35.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.446e-05/0.2324, allocations: 24.69 kB / 443.9 MB, free: 35.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.086e-05/0.2324, allocations: 326.1 kB / 444.3 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.359e-05/0.2325, allocations: 40.61 kB / 444.3 MB, free: 35.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.548e-05/0.2326, allocations: 62.05 kB / 444.4 MB, free: 35.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006803/0.2333, allocations: 252 kB / 444.6 MB, free: 35.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2333, allocations: 4.375 kB / 444.6 MB, free: 35.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002155/0.2335, allocations: 166.6 kB / 444.8 MB, free: 35.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.2335, allocations: 7.562 kB / 444.8 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.2335, allocations: 0 / 444.8 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.2336, allocations: 7.906 kB / 444.8 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.2337, allocations: 24.48 kB / 444.8 MB, free: 35.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.2337, allocations: 3.938 kB / 444.8 MB, free: 35.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001808/0.2339, allocations: 39.52 kB / 444.9 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.2339, allocations: 6.938 kB / 444.9 MB, free: 35.11 MB / 350.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.0001034/0.234, allocations: 133.6 kB / 445 MB, free: 34.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.312e-05/0.234, allocations: 7.281 kB / 445 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.279e-05/0.2341, allocations: 19.25 kB / 445 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2341, allocations: 0 / 445 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.2341, allocations: 6.875 kB / 445 MB, free: 34.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.2341, allocations: 7.328 kB / 445 MB, free: 34.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001769/0.2343, allocations: 235.6 kB / 445.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2343, allocations: 0 / 445.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.2344, allocations: 19.81 kB / 445.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2344, allocations: 0 / 445.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.2344, allocations: 2.719 kB / 445.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.2344, allocations: 4 kB / 445.3 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.2345, allocations: 3.938 kB / 445.3 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002865/0.2347, allocations: 292.8 kB / 445.6 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.418e-05/0.2348, allocations: 95.02 kB / 445.7 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.222e-05/0.2348, allocations: 0 / 445.7 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.235, allocations: 28.66 kB / 445.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.418e-05/0.2351, allocations: 9.969 kB / 445.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.2351, allocations: 3.031 kB / 445.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003278/0.2354, allocations: 204.7 kB / 445.9 MB, free: 34.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2354, allocations: 0 / 445.9 MB, free: 34.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002344/0.2357, allocations: 24.16 kB / 445.9 MB, free: 34.32 MB / 350.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.0004339/0.2361, allocations: 0.8133 MB / 446.8 MB, free: 33.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001825/0.2363, allocations: 104.3 kB / 446.9 MB, free: 33.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2363, allocations: 2.781 kB / 446.9 MB, free: 33.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.29e-05/0.2364, allocations: 50.05 kB / 446.9 MB, free: 33.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003026/0.2367, allocations: 26.39 kB / 446.9 MB, free: 33.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.2389, allocations: 2.154 MB / 449.1 MB, free: 32.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.239, allocations: 0.7216 MB / 449.8 MB, free: 31.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.906e-05/0.2391, allocations: 28.66 kB / 449.8 MB, free: 31.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.591e-05/0.2391, allocations: 47.25 kB / 449.9 MB, free: 31.28 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2391, allocations: 3.938 kB / 449.9 MB, free: 31.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1801/0.4192, allocations: 2.834 MB / 452.7 MB, free: 31.06 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/0.4194, allocations: 218.7 kB / 452.9 MB, free: 30.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.901/2.32, allocations: 2.344 kB / 452.9 MB, free: 30.8 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1)