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.001147/0.001148, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001157/0.001157, allocations: 191 kB / 16.14 MB, free: 6.645 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.181/1.181, allocations: 222.9 MB / 239.8 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1734/0.1734, allocations: 22.36 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 67.91 kB / 380.2 MB, free: 10.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.203/0.2042, allocations: 54.94 MB / 435.2 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.002757/0.207, allocations: 3.035 MB / 438.2 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001049/0.208, allocations: 1.014 MB / 439.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001847/0.2082, allocations: 19.66 kB / 439.2 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001808/0.2084, allocations: 61.73 kB / 439.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001481/0.2086, allocations: 67.8 kB / 439.4 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004424/0.209, allocations: 292.9 kB / 439.6 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000314/0.2094, allocations: 0.5065 MB / 440.1 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002413/0.2096, allocations: 229.2 kB / 440.4 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.2097, allocations: 159.1 kB / 440.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/0.2098, allocations: 195.2 kB / 440.7 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.289e-05/0.2099, allocations: 22.62 kB / 440.7 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.925e-05/0.2099, allocations: 22.69 kB / 440.8 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.742e-05/0.21, allocations: 84.47 kB / 440.8 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.2101, allocations: 215.9 kB / 441.1 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002381/0.2103, allocations: 486.5 kB / 441.5 MB, free: 35.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2103, allocations: 2.406 kB / 441.5 MB, free: 35.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.91e-07/0.2104, allocations: 0 / 441.5 MB, free: 35.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.2104, allocations: 0 / 441.5 MB, free: 35.33 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.0007951/0.2112, allocations: 0.814 MB / 442.3 MB, free: 34.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.965e-05/0.2112, allocations: 14.44 kB / 442.4 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.971e-05/0.2113, allocations: 71.5 kB / 442.4 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.51e-05/0.2113, allocations: 65.52 kB / 442.5 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000319/0.2117, allocations: 419.1 kB / 442.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.2117, allocations: 34.53 kB / 442.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.099e-05/0.2117, allocations: 40.28 kB / 443 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005051/0.2122, allocations: 426.6 kB / 443.4 MB, free: 33.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.2123, allocations: 0 / 443.4 MB, free: 33.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.743e-05/0.2123, allocations: 10.97 kB / 443.4 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.2123, allocations: 8.688 kB / 443.4 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004574/0.2128, allocations: 286.7 kB / 443.7 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.214, allocations: 1.531 MB / 445.2 MB, free: 32.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005555/0.2146, allocations: 349.8 kB / 445.6 MB, free: 32.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002071/0.2148, allocations: 132.2 kB / 445.7 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.633e-05/0.2148, allocations: 3.516 kB / 445.7 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.27e-05/0.2148, allocations: 45.7 kB / 445.7 MB, free: 32.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.262e-06/0.2148, allocations: 0 / 445.7 MB, free: 32.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0006703/0.2155, allocations: 402 kB / 446.1 MB, free: 32.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.465e-05/0.2155, allocations: 105.3 kB / 446.2 MB, free: 32.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002702/0.2158, allocations: 414 kB / 446.6 MB, free: 32.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.2158, allocations: 29.7 kB / 446.7 MB, free: 32.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.216, allocations: 270.6 kB / 446.9 MB, free: 31.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.379e-05/0.216, allocations: 92.72 kB / 447 MB, free: 31.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.539e-05/0.2161, allocations: 65.09 kB / 447.1 MB, free: 31.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.296e-05/0.2161, allocations: 359.2 kB / 447.4 MB, free: 31.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001996/0.2163, allocations: 109.6 kB / 447.5 MB, free: 31.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.2166, allocations: 198.6 kB / 447.7 MB, free: 31.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.2177, allocations: 0.5247 MB / 448.3 MB, free: 30.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.2177, allocations: 7 kB / 448.3 MB, free: 30.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005098/0.2182, allocations: 376.2 kB / 448.6 MB, free: 30.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.2183, allocations: 9.062 kB / 448.7 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.2183, allocations: 3.781 kB / 448.7 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.2183, allocations: 3.406 kB / 448.7 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002564/0.2186, allocations: 78.64 kB / 448.7 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.2186, allocations: 2.969 kB / 448.7 MB, free: 30.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000179/0.2187, allocations: 46.89 kB / 448.8 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.2188, allocations: 12.62 kB / 448.8 MB, free: 30.71 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.0002722/0.2191, allocations: 210.1 kB / 449 MB, free: 30.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001492/0.2192, allocations: 170 kB / 449.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008737/0.2201, allocations: 473.3 kB / 449.6 MB, free: 30.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.273e-06/0.2201, allocations: 0 / 449.6 MB, free: 30.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0003761/0.2205, allocations: 337.4 kB / 450 MB, free: 30.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.332e-06/0.2205, allocations: 7.75 kB / 450 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-06/0.2205, allocations: 224 / 450 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.236e-06/0.2205, allocations: 9.344 kB / 450 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.2207, allocations: 60.89 kB / 450 MB, free: 30.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/0.2207, allocations: 5.25 kB / 450 MB, free: 30.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/0.2209, allocations: 27.33 kB / 450.1 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.495e-05/0.2209, allocations: 9.219 kB / 450.1 MB, free: 30.01 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 7.943e-05/0.221, allocations: 219.9 kB / 450.3 MB, free: 29.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.459e-05/0.2211, allocations: 49.59 kB / 450.3 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.982e-05/0.2211, allocations: 49.97 kB / 450.4 MB, free: 29.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.2211, allocations: 5.25 kB / 450.4 MB, free: 29.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.2212, allocations: 0 / 450.4 MB, free: 29.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2212, allocations: 3.375 kB / 450.4 MB, free: 29.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003216/0.2215, allocations: 464.5 kB / 450.8 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2215, allocations: 0 / 450.8 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.2218, allocations: 53.98 kB / 450.9 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.2218, allocations: 0 / 450.9 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.933e-05/0.2218, allocations: 7.906 kB / 450.9 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.2218, allocations: 4 kB / 450.9 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2218, allocations: 3.938 kB / 450.9 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000659/0.2225, allocations: 0.5439 MB / 451.5 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.614e-05/0.2226, allocations: 143.7 kB / 451.6 MB, free: 28.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.392e-05/0.2226, allocations: 11.42 kB / 451.6 MB, free: 28.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001865/0.2228, allocations: 15.41 kB / 451.6 MB, free: 28.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.142e-05/0.2229, allocations: 18.86 kB / 451.6 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.2229, allocations: 5.375 kB / 451.7 MB, free: 28.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001869/0.2231, allocations: 285 kB / 451.9 MB, free: 28.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2231, allocations: 0 / 451.9 MB, free: 28.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003882/0.2235, allocations: 139.6 kB / 452.1 MB, free: 28.79 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.000772/0.2242, allocations: 1.099 MB / 453.2 MB, free: 27.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005986/0.2248, allocations: 421.9 kB / 453.6 MB, free: 27.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2249, allocations: 3.938 kB / 453.6 MB, free: 27.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001947/0.2251, allocations: 137.6 kB / 453.7 MB, free: 27.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005406/0.2256, allocations: 118.8 kB / 453.8 MB, free: 27.72 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003721/0.2293, allocations: 3.985 MB / 457.8 MB, free: 25.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001821/0.2295, allocations: 0.8347 MB / 458.7 MB, free: 24.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000178/0.2297, allocations: 54.23 kB / 458.7 MB, free: 24.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001618/0.2299, allocations: 158.4 kB / 458.9 MB, free: 24.36 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2299, allocations: 0 / 458.9 MB, free: 24.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.296/3.526, allocations: 8.49 MB / 467.3 MB, free: 23.68 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001384/3.526, allocations: 195.8 kB / 467.5 MB, free: 23.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.706/5.232, allocations: 0 / 467.5 MB, free: 23.42 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)