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.0009031/0.0009031, allocations: 75.7 kB / 20.8 MB, free: 3.711 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.0008579/0.0008579, allocations: 166 kB / 24.09 MB, free: 424 kB / 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.9153/0.9153, allocations: 177.2 MB / 204.4 MB, free: 5.691 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.05995/0.05995, allocations: 18.13 MB / 279 MB, free: 11.48 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: translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 416.5 MB, free: 12.51 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.248e-05/3.456e-05, allocations: 2.281 kB / 416.5 MB, free: 12.5 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002096/0.002131, allocations: 0.9802 MB / 417.5 MB, free: 11.9 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001453/0.003584, allocations: 1.238 MB / 418.8 MB, free: 11 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.275e-05/0.003676, allocations: 6.906 kB / 418.8 MB, free: 11 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003247/0.004001, allocations: 36.91 kB / 418.8 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001862/0.004187, allocations: 50.09 kB / 418.9 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003034/0.004491, allocations: 122.6 kB / 419 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002234/0.004714, allocations: 154 kB / 419.1 MB, free: 10.84 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.004824, allocations: 22.61 kB / 419.1 MB, free: 10.83 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.004933, allocations: 64.33 kB / 419.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001558/0.005088, allocations: 79.72 kB / 419.3 MB, free: 10.79 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.931e-05/0.005118, allocations: 8.75 kB / 419.3 MB, free: 10.79 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.173e-05/0.005139, allocations: 10.06 kB / 419.3 MB, free: 10.79 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.15e-05/0.005211, allocations: 45.92 kB / 419.3 MB, free: 10.76 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.16e-05/0.005262, allocations: 34.92 kB / 419.4 MB, free: 10.74 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002041/0.005467, allocations: 128.1 kB / 419.5 MB, free: 10.69 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.00547, allocations: 1.281 kB / 419.5 MB, free: 10.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.005471, allocations: 0 / 419.5 MB, free: 10.69 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.005476, allocations: 0 / 419.5 MB, free: 10.69 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0008033/0.006279, allocations: 448.4 kB / 419.9 MB, free: 10.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.006325, allocations: 10.69 kB / 420 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.263e-05/0.006367, allocations: 20.7 kB / 420 MB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004108/0.006778, allocations: 238.8 kB / 420.2 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.006796, allocations: 7.969 kB / 420.2 MB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.237e-05/0.006828, allocations: 9.844 kB / 420.2 MB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002113/0.00704, allocations: 123 kB / 420.3 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.007048, allocations: 192 / 420.3 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.007063, allocations: 10.09 kB / 420.4 MB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.00707, allocations: 6.656 kB / 420.4 MB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001803/0.00725, allocations: 84.28 kB / 420.4 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005751/0.007825, allocations: 0.5081 MB / 421 MB, free: 9.629 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002906/0.008116, allocations: 130.2 kB / 421.1 MB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.304e-05/0.008179, allocations: 45.88 kB / 421.1 MB, free: 9.559 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.192e-05/0.008191, allocations: 10.34 kB / 421.1 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.142e-05/0.008202, allocations: 35.66 kB / 421.2 MB, free: 9.508 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.242e-06/0.008203, allocations: 1.562 kB / 421.2 MB, free: 9.508 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002691/0.008473, allocations: 161.4 kB / 421.3 MB, free: 9.434 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.943e-05/0.008492, allocations: 53.69 kB / 421.4 MB, free: 9.371 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002773/0.008769, allocations: 255.4 kB / 421.6 MB, free: 9.23 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.008781, allocations: 29.7 kB / 421.7 MB, free: 9.195 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.741e-05/0.008829, allocations: 124.4 kB / 421.8 MB, free: 9.082 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.387e-05/0.008853, allocations: 34.77 kB / 421.8 MB, free: 9.055 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.511e-05/0.008888, allocations: 30.27 kB / 421.8 MB, free: 9.031 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.61e-05/0.008924, allocations: 328.2 kB / 422.2 MB, free: 8.711 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.111e-05/0.008985, allocations: 44.16 kB / 422.2 MB, free: 8.695 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.767e-05/0.009053, allocations: 66.34 kB / 422.3 MB, free: 8.656 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004838/0.009536, allocations: 249.3 kB / 422.5 MB, free: 8.57 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.00954, allocations: 1.156 kB / 422.5 MB, free: 8.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001852/0.009725, allocations: 170.8 kB / 422.7 MB, free: 8.484 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.009741, allocations: 8.625 kB / 422.7 MB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.009748, allocations: 2.859 kB / 422.7 MB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.009759, allocations: 1.312 kB / 422.7 MB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.149e-05/0.009831, allocations: 28.61 kB / 422.7 MB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.009836, allocations: 1.609 kB / 422.7 MB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.672e-05/0.009933, allocations: 25.61 kB / 422.8 MB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.787e-06/0.009942, allocations: 4.031 kB / 422.8 MB, free: 8.473 MB / 330.7 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 9.055e-05/0.01003, allocations: 139.6 kB / 422.9 MB, free: 8.344 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.429e-05/0.01006, allocations: 15.34 kB / 422.9 MB, free: 8.336 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.161e-05/0.01009, allocations: 23.89 kB / 422.9 MB, free: 8.324 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.01009, allocations: 1.094 kB / 422.9 MB, free: 8.324 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.01009, allocations: 0.6562 kB / 422.9 MB, free: 8.324 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.0101, allocations: 1.828 kB / 422.9 MB, free: 8.324 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.01023, allocations: 175.4 kB / 423.1 MB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.01023, allocations: 1 kB / 423.1 MB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.983e-05/0.0103, allocations: 19.91 kB / 423.1 MB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.0103, allocations: 0 / 423.1 MB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.01031, allocations: 6 kB / 423.1 MB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.01032, allocations: 1.625 kB / 423.1 MB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01032, allocations: 7.938 kB / 423.1 MB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002405/0.01056, allocations: 284 kB / 423.4 MB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.43e-05/0.01058, allocations: 20.73 kB / 423.4 MB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.0106, allocations: 2.281 kB / 423.4 MB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.01071, allocations: 23.25 kB / 423.5 MB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.395e-05/0.01074, allocations: 9.625 kB / 423.5 MB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.01074, allocations: 6.094 kB / 423.5 MB, free: 7.945 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001976/0.01094, allocations: 193.4 kB / 423.7 MB, free: 7.852 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01094, allocations: 0 / 423.7 MB, free: 7.852 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001653/0.01111, allocations: 22.12 kB / 423.7 MB, free: 7.848 MB / 330.7 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 6.438e-05/0.01117, allocations: 96.31 kB / 423.8 MB, free: 7.758 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000165/0.01134, allocations: 110.5 kB / 423.9 MB, free: 7.723 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-06/0.01134, allocations: 0 / 423.9 MB, free: 7.723 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.035e-05/0.0114, allocations: 45.91 kB / 423.9 MB, free: 7.711 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002228/0.01162, allocations: 29 kB / 424 MB, free: 7.699 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004129/0.01203, allocations: 309.6 kB / 424.3 MB, free: 7.496 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.405e-05/0.01212, allocations: 123.5 kB / 424.4 MB, free: 7.41 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.704e-05/0.01219, allocations: 24.81 kB / 424.4 MB, free: 7.406 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.494e-05/0.01222, allocations: 15.14 kB / 424.4 MB, free: 7.398 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.01222, allocations: 1.281 kB / 424.4 MB, free: 7.398 MB / 330.7 MB Notification: Performance of Templates: time 0.003232/0.01545, allocations: 1.374 MB / 425.8 MB, free: 7.234 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.makefile [Timeout 660] (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 & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 2.925757735967636] Failed to read output from testmodel.py, exit status != 0: 0.02244709711521864 0.029180358000000003 0.022025076 Calling exit ...