Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.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_generator_models.TurbineFollows,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_TurbineFollows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.TurbineFollows,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_TurbineFollows",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.001581/0.001581, allocations: 108 kB / 15.61 MB, free: 152 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.001911/0.001912, allocations: 195 kB / 16.53 MB, free: 6.664 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.309/1.309, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1912/0.1912, allocations: 22.34 MB / 312.7 MB, free: 12.56 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 63.84 kB / 380.9 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.26, allocations: 54.93 MB / 435.9 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.003604/0.2637, allocations: 3.018 MB / 438.9 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.2652, allocations: 1.034 MB / 439.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002131/0.2654, allocations: 17.97 kB / 439.9 MB, free: 36.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001957/0.2656, allocations: 85.62 kB / 440 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001618/0.2658, allocations: 85.3 kB / 440.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000518/0.2663, allocations: 317.1 kB / 440.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003904/0.2667, allocations: 0.5497 MB / 441 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003166/0.267, allocations: 228.2 kB / 441.2 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.2672, allocations: 198.5 kB / 441.4 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001727/0.2673, allocations: 207.5 kB / 441.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.639e-05/0.2674, allocations: 46 kB / 441.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.378e-05/0.2675, allocations: 46.09 kB / 441.7 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.56e-05/0.2675, allocations: 106.2 kB / 441.8 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.2677, allocations: 232.8 kB / 442 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003443/0.268, allocations: 0.5202 MB / 442.5 MB, free: 35.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.268, allocations: 0 / 442.5 MB, free: 35.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.268, allocations: 3.562 kB / 442.5 MB, free: 35.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.2681, allocations: 0 / 442.5 MB, free: 35.3 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0009096/0.269, allocations: 0.808 MB / 443.3 MB, free: 34.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.269, allocations: 8.906 kB / 443.3 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.932e-05/0.2691, allocations: 80.47 kB / 443.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.523e-05/0.2692, allocations: 61.69 kB / 443.5 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003637/0.2695, allocations: 415.3 kB / 443.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.2696, allocations: 32.27 kB / 443.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.816e-05/0.2696, allocations: 37.06 kB / 444 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005493/0.2702, allocations: 422 kB / 444.4 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.2702, allocations: 0 / 444.4 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.072e-05/0.2702, allocations: 17.56 kB / 444.4 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.2702, allocations: 10.25 kB / 444.4 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004888/0.2707, allocations: 290.7 kB / 444.7 MB, free: 33.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.2721, allocations: 1.525 MB / 446.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006143/0.2728, allocations: 356.2 kB / 446.5 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002189/0.273, allocations: 136.3 kB / 446.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/0.273, allocations: 3.203 kB / 446.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.2731, allocations: 41.17 kB / 446.7 MB, free: 32.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.493e-06/0.2731, allocations: 0 / 446.7 MB, free: 32.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007409/0.2738, allocations: 407.2 kB / 447.1 MB, free: 32.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.177e-05/0.2739, allocations: 105.8 kB / 447.2 MB, free: 32.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002963/0.2742, allocations: 413.9 kB / 447.6 MB, free: 32.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.2742, allocations: 32.64 kB / 447.7 MB, free: 32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.2743, allocations: 266.2 kB / 447.9 MB, free: 31.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.888e-05/0.2744, allocations: 94.47 kB / 448 MB, free: 31.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.97e-05/0.2744, allocations: 63.09 kB / 448.1 MB, free: 31.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.779e-05/0.2745, allocations: 355.4 kB / 448.4 MB, free: 31.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000219/0.2747, allocations: 119.6 kB / 448.5 MB, free: 31.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002454/0.275, allocations: 194.7 kB / 448.7 MB, free: 31.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001239/0.2762, allocations: 0.5316 MB / 449.3 MB, free: 30.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.2762, allocations: 0 / 449.3 MB, free: 30.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005689/0.2768, allocations: 387.2 kB / 449.6 MB, free: 30.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.2768, allocations: 7.188 kB / 449.6 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.2769, allocations: 2.656 kB / 449.6 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.2769, allocations: 2.656 kB / 449.7 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002816/0.2772, allocations: 76.12 kB / 449.7 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.2772, allocations: 2.75 kB / 449.7 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.2774, allocations: 42.7 kB / 449.8 MB, free: 30.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.006e-05/0.2774, allocations: 13.84 kB / 449.8 MB, free: 30.68 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) "Connector of Real output signal" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003233/0.2777, allocations: 210.7 kB / 450 MB, free: 30.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001589/0.2779, allocations: 165 kB / 450.2 MB, free: 30.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009078/0.2788, allocations: 475.5 kB / 450.6 MB, free: 30.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.422e-06/0.2788, allocations: 0 / 450.6 MB, free: 30.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0004123/0.2793, allocations: 338.1 kB / 450.9 MB, free: 30.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.915e-06/0.2793, allocations: 5.594 kB / 451 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-06/0.2793, allocations: 2.844 kB / 451 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.687e-06/0.2793, allocations: 2.781 kB / 451 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.2795, allocations: 59.11 kB / 451 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.157e-06/0.2795, allocations: 3.906 kB / 451 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/0.2797, allocations: 29.97 kB / 451 MB, free: 29.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.2797, allocations: 7.688 kB / 451.1 MB, free: 29.99 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) "Connector of Real output signal" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (PIe.I.local_reset,PIp.I.local_reset,S.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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 9.458e-05/0.2798, allocations: 223 kB / 451.3 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.185e-05/0.2799, allocations: 45.66 kB / 451.3 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.62e-05/0.28, allocations: 54.03 kB / 451.4 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.28, allocations: 2.625 kB / 451.4 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.28, allocations: 2.594 kB / 451.4 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.28, allocations: 0 / 451.4 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003668/0.2804, allocations: 467.9 kB / 451.8 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2804, allocations: 0 / 451.8 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002879/0.2807, allocations: 65.88 kB / 451.9 MB, free: 29.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.2807, allocations: 0 / 451.9 MB, free: 29.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.012e-05/0.2807, allocations: 6.938 kB / 451.9 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2807, allocations: 0 / 451.9 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2807, allocations: 0 / 451.9 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007658/0.2815, allocations: 0.547 MB / 452.5 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.2816, allocations: 146 kB / 452.6 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.904e-05/0.2817, allocations: 6.625 kB / 452.6 MB, free: 28.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.2819, allocations: 15.34 kB / 452.6 MB, free: 28.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.589e-05/0.282, allocations: 19.5 kB / 452.6 MB, free: 28.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/0.282, allocations: 6.219 kB / 452.6 MB, free: 28.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002116/0.2822, allocations: 282.9 kB / 452.9 MB, free: 28.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2822, allocations: 4 kB / 452.9 MB, free: 28.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004417/0.2826, allocations: 142 kB / 453.1 MB, free: 28.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (F.y,S.y,T.y,PIp.I.y,PIe.I.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 (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 Backend phase and start with SimCode phase: time 0.0009079/0.2836, allocations: 1.096 MB / 454.2 MB, free: 27.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007387/0.2843, allocations: 433.9 kB / 454.6 MB, free: 27.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2843, allocations: 0 / 454.6 MB, free: 27.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002173/0.2845, allocations: 139.4 kB / 454.7 MB, free: 27.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006224/0.2852, allocations: 124.6 kB / 454.8 MB, free: 27.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004155/0.2893, allocations: 3.83 MB / 458.7 MB, free: 25.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.2896, allocations: 0.833 MB / 459.5 MB, free: 24.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002066/0.2898, allocations: 49.61 kB / 459.5 MB, free: 24.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/0.29, allocations: 154.2 kB / 459.7 MB, free: 24.49 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.29, allocations: 0 / 459.7 MB, free: 24.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03222/0.3222, allocations: 8.84 MB / 468.5 MB, free: 23.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.422/7.745, allocations: 1.094 kB / 468.5 MB, free: 23.66 MB / 350.1 MB (rm -f AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; mkfifo AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe >> ../files/AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ElecSys_generator_models.TurbineFollows_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 AES_AES_Coursework_ElecSys_generator_models_TurbineFollows.fmu > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1)