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.00151/0.00151, allocations: 81.27 kB / 19.96 MB, free: 1.754 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.001627/0.001627, allocations: 166.7 kB / 23.23 MB, free: 4.875 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.464/1.464, allocations: 177.1 MB / 203.5 MB, free: 9.16 MB / 190.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.16/0.16, allocations: 18.12 MB / 278.1 MB, free: 15.04 MB / 270.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: 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 1.562e-06/1.562e-06, allocations: 0 / 415.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.816e-05/2.973e-05, allocations: 2.281 kB / 415.6 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002335/0.002365, allocations: 0.9837 MB / 416.5 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.004454, allocations: 1.229 MB / 417.8 MB, free: 340 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.004579, allocations: 7.938 kB / 417.8 MB, free: 332 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003545/0.004933, allocations: 51.69 kB / 417.8 MB, free: 280 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001998/0.005133, allocations: 39.78 kB / 417.9 MB, free: 240 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003567/0.00549, allocations: 131.6 kB / 418 MB, free: 108 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002876/0.005777, allocations: 147.6 kB / 418.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.005891, allocations: 21.67 kB / 418.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.006019, allocations: 59.81 kB / 418.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002292/0.006248, allocations: 83.75 kB / 418.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.191e-05/0.00632, allocations: 12 kB / 418.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.197e-05/0.006362, allocations: 12 kB / 418.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.006473, allocations: 39.84 kB / 418.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.646e-05/0.006569, allocations: 39.83 kB / 418.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000345/0.006914, allocations: 131.5 kB / 418.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.006921, allocations: 0 / 418.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.006923, allocations: 3.938 kB / 418.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.886e-06/0.006932, allocations: 0 / 418.5 MB, free: 15.56 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0015/0.008431, allocations: 445.5 kB / 419 MB, free: 15.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.008468, allocations: 8.922 kB / 419 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.678e-05/0.008535, allocations: 20.8 kB / 419 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005995/0.009135, allocations: 226.2 kB / 419.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.009155, allocations: 8.359 kB / 419.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.517e-05/0.00919, allocations: 12.36 kB / 419.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.00945, allocations: 128.6 kB / 419.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.00946, allocations: 192 / 419.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.009474, allocations: 384 / 419.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.009483, allocations: 7.938 kB / 419.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002184/0.009702, allocations: 95.81 kB / 419.5 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008279/0.01053, allocations: 0.4967 MB / 420 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004224/0.01095, allocations: 134.5 kB / 420.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.01106, allocations: 48.83 kB / 420.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.01108, allocations: 0 / 420.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.01111, allocations: 34.69 kB / 420.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.01111, allocations: 4 kB / 420.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004721/0.01158, allocations: 169.5 kB / 420.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.01163, allocations: 51.41 kB / 420.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005425/0.01217, allocations: 254.7 kB / 420.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.314e-05/0.0122, allocations: 29.7 kB / 420.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.946e-05/0.0123, allocations: 116 kB / 420.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.201e-05/0.01234, allocations: 43.69 kB / 420.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.448e-05/0.01241, allocations: 29.7 kB / 420.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.01257, allocations: 330.8 kB / 421.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.993e-05/0.01267, allocations: 40.34 kB / 421.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/0.01278, allocations: 62.55 kB / 421.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008827/0.01367, allocations: 250.3 kB / 421.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.01367, allocations: 4 kB / 421.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000316/0.01398, allocations: 172.6 kB / 421.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.014, allocations: 4 kB / 421.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.01401, allocations: 0 / 421.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.01403, allocations: 8.062 kB / 421.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.01416, allocations: 19.98 kB / 421.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.01417, allocations: 7.938 kB / 421.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.01439, allocations: 27.91 kB / 421.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.0144, allocations: 4 kB / 421.8 MB, free: 12.12 MB / 350.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.000179/0.01458, allocations: 137.7 kB / 421.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.579e-05/0.01462, allocations: 23.84 kB / 421.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.111e-05/0.01467, allocations: 21.45 kB / 422 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.01468, allocations: 4 kB / 422 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.01468, allocations: 0 / 422 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.01469, allocations: 0 / 422 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002502/0.01494, allocations: 173.1 kB / 422.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.01494, allocations: 4 kB / 422.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001421/0.01508, allocations: 23.92 kB / 422.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.01509, allocations: 0 / 422.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.0151, allocations: 0 / 422.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.0151, allocations: 4 kB / 422.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.0151, allocations: 4 kB / 422.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004539/0.01556, allocations: 287.2 kB / 422.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.984e-05/0.0156, allocations: 15.91 kB / 422.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/0.01563, allocations: 4 kB / 422.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002351/0.01586, allocations: 28 kB / 422.5 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.729e-05/0.01591, allocations: 3.984 kB / 422.5 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.357e-06/0.01592, allocations: 4 kB / 422.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004357/0.01636, allocations: 200.3 kB / 422.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.01636, allocations: 0 / 422.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002635/0.01662, allocations: 16 kB / 422.7 MB, free: 11.13 MB / 350.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.0001272/0.01675, allocations: 103.2 kB / 422.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002627/0.01701, allocations: 107.9 kB / 422.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01701, allocations: 0 / 422.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.01711, allocations: 56.03 kB / 423 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.01747, allocations: 29.03 kB / 423 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006243/0.01809, allocations: 309.9 kB / 423.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001221/0.01821, allocations: 107.4 kB / 423.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.176e-05/0.01831, allocations: 33.06 kB / 423.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.679e-05/0.01836, allocations: 16.5 kB / 423.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.01836, allocations: 0 / 423.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of Templates: time 0.00481/0.02317, allocations: 1.366 MB / 424.8 MB, free: 8.992 MB / 350.1 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 -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: 4.50101526081562] Failed to read output from testmodel.py, exit status != 0: 0.03356057405471802 0.049230629000000005 0.038948454 Calling exit ...