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.001042/0.001042, allocations: 84.44 kB / 20.71 MB, free: 3.855 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.0007873/0.0007873, allocations: 165.2 kB / 23.98 MB, free: 0.582 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.8559/0.8559, allocations: 177.1 MB / 204.3 MB, free: 5.73 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.05928/0.05928, allocations: 18.12 MB / 278.8 MB, free: 11.53 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 1.693e-06/1.693e-06, allocations: 0 / 416.3 MB, free: 12.5 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.449e-05/2.618e-05, allocations: 3.656 kB / 416.3 MB, free: 12.49 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001605/0.001631, allocations: 0.9738 MB / 417.3 MB, free: 11.91 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001084/0.002715, allocations: 1.247 MB / 418.5 MB, free: 11 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.792e-05/0.002803, allocations: 2.312 kB / 418.5 MB, free: 11 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003024/0.003106, allocations: 40.7 kB / 418.6 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.003253, allocations: 50.12 kB / 418.6 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002343/0.003487, allocations: 122.2 kB / 418.7 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001942/0.003681, allocations: 157.6 kB / 418.9 MB, free: 10.84 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.003783, allocations: 25.69 kB / 418.9 MB, free: 10.82 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.428e-05/0.003867, allocations: 69.36 kB / 419 MB, free: 10.8 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000129/0.003996, allocations: 70.33 kB / 419.1 MB, free: 10.78 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.218e-05/0.004029, allocations: 11 kB / 419.1 MB, free: 10.78 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.551e-05/0.004044, allocations: 9.625 kB / 419.1 MB, free: 10.78 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.768e-05/0.004102, allocations: 45.88 kB / 419.1 MB, free: 10.76 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.048e-05/0.004142, allocations: 32.27 kB / 419.1 MB, free: 10.74 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001692/0.004311, allocations: 127.6 kB / 419.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.004314, allocations: 0 / 419.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.004315, allocations: 0 / 419.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.004319, allocations: 4 kB / 419.3 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.0006766/0.004996, allocations: 446.2 kB / 419.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.00503, allocations: 14.02 kB / 419.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.916e-05/0.005069, allocations: 19.7 kB / 419.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003259/0.005395, allocations: 227.3 kB / 420 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.005411, allocations: 7.125 kB / 420 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.005433, allocations: 6.688 kB / 420 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001742/0.005607, allocations: 133.7 kB / 420.1 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.005618, allocations: 1.188 kB / 420.1 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.005632, allocations: 6.703 kB / 420.1 MB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.005638, allocations: 5.25 kB / 420.1 MB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000144/0.005782, allocations: 85.12 kB / 420.2 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005055/0.006287, allocations: 0.4999 MB / 420.7 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000281/0.006568, allocations: 142.4 kB / 420.8 MB, free: 9.574 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.709e-05/0.006635, allocations: 46.73 kB / 420.9 MB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.006649, allocations: 1.188 kB / 420.9 MB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.341e-05/0.006662, allocations: 32.58 kB / 420.9 MB, free: 9.516 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.006664, allocations: 0 / 420.9 MB, free: 9.516 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002881/0.006952, allocations: 166.9 kB / 421.1 MB, free: 9.438 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.547e-05/0.006977, allocations: 53.45 kB / 421.1 MB, free: 9.375 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002965/0.007274, allocations: 262.8 kB / 421.4 MB, free: 9.227 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.07e-05/0.007284, allocations: 31.45 kB / 421.4 MB, free: 9.191 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.931e-05/0.007334, allocations: 120.3 kB / 421.5 MB, free: 9.082 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.275e-05/0.007356, allocations: 37.91 kB / 421.6 MB, free: 9.051 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.782e-05/0.007394, allocations: 29.7 kB / 421.6 MB, free: 9.027 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.65e-05/0.007431, allocations: 328.9 kB / 421.9 MB, free: 8.707 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.011e-05/0.007491, allocations: 39.53 kB / 422 MB, free: 8.695 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.853e-05/0.007559, allocations: 69.06 kB / 422 MB, free: 8.652 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005056/0.008065, allocations: 244.9 kB / 422.3 MB, free: 8.57 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.008068, allocations: 5.375 kB / 422.3 MB, free: 8.566 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001952/0.008263, allocations: 171.5 kB / 422.4 MB, free: 8.48 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.008278, allocations: 4.844 kB / 422.5 MB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.008285, allocations: 2.516 kB / 422.5 MB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.008299, allocations: 1.031 kB / 422.5 MB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.276e-05/0.008371, allocations: 22.22 kB / 422.5 MB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.008377, allocations: 0.6562 kB / 422.5 MB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.596e-05/0.008473, allocations: 32.36 kB / 422.5 MB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.00848, allocations: 7.531 kB / 422.5 MB, free: 8.469 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 0.0001022/0.008582, allocations: 143.5 kB / 422.7 MB, free: 8.336 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.225e-05/0.008605, allocations: 15.16 kB / 422.7 MB, free: 8.328 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.202e-05/0.008637, allocations: 24.12 kB / 422.7 MB, free: 8.316 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.008639, allocations: 1.188 kB / 422.7 MB, free: 8.316 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.008646, allocations: 1.25 kB / 422.7 MB, free: 8.316 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.008649, allocations: 0.6094 kB / 422.7 MB, free: 8.316 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.008792, allocations: 172.2 kB / 422.9 MB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.008793, allocations: 1.375 kB / 422.9 MB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.911e-05/0.008863, allocations: 20 kB / 422.9 MB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.008865, allocations: 0 / 422.9 MB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.008876, allocations: 6.609 kB / 422.9 MB, free: 8.156 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.008878, allocations: 1.438 kB / 422.9 MB, free: 8.156 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.00888, allocations: 0.875 kB / 422.9 MB, free: 8.156 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002637/0.009144, allocations: 283.7 kB / 423.2 MB, free: 7.969 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.707e-05/0.009171, allocations: 23.16 kB / 423.2 MB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.009188, allocations: 6.844 kB / 423.2 MB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.009291, allocations: 26.8 kB / 423.2 MB, free: 7.945 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.337e-05/0.009324, allocations: 9.594 kB / 423.2 MB, free: 7.941 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.009329, allocations: 2.281 kB / 423.2 MB, free: 7.941 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000202/0.009531, allocations: 197.3 kB / 423.4 MB, free: 7.844 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009531, allocations: 0 / 423.4 MB, free: 7.844 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001712/0.009703, allocations: 23.38 kB / 423.5 MB, free: 7.84 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 8.297e-05/0.009786, allocations: 107.8 kB / 423.6 MB, free: 7.738 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001898/0.009975, allocations: 101.2 kB / 423.7 MB, free: 7.711 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.009977, allocations: 0 / 423.7 MB, free: 7.711 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.668e-05/0.01004, allocations: 49.61 kB / 423.7 MB, free: 7.695 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.01029, allocations: 35.25 kB / 423.7 MB, free: 7.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004995/0.01079, allocations: 339 kB / 424.1 MB, free: 7.445 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.511e-05/0.01088, allocations: 115.6 kB / 424.2 MB, free: 7.367 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.686e-05/0.01093, allocations: 16.88 kB / 424.2 MB, free: 7.359 MB / 330.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01093, allocations: 0 / 424.2 MB, free: 7.359 MB / 330.7 MB Notification: Performance of Templates: time 0.003854/0.01478, allocations: 1.986 MB / 426.2 MB, free: 7.211 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 -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.43866962660104] Failed to read output from testmodel.py, exit status != 0: 0.020412513054907322 0.032653708000000004 0.025775528000000002 Calling exit ...