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: "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec",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.001001/0.001001, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009066/0.0009066, allocations: 197.1 kB / 16.54 MB, free: 6.672 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.298/1.298, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.183/0.183, allocations: 22.34 MB / 312.7 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.89 kB / 380.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2162, allocations: 54.94 MB / 435.9 MB, free: 39.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002162/0.2184, allocations: 1.402 MB / 437.3 MB, free: 38.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001216/0.2197, allocations: 1.376 MB / 438.6 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.2198, allocations: 13.72 kB / 438.7 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003012/0.2201, allocations: 80.34 kB / 438.7 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002005/0.2203, allocations: 90.64 kB / 438.8 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002559/0.2206, allocations: 176.4 kB / 439 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002791/0.2209, allocations: 355.8 kB / 439.3 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001565/0.221, allocations: 90.77 kB / 439.4 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.2212, allocations: 154.5 kB / 439.6 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001636/0.2213, allocations: 163.1 kB / 439.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.118e-05/0.2214, allocations: 21.47 kB / 439.8 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.306e-05/0.2214, allocations: 19.41 kB / 439.8 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.527e-05/0.2215, allocations: 71.75 kB / 439.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.51e-05/0.2216, allocations: 116.1 kB / 440 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001698/0.2218, allocations: 253.4 kB / 440.2 MB, free: 36.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.2218, allocations: 0 / 440.2 MB, free: 36.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2218, allocations: 0 / 440.2 MB, free: 36.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.2218, allocations: 2.844 kB / 440.2 MB, free: 36.84 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001266/0.2231, allocations: 0.6871 MB / 440.9 MB, free: 36.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.868e-05/0.2231, allocations: 10.69 kB / 440.9 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.715e-05/0.2231, allocations: 58.61 kB / 441 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.851e-05/0.2232, allocations: 33.19 kB / 441 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006427/0.2239, allocations: 378.3 kB / 441.4 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.2239, allocations: 20.33 kB / 441.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.874e-05/0.2239, allocations: 27.22 kB / 441.4 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002699/0.2242, allocations: 214.4 kB / 441.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.2242, allocations: 0 / 441.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.2242, allocations: 10.56 kB / 441.6 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.2242, allocations: 2.719 kB / 441.6 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002434/0.2245, allocations: 155.3 kB / 441.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008859/0.2254, allocations: 0.9512 MB / 442.7 MB, free: 35.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005017/0.2259, allocations: 242.9 kB / 443 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.226, allocations: 74.75 kB / 443.1 MB, free: 34.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.608e-05/0.2261, allocations: 10.42 kB / 443.1 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.207e-05/0.2261, allocations: 34.56 kB / 443.1 MB, free: 34.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.844e-06/0.2261, allocations: 3.984 kB / 443.1 MB, free: 34.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004244/0.2265, allocations: 252.9 kB / 443.4 MB, free: 34.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.16e-05/0.2265, allocations: 57.55 kB / 443.4 MB, free: 34.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005998/0.2271, allocations: 372.1 kB / 443.8 MB, free: 34.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.2272, allocations: 29.7 kB / 443.8 MB, free: 34.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.911e-05/0.2272, allocations: 175 kB / 444 MB, free: 34.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.79e-05/0.2273, allocations: 78 kB / 444 MB, free: 34.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.524e-05/0.2273, allocations: 46.2 kB / 444.1 MB, free: 34.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.735e-05/0.2274, allocations: 349.5 kB / 444.4 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.2275, allocations: 55.81 kB / 444.5 MB, free: 33.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.2276, allocations: 102.4 kB / 444.6 MB, free: 33.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009288/0.2286, allocations: 384.7 kB / 445 MB, free: 33.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2286, allocations: 0 / 445 MB, free: 33.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003292/0.2289, allocations: 247.8 kB / 445.2 MB, free: 33.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.2289, allocations: 4.344 kB / 445.2 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.2289, allocations: 0 / 445.2 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.229, allocations: 3.312 kB / 445.2 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.2292, allocations: 52.45 kB / 445.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.2292, allocations: 3.938 kB / 445.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002762/0.2295, allocations: 40.95 kB / 445.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.2295, allocations: 13.72 kB / 445.3 MB, free: 33.54 MB / 350.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.0001292/0.2296, allocations: 162.6 kB / 445.5 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.945e-05/0.2297, allocations: 27.16 kB / 445.5 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.15e-05/0.2297, allocations: 34.41 kB / 445.5 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.2297, allocations: 10.3 kB / 445.6 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.2297, allocations: 0 / 445.6 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2297, allocations: 0 / 445.6 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002498/0.23, allocations: 320.2 kB / 445.9 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.23, allocations: 0 / 445.9 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001856/0.2302, allocations: 40.7 kB / 445.9 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2302, allocations: 4 kB / 445.9 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.2302, allocations: 2.406 kB / 445.9 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.2302, allocations: 6.625 kB / 445.9 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2302, allocations: 3.328 kB / 445.9 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004067/0.2307, allocations: 388.3 kB / 446.3 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.101e-05/0.2307, allocations: 113.7 kB / 446.4 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.491e-05/0.2308, allocations: 6.969 kB / 446.4 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002972/0.2311, allocations: 39.52 kB / 446.5 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.47e-05/0.2311, allocations: 12.95 kB / 446.5 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-06/0.2311, allocations: 2.844 kB / 446.5 MB, free: 32.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005175/0.2316, allocations: 285.3 kB / 446.7 MB, free: 32.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2316, allocations: 0 / 446.7 MB, free: 32.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002731/0.2319, allocations: 42.5 kB / 446.8 MB, free: 32.59 MB / 350.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.0005443/0.2325, allocations: 0.9317 MB / 447.7 MB, free: 31.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000297/0.2328, allocations: 191.4 kB / 447.9 MB, free: 31.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2328, allocations: 0 / 447.9 MB, free: 31.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000112/0.2329, allocations: 79.17 kB / 448 MB, free: 31.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004055/0.2333, allocations: 57.55 kB / 448 MB, free: 31.72 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003311/0.2366, allocations: 2.88 MB / 450.9 MB, free: 29.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001451/0.2368, allocations: 0.7771 MB / 451.7 MB, free: 29.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000101/0.2369, allocations: 44.25 kB / 451.7 MB, free: 29.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.237, allocations: 93.92 kB / 451.8 MB, free: 29.12 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.237, allocations: 6.562 kB / 451.8 MB, free: 29.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05039/0.2874, allocations: 4.91 MB / 456.8 MB, free: 28.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.384/8.672, allocations: 15.7 kB / 456.8 MB, free: 28.58 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe 2>&1)