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.00115/0.00115, 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.001179/0.001179, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.353/1.353, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1919/0.1919, allocations: 22.35 MB / 312.7 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 72.03 kB / 380.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2359, allocations: 54.94 MB / 435.9 MB, free: 39.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.003319/0.2392, allocations: 3.009 MB / 438.9 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.2406, allocations: 1.031 MB / 439.9 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002294/0.2409, allocations: 23.22 kB / 439.9 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002024/0.2411, allocations: 85.2 kB / 440 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.2413, allocations: 82.28 kB / 440.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005555/0.2419, allocations: 318.8 kB / 440.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003767/0.2422, allocations: 0.5474 MB / 441 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002798/0.2425, allocations: 234.5 kB / 441.2 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001249/0.2427, allocations: 186.7 kB / 441.4 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/0.2428, allocations: 211.9 kB / 441.6 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.762e-05/0.2429, allocations: 45.41 kB / 441.6 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.134e-05/0.2429, allocations: 45.41 kB / 441.7 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.207e-05/0.243, allocations: 104.2 kB / 441.8 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.2431, allocations: 232.2 kB / 442 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003163/0.2434, allocations: 0.5232 MB / 442.5 MB, free: 35.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2435, allocations: 0 / 442.5 MB, free: 35.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2435, allocations: 0 / 442.5 MB, free: 35.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.2435, allocations: 7.938 kB / 442.5 MB, free: 35.22 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.0009162/0.2444, allocations: 0.8088 MB / 443.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.2444, allocations: 10.38 kB / 443.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.602e-05/0.2445, allocations: 77.09 kB / 443.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.35e-05/0.2446, allocations: 60.72 kB / 443.5 MB, free: 34.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003523/0.2449, allocations: 414.2 kB / 443.9 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.245, allocations: 31.06 kB / 443.9 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.787e-05/0.245, allocations: 35.94 kB / 444 MB, free: 34.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005638/0.2456, allocations: 427.1 kB / 444.4 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.2456, allocations: 2.844 kB / 444.4 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.2457, allocations: 10.88 kB / 444.4 MB, free: 33.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.2457, allocations: 8.375 kB / 444.4 MB, free: 33.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004959/0.2462, allocations: 292.4 kB / 444.7 MB, free: 33.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001393/0.2476, allocations: 1.528 MB / 446.2 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006541/0.2482, allocations: 354.9 kB / 446.6 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002266/0.2485, allocations: 134.2 kB / 446.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.2485, allocations: 6.719 kB / 446.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.488e-05/0.2485, allocations: 38.73 kB / 446.7 MB, free: 32.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.844e-06/0.2485, allocations: 2.875 kB / 446.7 MB, free: 32.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007766/0.2493, allocations: 400.2 kB / 447.1 MB, free: 32.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.2494, allocations: 106.1 kB / 447.2 MB, free: 32.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003244/0.2497, allocations: 408.7 kB / 447.6 MB, free: 31.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.2497, allocations: 32.42 kB / 447.7 MB, free: 31.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.2499, allocations: 264.3 kB / 447.9 MB, free: 31.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.432e-05/0.2499, allocations: 106.9 kB / 448 MB, free: 31.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.541e-05/0.25, allocations: 63.17 kB / 448.1 MB, free: 31.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.657e-05/0.2501, allocations: 359.3 kB / 448.4 MB, free: 31.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002232/0.2503, allocations: 112.9 kB / 448.5 MB, free: 31.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002531/0.2506, allocations: 196 kB / 448.7 MB, free: 31.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001234/0.2518, allocations: 0.5303 MB / 449.3 MB, free: 30.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2518, allocations: 0 / 449.3 MB, free: 30.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005636/0.2524, allocations: 383.1 kB / 449.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.2524, allocations: 5.25 kB / 449.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.2524, allocations: 0 / 449.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.2525, allocations: 5.25 kB / 449.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002816/0.2528, allocations: 74.31 kB / 449.7 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.2528, allocations: 3.531 kB / 449.7 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002052/0.253, allocations: 42.62 kB / 449.8 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.253, allocations: 23.36 kB / 449.8 MB, free: 30.61 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.0003519/0.2534, allocations: 206.5 kB / 450 MB, free: 30.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001647/0.2535, allocations: 167.7 kB / 450.2 MB, free: 30.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009251/0.2545, allocations: 475.2 kB / 450.6 MB, free: 30.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.483e-06/0.2545, allocations: 0 / 450.6 MB, free: 30.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0004061/0.2549, allocations: 338.5 kB / 450.9 MB, free: 29.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.923e-06/0.2549, allocations: 5.688 kB / 451 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.2549, allocations: 6.516 kB / 451 MB, free: 29.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.857e-06/0.2549, allocations: 3.312 kB / 451 MB, free: 29.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002241/0.2552, allocations: 59.3 kB / 451 MB, free: 29.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.908e-06/0.2552, allocations: 2.688 kB / 451 MB, free: 29.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.2554, allocations: 31.25 kB / 451.1 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.2554, allocations: 10.34 kB / 451.1 MB, free: 29.92 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.734e-05/0.2555, allocations: 220.1 kB / 451.3 MB, free: 29.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.23e-05/0.2556, allocations: 43.16 kB / 451.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.25e-05/0.2556, allocations: 55.08 kB / 451.4 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.2556, allocations: 3.625 kB / 451.4 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2557, allocations: 0 / 451.4 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.2557, allocations: 4 kB / 451.4 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000371/0.256, allocations: 463.5 kB / 451.8 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2561, allocations: 4 kB / 451.8 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002889/0.2563, allocations: 55.86 kB / 451.9 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.2564, allocations: 6.562 kB / 451.9 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.2564, allocations: 7.938 kB / 451.9 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.2564, allocations: 2.75 kB / 451.9 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2564, allocations: 0 / 451.9 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007621/0.2572, allocations: 0.5417 MB / 452.5 MB, free: 29.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.2573, allocations: 147.2 kB / 452.6 MB, free: 28.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.842e-05/0.2573, allocations: 4 kB / 452.6 MB, free: 28.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.2575, allocations: 16.03 kB / 452.6 MB, free: 28.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.231e-05/0.2576, allocations: 18.84 kB / 452.6 MB, free: 28.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.2576, allocations: 5.812 kB / 452.6 MB, free: 28.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002378/0.2579, allocations: 290.7 kB / 452.9 MB, free: 28.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2579, allocations: 0 / 452.9 MB, free: 28.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004712/0.2584, allocations: 141 kB / 453.1 MB, free: 28.68 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.0009915/0.2594, allocations: 1.092 MB / 454.2 MB, free: 27.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007995/0.2602, allocations: 432 kB / 454.6 MB, free: 27.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.2602, allocations: 4 kB / 454.6 MB, free: 27.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002327/0.2604, allocations: 134.7 kB / 454.7 MB, free: 27.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006667/0.2611, allocations: 132.7 kB / 454.8 MB, free: 27.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004316/0.2654, allocations: 3.831 MB / 458.7 MB, free: 25.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00022/0.2657, allocations: 0.8322 MB / 459.5 MB, free: 24.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002167/0.2659, allocations: 56.8 kB / 459.6 MB, free: 24.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.2661, allocations: 158.9 kB / 459.7 MB, free: 24.41 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2661, allocations: 0 / 459.7 MB, free: 24.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02789/0.294, allocations: 8.824 MB / 468.5 MB, free: 23.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.24/9.534, allocations: 5.734 kB / 468.5 MB, free: 23.59 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_generator_models_TurbineFollows_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_generator_models_TurbineFollows.fmu > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1)