Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.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.001364/0.001364, allocations: 114.8 kB / 17.16 MB, free: 5.895 MB / 14.72 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.001915/0.001915, allocations: 210.3 kB / 20.13 MB, free: 2.949 MB / 14.72 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 1.53/1.53, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] 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.1007/0.1007, allocations: 22.92 MB / 332.5 MB, free: 2.66 MB / 254.1 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_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003389/0.003389, allocations: 72.39 kB / 466.7 MB, free: 32.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1493, allocations: 59.26 MB / 0.5137 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.00298/0.1523, allocations: 1.01 MB / 0.5147 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.1544, allocations: 1.268 MB / 0.5159 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001854/0.1545, allocations: 3.938 kB / 0.5159 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003666/0.1549, allocations: 43.77 kB / 0.5159 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001941/0.1551, allocations: 47.7 kB / 0.516 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002304/0.1553, allocations: 79.88 kB / 0.5161 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003137/0.1557, allocations: 211.6 kB / 0.5163 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.1558, allocations: 25.42 kB / 0.5163 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001487/0.1559, allocations: 95.66 kB / 0.5164 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001978/0.1561, allocations: 95.62 kB / 0.5165 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.623e-05/0.1561, allocations: 12 kB / 0.5165 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.679e-05/0.1562, allocations: 8 kB / 0.5165 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.689e-05/0.1563, allocations: 47.78 kB / 0.5165 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.064e-05/0.1563, allocations: 55.66 kB / 0.5166 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002587/0.1566, allocations: 127.4 kB / 0.5167 GB, free: 10.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1566, allocations: 4 kB / 0.5167 GB, free: 10.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.1566, allocations: 0 / 0.5167 GB, free: 10.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.1566, allocations: 0 / 0.5167 GB, free: 10.89 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001452/0.1581, allocations: 0.5181 MB / 0.5172 GB, free: 10.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.1581, allocations: 16.56 kB / 0.5172 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.968e-05/0.1581, allocations: 192 / 0.5172 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.023e-05/0.1582, allocations: 38.75 kB / 0.5173 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.2e-05/0.1583, allocations: 16.84 kB / 0.5173 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006798/0.1589, allocations: 296.8 kB / 0.5176 GB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.594e-05/0.159, allocations: 8.375 kB / 0.5176 GB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.195e-05/0.159, allocations: 12.31 kB / 0.5176 GB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002743/0.1593, allocations: 126 kB / 0.5177 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.1593, allocations: 4 kB / 0.5177 GB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.1593, allocations: 8 kB / 0.5177 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.1593, allocations: 0 / 0.5177 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002186/0.1595, allocations: 87.88 kB / 0.5178 GB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009388/0.1605, allocations: 0.5868 MB / 0.5184 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003963/0.1609, allocations: 130.4 kB / 0.5185 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.161, allocations: 48.83 kB / 0.5185 GB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.161, allocations: 0 / 0.5185 GB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.161, allocations: 42.55 kB / 0.5186 GB, free: 8.781 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 9.11e-07/0.161, allocations: 4 kB / 0.5186 GB, free: 8.777 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005349/0.1616, allocations: 157.7 kB / 0.5187 GB, free: 8.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.1616, allocations: 59.28 kB / 0.5188 GB, free: 8.547 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005001/0.1621, allocations: 258.2 kB / 0.519 GB, free: 8.285 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.1621, allocations: 25.7 kB / 0.5191 GB, free: 8.254 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.1623, allocations: 120.2 kB / 0.5192 GB, free: 8.133 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.409e-05/0.1623, allocations: 47.62 kB / 0.5192 GB, free: 8.086 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.726e-05/0.1624, allocations: 29.7 kB / 0.5193 GB, free: 8.051 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1625, allocations: 322.8 kB / 0.5196 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.161e-05/0.1626, allocations: 39.97 kB / 0.5196 GB, free: 7.688 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.1627, allocations: 64.94 kB / 0.5197 GB, free: 7.617 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008257/0.1635, allocations: 261 kB / 0.5199 GB, free: 7.355 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.1635, allocations: 0 / 0.5199 GB, free: 7.355 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000306/0.1638, allocations: 157.5 kB / 0.5201 GB, free: 7.195 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1639, allocations: 8.375 kB / 0.5201 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.1639, allocations: 0 / 0.5201 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.1639, allocations: 0 / 0.5201 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.164, allocations: 31.92 kB / 0.5201 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.164, allocations: 3.938 kB / 0.5201 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002004/0.1642, allocations: 28.03 kB / 0.5201 GB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.1642, allocations: 4 kB / 0.5201 GB, free: 7.121 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: g.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cps.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001884/0.1644, allocations: 138.5 kB / 0.5203 GB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.542e-05/0.1645, allocations: 11.91 kB / 0.5203 GB, free: 6.965 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.135e-05/0.1645, allocations: 25.39 kB / 0.5203 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.1645, allocations: 11.88 kB / 0.5203 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.1645, allocations: 0 / 0.5203 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1645, allocations: 4 kB / 0.5203 GB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003156/0.1649, allocations: 233.5 kB / 0.5205 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1649, allocations: 0 / 0.5205 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.165, allocations: 15.98 kB / 0.5206 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.165, allocations: 0 / 0.5206 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.165, allocations: 8 kB / 0.5206 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.624e-06/0.165, allocations: 7.875 kB / 0.5206 GB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.165, allocations: 0 / 0.5206 GB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004532/0.1655, allocations: 279.3 kB / 0.5208 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.886e-05/0.1656, allocations: 97.05 kB / 0.5209 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.778e-05/0.1656, allocations: 4 kB / 0.5209 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.1658, allocations: 27.91 kB / 0.521 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.096e-05/0.1659, allocations: 7.984 kB / 0.521 GB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.1659, allocations: 8 kB / 0.521 GB, free: 6.164 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004458/0.1663, allocations: 204.1 kB / 0.5212 GB, free: 5.965 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1663, allocations: 0 / 0.5212 GB, free: 5.965 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.1666, allocations: 23.94 kB / 0.5212 GB, free: 5.941 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (N.y,Cps.x_scaled[1],g.x_scaled[1]) * 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 (10): * Single equations (assignments): 10 * 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.00075/0.1673, allocations: 0.8139 MB / 0.522 GB, free: 5.102 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002607/0.1676, allocations: 99.92 kB / 0.5221 GB, free: 5.004 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1676, allocations: 4 kB / 0.5221 GB, free: 5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.978e-05/0.1677, allocations: 47.91 kB / 0.5221 GB, free: 4.953 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.1681, allocations: 36.09 kB / 0.5222 GB, free: 4.922 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00334/0.1714, allocations: 2.111 MB / 0.5242 GB, free: 2.723 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004148/0.1718, allocations: 0.724 MB / 0.5249 GB, free: 1.973 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001047/0.1719, allocations: 29.25 kB / 0.525 GB, free: 1.945 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.976e-05/0.172, allocations: 43.42 kB / 0.525 GB, free: 1.902 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.172, allocations: 0 / 0.525 GB, free: 1.902 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02948/0.2015, allocations: 3.187 MB / 0.5281 GB, free: 14.86 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.378/8.579, allocations: 13.05 kB / 0.5281 GB, free: 14.85 MB / 398.1 MB " [Timeout remaining time 651] (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator_fmu --startTime=0 --stopTime=300 --stepSize=0.6 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.403432827966753] Failed to read output from testmodel.py, exit status != 0: 8.708431706996635 8.72280267 8.563213664 Calling exit ...