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.0009287/0.0009287, allocations: 72.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.0009051/0.0009051, allocations: 169.2 kB / 23.23 MB, free: 1.332 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.9008/0.9008, allocations: 177.1 MB / 203.5 MB, free: 5.746 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.06058/0.06058, 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_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",fmuType="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 415 MB, free: 12.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.646e-05/1.795e-05, allocations: 2.281 kB / 415 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001479/0.001497, allocations: 0.981 MB / 416 MB, free: 12.16 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.002509, allocations: 1.234 MB / 417.3 MB, free: 11.27 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.842e-05/0.002588, allocations: 2.75 kB / 417.3 MB, free: 11.27 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002868/0.002875, allocations: 43.95 kB / 417.3 MB, free: 11.24 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000122/0.002997, allocations: 47.22 kB / 417.4 MB, free: 11.22 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002043/0.003201, allocations: 126 kB / 417.5 MB, free: 11.16 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001846/0.003386, allocations: 154.4 kB / 417.6 MB, free: 11.1 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.785e-05/0.003483, allocations: 19.06 kB / 417.6 MB, free: 11.09 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.256e-05/0.003566, allocations: 68.45 kB / 417.7 MB, free: 11.07 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.003711, allocations: 76.12 kB / 417.8 MB, free: 11.05 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.489e-05/0.003746, allocations: 13.22 kB / 417.8 MB, free: 11.04 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.014e-05/0.003766, allocations: 10.81 kB / 417.8 MB, free: 11.04 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.189e-05/0.003828, allocations: 48.94 kB / 417.9 MB, free: 11.02 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.158e-05/0.00387, allocations: 31.7 kB / 417.9 MB, free: 11 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.004035, allocations: 128 kB / 418 MB, free: 10.95 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.004038, allocations: 0.6094 kB / 418 MB, free: 10.95 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.004039, allocations: 1.938 kB / 418 MB, free: 10.95 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.004044, allocations: 0 / 418 MB, free: 10.95 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.0006685/0.004712, allocations: 448 kB / 418.5 MB, free: 10.62 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.00475, allocations: 10.17 kB / 418.5 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.631e-05/0.004776, allocations: 45.53 kB / 418.5 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.044e-05/0.004807, allocations: 20.64 kB / 418.5 MB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000305/0.005112, allocations: 222.1 kB / 418.7 MB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.005125, allocations: 12.16 kB / 418.8 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.005143, allocations: 6.094 kB / 418.8 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001613/0.005305, allocations: 133.6 kB / 418.9 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.005312, allocations: 192 / 418.9 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.005323, allocations: 10.09 kB / 418.9 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.005328, allocations: 2.438 kB / 418.9 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001298/0.005458, allocations: 85.25 kB / 419 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004563/0.005915, allocations: 0.5271 MB / 419.5 MB, free: 9.816 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002578/0.006172, allocations: 133.4 kB / 419.6 MB, free: 9.762 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.174e-05/0.006234, allocations: 50.78 kB / 419.7 MB, free: 9.738 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.006247, allocations: 6.453 kB / 419.7 MB, free: 9.734 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.155e-05/0.006258, allocations: 32.75 kB / 419.7 MB, free: 9.695 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.00626, allocations: 4 kB / 419.7 MB, free: 9.691 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.000267/0.006527, allocations: 161.8 kB / 419.9 MB, free: 9.617 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.005e-05/0.006547, allocations: 52.59 kB / 419.9 MB, free: 9.555 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.006811, allocations: 264.7 kB / 420.2 MB, free: 9.406 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.006819, allocations: 25.7 kB / 420.2 MB, free: 9.375 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.258e-05/0.006871, allocations: 116.4 kB / 420.3 MB, free: 9.27 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.122e-05/0.006893, allocations: 35.48 kB / 420.4 MB, free: 9.242 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.544e-05/0.006928, allocations: 33.78 kB / 420.4 MB, free: 9.215 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.06e-05/0.006969, allocations: 331.8 kB / 420.7 MB, free: 8.891 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.958e-05/0.007028, allocations: 41.81 kB / 420.8 MB, free: 8.879 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.275e-05/0.007091, allocations: 63.5 kB / 420.8 MB, free: 8.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004594/0.00755, allocations: 258.1 kB / 421.1 MB, free: 8.746 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.007553, allocations: 0 / 421.1 MB, free: 8.746 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001692/0.007722, allocations: 170.4 kB / 421.3 MB, free: 8.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.007734, allocations: 5.562 kB / 421.3 MB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.007739, allocations: 1.922 kB / 421.3 MB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.007751, allocations: 1.219 kB / 421.3 MB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.437e-05/0.007815, allocations: 25.23 kB / 421.3 MB, free: 8.656 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.007821, allocations: 2.734 kB / 421.3 MB, free: 8.656 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.279e-05/0.007914, allocations: 25.78 kB / 421.3 MB, free: 8.656 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.007923, allocations: 12.16 kB / 421.3 MB, free: 8.648 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 8.975e-05/0.008013, allocations: 142.8 kB / 421.5 MB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.02e-05/0.008033, allocations: 14.31 kB / 421.5 MB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.605e-05/0.008059, allocations: 24.22 kB / 421.5 MB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.008061, allocations: 1.578 kB / 421.5 MB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.008065, allocations: 0 / 421.5 MB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.008068, allocations: 4.594 kB / 421.5 MB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001446/0.008212, allocations: 200.1 kB / 421.7 MB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.008213, allocations: 1.25 kB / 421.7 MB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.834e-05/0.008282, allocations: 14.8 kB / 421.7 MB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.008284, allocations: 1.797 kB / 421.7 MB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.008294, allocations: 2.75 kB / 421.7 MB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.008295, allocations: 1.094 kB / 421.7 MB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.008296, allocations: 0 / 421.7 MB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002377/0.008534, allocations: 288.4 kB / 422 MB, free: 8.113 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.144e-05/0.008555, allocations: 18.83 kB / 422 MB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.584e-05/0.008571, allocations: 3.328 kB / 422 MB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.008676, allocations: 26.97 kB / 422.1 MB, free: 8.098 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.052e-05/0.008706, allocations: 9.641 kB / 422.1 MB, free: 8.094 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.008711, allocations: 2.281 kB / 422.1 MB, free: 8.094 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001982/0.008909, allocations: 197.2 kB / 422.3 MB, free: 7.996 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008909, allocations: 3.938 kB / 422.3 MB, free: 7.992 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001616/0.009071, allocations: 26.47 kB / 422.3 MB, free: 7.984 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 0.000324/0.009395, allocations: 0.809 MB / 423.1 MB, free: 7.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001607/0.009555, allocations: 101.9 kB / 423.2 MB, free: 7.242 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.009557, allocations: 0 / 423.2 MB, free: 7.242 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.736e-05/0.009614, allocations: 57.25 kB / 423.3 MB, free: 7.219 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.009835, allocations: 25.16 kB / 423.3 MB, free: 7.211 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00167/0.0115, allocations: 2.1 MB / 425.4 MB, free: 5.723 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.725e-05/0.01158, allocations: 115.9 kB / 425.5 MB, free: 5.645 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.343e-05/0.01165, allocations: 24.73 kB / 425.5 MB, free: 5.645 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.375e-05/0.01171, allocations: 46.75 kB / 425.6 MB, free: 5.605 MB / 330.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01171, allocations: 1.469 kB / 425.6 MB, free: 5.605 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01552/0.02723, allocations: 3.852 MB / 429.4 MB, free: 4.566 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.763/6.79, allocations: 6.125 kB / 429.4 MB, free: 4.562 MB / 330.7 MB " [Timeout remaining time 653] (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: 8.688282518647611] Failed to read output from testmodel.py, exit status != 0: 6.872549404390156 6.88124168 6.875593312 Calling exit ...