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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 76.45 kB / 19.95 MB, free: 4.613 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008695/0.0008695, allocations: 165.2 kB / 23.22 MB, free: 1.336 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9007/0.9007, allocations: 177.1 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.06312/0.06312, allocations: 18.12 MB / 278.1 MB, free: 11.56 MB / 266.7 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 415 MB, free: 12.72 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.971e-05/2.128e-05, allocations: 4.5 kB / 415 MB, free: 12.72 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.002739/0.00276, allocations: 2.766 MB / 417.8 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.004155, allocations: 1.038 MB / 418.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002101/0.004365, allocations: 28.12 kB / 418.9 MB, free: 10.17 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001982/0.004563, allocations: 83.33 kB / 419 MB, free: 10.11 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001479/0.004711, allocations: 88.48 kB / 419 MB, free: 10.04 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000533/0.005244, allocations: 329.2 kB / 419.4 MB, free: 9.852 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004779/0.005722, allocations: 0.5566 MB / 419.9 MB, free: 9.559 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002864/0.006009, allocations: 162.4 kB / 420.1 MB, free: 9.469 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001922/0.006201, allocations: 187.4 kB / 420.3 MB, free: 9.371 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000185/0.006386, allocations: 141.4 kB / 420.4 MB, free: 9.309 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.142e-05/0.006447, allocations: 44.62 kB / 420.4 MB, free: 9.309 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.19e-05/0.006499, allocations: 46.16 kB / 420.5 MB, free: 9.309 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.321e-05/0.006572, allocations: 104.9 kB / 420.6 MB, free: 9.234 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.006688, allocations: 140.8 kB / 420.7 MB, free: 9.152 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005451/0.007233, allocations: 0.5404 MB / 421.3 MB, free: 8.902 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.007236, allocations: 0 / 421.3 MB, free: 8.902 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.007237, allocations: 0 / 421.3 MB, free: 8.902 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.007251, allocations: 0.6094 kB / 421.3 MB, free: 8.902 MB / 330.7 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.0008556/0.008107, allocations: 0.7553 MB / 422 MB, free: 8.344 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.008144, allocations: 10.55 kB / 422 MB, free: 8.344 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.31e-05/0.008198, allocations: 75.56 kB / 422.1 MB, free: 8.281 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.66e-05/0.008264, allocations: 61.78 kB / 422.2 MB, free: 8.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004041/0.008668, allocations: 376.2 kB / 422.5 MB, free: 7.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.726e-05/0.008695, allocations: 29.09 kB / 422.6 MB, free: 7.965 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.546e-05/0.008741, allocations: 35.84 kB / 422.6 MB, free: 7.953 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005167/0.009258, allocations: 0.5244 MB / 423.1 MB, free: 7.586 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.009269, allocations: 5.344 kB / 423.1 MB, free: 7.582 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.009295, allocations: 17.92 kB / 423.2 MB, free: 7.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.009306, allocations: 7.875 kB / 423.2 MB, free: 7.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004016/0.009707, allocations: 290.4 kB / 423.4 MB, free: 7.461 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001328/0.01104, allocations: 1.388 MB / 424.8 MB, free: 6.422 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005214/0.01156, allocations: 327.3 kB / 425.2 MB, free: 6.293 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.01172, allocations: 129.4 kB / 425.3 MB, free: 6.242 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.01175, allocations: 4.359 kB / 425.3 MB, free: 6.242 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.539e-05/0.01176, allocations: 40.92 kB / 425.3 MB, free: 6.195 MB / 330.7 MB Notification: Performance of pre-optimization done (n=28): time 1.412e-06/0.01177, allocations: 1.031 kB / 425.3 MB, free: 6.195 MB / 330.7 MB Notification: Performance of matching and sorting (n=28): time 0.0005667/0.01233, allocations: 409 kB / 425.7 MB, free: 6.027 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.01237, allocations: 162.9 kB / 425.9 MB, free: 5.836 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003255/0.01269, allocations: 410.5 kB / 426.3 MB, free: 5.633 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.01272, allocations: 32.08 kB / 426.3 MB, free: 5.598 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.01284, allocations: 269.1 kB / 426.6 MB, free: 5.379 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.771e-05/0.0129, allocations: 103.4 kB / 426.7 MB, free: 5.297 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.916e-05/0.01298, allocations: 69.36 kB / 426.7 MB, free: 5.254 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.827e-05/0.01306, allocations: 356 kB / 427.1 MB, free: 4.922 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.01323, allocations: 118.7 kB / 427.2 MB, free: 4.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002166/0.01345, allocations: 308 kB / 427.5 MB, free: 4.605 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009133/0.01436, allocations: 0.5212 MB / 428 MB, free: 4.363 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.01437, allocations: 0 / 428 MB, free: 4.363 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004494/0.01482, allocations: 380.2 kB / 428.4 MB, free: 4.199 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.01483, allocations: 13.44 kB / 428.4 MB, free: 4.191 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.01484, allocations: 2.094 kB / 428.4 MB, free: 4.191 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.01485, allocations: 4.859 kB / 428.4 MB, free: 4.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001698/0.01502, allocations: 70.58 kB / 428.5 MB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.01503, allocations: 4.359 kB / 428.5 MB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.01514, allocations: 44.22 kB / 428.5 MB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.01516, allocations: 14.09 kB / 428.6 MB, free: 4.156 MB / 330.7 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.0002435/0.0154, allocations: 211.5 kB / 428.8 MB, free: 4.016 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001529/0.01555, allocations: 286.6 kB / 429 MB, free: 3.746 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006346/0.01619, allocations: 469.7 kB / 429.5 MB, free: 3.508 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.012e-06/0.01619, allocations: 5 kB / 429.5 MB, free: 3.504 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0003313/0.01652, allocations: 334.6 kB / 429.8 MB, free: 3.344 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.943e-06/0.01653, allocations: 5.375 kB / 429.8 MB, free: 3.344 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.706e-06/0.01653, allocations: 6.531 kB / 429.8 MB, free: 3.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.697e-06/0.01654, allocations: 3.062 kB / 429.8 MB, free: 3.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.01667, allocations: 62.98 kB / 429.9 MB, free: 3.332 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.01667, allocations: 7.938 kB / 429.9 MB, free: 3.328 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.01678, allocations: 34.17 kB / 429.9 MB, free: 3.309 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.01679, allocations: 13.22 kB / 430 MB, free: 3.305 MB / 330.7 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.798e-05/0.01687, allocations: 213.7 kB / 430.2 MB, free: 3.102 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.922e-05/0.01691, allocations: 49.41 kB / 430.2 MB, free: 3.074 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.156e-05/0.01697, allocations: 55.94 kB / 430.3 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.01697, allocations: 2.781 kB / 430.3 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.01698, allocations: 0 / 430.3 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.01698, allocations: 3.203 kB / 430.3 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003214/0.0173, allocations: 380.5 kB / 430.6 MB, free: 2.781 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.01731, allocations: 4.75 kB / 430.7 MB, free: 2.777 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001785/0.01749, allocations: 56.72 kB / 430.7 MB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.01749, allocations: 5.844 kB / 430.7 MB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.904e-05/0.01751, allocations: 7.266 kB / 430.7 MB, free: 2.762 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.01751, allocations: 1.344 kB / 430.7 MB, free: 2.762 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.01751, allocations: 0 / 430.7 MB, free: 2.762 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005778/0.01809, allocations: 0.5377 MB / 431.3 MB, free: 2.469 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.24e-05/0.01818, allocations: 80.94 kB / 431.3 MB, free: 2.414 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.028e-05/0.01821, allocations: 10.44 kB / 431.3 MB, free: 2.406 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.01832, allocations: 22.72 kB / 431.4 MB, free: 2.398 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.988e-05/0.01838, allocations: 15.58 kB / 431.4 MB, free: 2.398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.01839, allocations: 12.19 kB / 431.4 MB, free: 2.391 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002298/0.01862, allocations: 283.1 kB / 431.7 MB, free: 2.258 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01862, allocations: 0 / 431.7 MB, free: 2.258 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003265/0.01894, allocations: 138.4 kB / 431.8 MB, free: 2.219 MB / 330.7 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.00064/0.01958, allocations: 1.101 MB / 432.9 MB, free: 1.371 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005316/0.02011, allocations: 405.4 kB / 433.3 MB, free: 1.234 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.02012, allocations: 0 / 433.3 MB, free: 1.234 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000162/0.02028, allocations: 122.9 kB / 433.4 MB, free: 1.199 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.02072, allocations: 118.7 kB / 433.5 MB, free: 1.168 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00362/0.02434, allocations: 3.761 MB / 437.3 MB, free: 14.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.02453, allocations: 229.8 kB / 437.5 MB, free: 14.82 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001668/0.0247, allocations: 48.22 kB / 437.6 MB, free: 14.81 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001771/0.02487, allocations: 163.9 kB / 437.7 MB, free: 14.68 MB / 346.7 MB Notification: Performance of SimCode: time 5.81e-07/0.02488, allocations: 5 kB / 437.7 MB, free: 14.68 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02165/0.04652, allocations: 10.02 MB / 447.8 MB, free: 7.602 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.909/6.955, allocations: 4.547 kB / 447.8 MB, free: 7.602 MB / 346.7 MB " [Timeout remaining time 653] (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 --stepSize=4 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_generator_models_TurbineFollows.fmu > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.896646118722856] Failed to read output from testmodel.py, exit status != 0: 7.044446800835431 7.052847454 7.044053592 Calling exit ...