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.001127/0.001127, allocations: 76.52 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.001361/0.001361, allocations: 165.2 kB / 23.23 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.9365/0.9365, allocations: 177.1 MB / 203.5 MB, free: 5.754 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.06247/0.06247, allocations: 18.13 MB / 278.1 MB, free: 11.55 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 3.186e-06/3.186e-06, allocations: 1.281 kB / 415 MB, free: 12.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.798e-05/3.117e-05, allocations: 2.281 kB / 415 MB, free: 12.67 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.003396/0.003428, allocations: 2.763 MB / 417.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002015/0.005442, allocations: 1.039 MB / 418.8 MB, free: 10.14 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004404/0.005883, allocations: 28.62 kB / 418.9 MB, free: 10.13 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002546/0.006137, allocations: 84.14 kB / 419 MB, free: 10.07 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002195/0.006357, allocations: 91.52 kB / 419 MB, free: 9.992 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008176/0.007174, allocations: 332.7 kB / 419.4 MB, free: 9.805 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006116/0.007786, allocations: 0.5613 MB / 419.9 MB, free: 9.508 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00034/0.008126, allocations: 157.7 kB / 420.1 MB, free: 9.422 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002523/0.008378, allocations: 178.2 kB / 420.3 MB, free: 9.332 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002313/0.00861, allocations: 138 kB / 420.4 MB, free: 9.273 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.273e-05/0.008702, allocations: 49.22 kB / 420.4 MB, free: 9.27 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.372e-05/0.008766, allocations: 46.62 kB / 420.5 MB, free: 9.27 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 8.239e-05/0.008848, allocations: 107.9 kB / 420.6 MB, free: 9.191 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.008972, allocations: 141.3 kB / 420.7 MB, free: 9.109 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006692/0.009641, allocations: 0.5394 MB / 421.3 MB, free: 8.859 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.009646, allocations: 2 kB / 421.3 MB, free: 8.859 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.009647, allocations: 0 / 421.3 MB, free: 8.859 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.869e-05/0.009665, allocations: 0 / 421.3 MB, free: 8.859 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.001099/0.01076, allocations: 0.751 MB / 422 MB, free: 8.305 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.479e-05/0.01083, allocations: 10.61 kB / 422 MB, free: 8.305 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.11e-05/0.01091, allocations: 70.58 kB / 422.1 MB, free: 8.246 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.01101, allocations: 63.58 kB / 422.2 MB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004801/0.01149, allocations: 375.3 kB / 422.5 MB, free: 7.945 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.01152, allocations: 28.22 kB / 422.6 MB, free: 7.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.531e-05/0.01157, allocations: 40.25 kB / 422.6 MB, free: 7.918 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006444/0.01221, allocations: 0.5249 MB / 423.1 MB, free: 7.551 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.01222, allocations: 192 / 423.1 MB, free: 7.551 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.01226, allocations: 25.56 kB / 423.1 MB, free: 7.531 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.01227, allocations: 8.406 kB / 423.2 MB, free: 7.531 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004632/0.01273, allocations: 286 kB / 423.4 MB, free: 7.426 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.01443, allocations: 1.389 MB / 424.8 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007238/0.01516, allocations: 325.2 kB / 425.1 MB, free: 6.258 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002118/0.01537, allocations: 132.7 kB / 425.3 MB, free: 6.203 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.166e-05/0.01541, allocations: 4.016 kB / 425.3 MB, free: 6.203 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.01543, allocations: 46.17 kB / 425.3 MB, free: 6.152 MB / 330.7 MB Notification: Performance of pre-optimization done (n=28): time 2.735e-06/0.01544, allocations: 0 / 425.3 MB, free: 6.152 MB / 330.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008628/0.0163, allocations: 404.1 kB / 425.7 MB, free: 5.988 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/0.01637, allocations: 163.6 kB / 425.9 MB, free: 5.797 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000454/0.01682, allocations: 407.4 kB / 426.3 MB, free: 5.598 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.01684, allocations: 31.17 kB / 426.3 MB, free: 5.562 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.017, allocations: 270.3 kB / 426.6 MB, free: 5.344 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.724e-05/0.01705, allocations: 102.4 kB / 426.7 MB, free: 5.262 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.01715, allocations: 68.98 kB / 426.7 MB, free: 5.219 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.01726, allocations: 356.3 kB / 427.1 MB, free: 4.887 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.01744, allocations: 113.9 kB / 427.2 MB, free: 4.844 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000262/0.01771, allocations: 317.5 kB / 427.5 MB, free: 4.566 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/0.0188, allocations: 0.513 MB / 428 MB, free: 4.332 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.0188, allocations: 4 kB / 428 MB, free: 4.328 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005103/0.01931, allocations: 379.4 kB / 428.4 MB, free: 4.164 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.01933, allocations: 11.03 kB / 428.4 MB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.01934, allocations: 1.734 kB / 428.4 MB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.01936, allocations: 3.469 kB / 428.4 MB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.01958, allocations: 81.17 kB / 428.5 MB, free: 4.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.01959, allocations: 3.922 kB / 428.5 MB, free: 4.145 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.01973, allocations: 44.95 kB / 428.5 MB, free: 4.121 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.027e-05/0.01975, allocations: 13.25 kB / 428.5 MB, free: 4.117 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.0002866/0.02004, allocations: 215.2 kB / 428.8 MB, free: 3.973 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001862/0.02022, allocations: 280.1 kB / 429 MB, free: 3.711 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007394/0.02096, allocations: 481.1 kB / 429.5 MB, free: 3.461 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.863e-06/0.02096, allocations: 0 / 429.5 MB, free: 3.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0003724/0.02133, allocations: 335.2 kB / 429.8 MB, free: 3.301 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/0.02134, allocations: 5.844 kB / 429.8 MB, free: 3.301 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.166e-06/0.02135, allocations: 10.94 kB / 429.8 MB, free: 3.293 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.138e-06/0.02135, allocations: 2.5 kB / 429.8 MB, free: 3.293 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.0215, allocations: 62.36 kB / 429.9 MB, free: 3.285 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.0215, allocations: 5 kB / 429.9 MB, free: 3.285 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/0.02162, allocations: 28.73 kB / 429.9 MB, free: 3.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.02163, allocations: 13.03 kB / 430 MB, free: 3.266 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 0.0001047/0.02174, allocations: 206.3 kB / 430.2 MB, free: 3.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.345e-05/0.02178, allocations: 53.92 kB / 430.2 MB, free: 3.039 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.191e-05/0.02184, allocations: 60.34 kB / 430.3 MB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.02185, allocations: 2.625 kB / 430.3 MB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.02185, allocations: 1.984 kB / 430.3 MB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.02186, allocations: 1.406 kB / 430.3 MB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003489/0.02221, allocations: 377.2 kB / 430.6 MB, free: 2.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.02221, allocations: 4.797 kB / 430.6 MB, free: 2.742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001678/0.02238, allocations: 48.17 kB / 430.7 MB, free: 2.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.02238, allocations: 5.953 kB / 430.7 MB, free: 2.738 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.0224, allocations: 6.75 kB / 430.7 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.0224, allocations: 5.656 kB / 430.7 MB, free: 2.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.0224, allocations: 0 / 430.7 MB, free: 2.73 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006243/0.02303, allocations: 0.5419 MB / 431.3 MB, free: 2.434 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.728e-05/0.02312, allocations: 74.03 kB / 431.3 MB, free: 2.387 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.02316, allocations: 15.27 kB / 431.3 MB, free: 2.375 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.02327, allocations: 20.95 kB / 431.4 MB, free: 2.367 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.582e-05/0.02331, allocations: 23.25 kB / 431.4 MB, free: 2.359 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.978e-06/0.02332, allocations: 4.875 kB / 431.4 MB, free: 2.359 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002229/0.02354, allocations: 287.5 kB / 431.7 MB, free: 2.223 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02354, allocations: 0 / 431.7 MB, free: 2.223 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003454/0.02389, allocations: 145.6 kB / 431.8 MB, free: 2.176 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.0006401/0.02453, allocations: 1.102 MB / 432.9 MB, free: 1.328 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005193/0.02505, allocations: 396.3 kB / 433.3 MB, free: 1.199 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.02505, allocations: 2.016 kB / 433.3 MB, free: 1.199 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001622/0.02521, allocations: 128.9 kB / 433.4 MB, free: 1.156 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004735/0.02569, allocations: 119.2 kB / 433.5 MB, free: 1.125 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004052/0.02974, allocations: 3.757 MB / 437.3 MB, free: 14.87 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002061/0.02994, allocations: 233 kB / 437.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002288/0.03017, allocations: 49.92 kB / 437.6 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.03036, allocations: 159.4 kB / 437.7 MB, free: 14.64 MB / 346.7 MB Notification: Performance of SimCode: time 1.153e-06/0.03036, allocations: 5.281 kB / 437.7 MB, free: 14.64 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02791/0.05828, allocations: 10.02 MB / 447.8 MB, free: 7.586 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.112/7.17, allocations: 6.969 kB / 447.8 MB, free: 7.582 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 & 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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.237348298542202] Failed to read output from testmodel.py, exit status != 0: 7.26089237164706 7.27115684 7.259127855 Calling exit ...