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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,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=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2062/0.2062, allocations: 22.36 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 60.05 kB / 380.8 MB, free: 10.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3711/0.3724, allocations: 54.95 MB / 435.8 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002318/0.3748, allocations: 1.016 MB / 436.8 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.3763, allocations: 1.218 MB / 438 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.3765, allocations: 2.656 kB / 438 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003626/0.3768, allocations: 33.27 kB / 438 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001486/0.377, allocations: 56.36 kB / 438.1 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.3773, allocations: 70.67 kB / 438.2 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002575/0.3776, allocations: 229.1 kB / 438.4 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.3777, allocations: 30.52 kB / 438.4 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.3778, allocations: 84.84 kB / 438.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001812/0.378, allocations: 83.22 kB / 438.6 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.46e-05/0.3781, allocations: 10.22 kB / 438.6 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.867e-05/0.3781, allocations: 10.31 kB / 438.6 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.047e-05/0.3782, allocations: 50.48 kB / 438.6 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.395e-05/0.3783, allocations: 58.77 kB / 438.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001843/0.3785, allocations: 122.5 kB / 438.8 MB, free: 37.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3785, allocations: 0 / 438.8 MB, free: 37.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3785, allocations: 4 kB / 438.8 MB, free: 37.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.3785, allocations: 0 / 438.8 MB, free: 37.72 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.001147/0.3796, allocations: 0.5161 MB / 439.3 MB, free: 37.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.3797, allocations: 9.562 kB / 439.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.702e-05/0.3798, allocations: 17.09 kB / 439.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005845/0.3804, allocations: 284.8 kB / 439.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.3804, allocations: 10.94 kB / 439.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.278e-05/0.3804, allocations: 9.406 kB / 439.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002462/0.3807, allocations: 133 kB / 439.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.3807, allocations: 0 / 439.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.3807, allocations: 0 / 439.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.301e-05/0.3807, allocations: 2.969 kB / 439.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.3809, allocations: 88.91 kB / 439.9 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007421/0.3817, allocations: 0.5867 MB / 440.5 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003713/0.3821, allocations: 143.3 kB / 440.6 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.941e-05/0.3822, allocations: 51.55 kB / 440.7 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.3822, allocations: 2.594 kB / 440.7 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.3822, allocations: 34.69 kB / 440.7 MB, free: 36.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.3822, allocations: 0 / 440.7 MB, free: 36.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003833/0.3826, allocations: 161 kB / 440.9 MB, free: 36.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.839e-05/0.3827, allocations: 54.38 kB / 440.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004644/0.3831, allocations: 260.2 kB / 441.2 MB, free: 36.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.3832, allocations: 25.7 kB / 441.2 MB, free: 35.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.3833, allocations: 120.2 kB / 441.3 MB, free: 35.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.523e-05/0.3833, allocations: 33.66 kB / 441.3 MB, free: 35.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.057e-05/0.3834, allocations: 36.08 kB / 441.4 MB, free: 35.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.768e-05/0.3835, allocations: 328.9 kB / 441.7 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.563e-05/0.3836, allocations: 40.72 kB / 441.7 MB, free: 35.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.22e-05/0.3836, allocations: 61.8 kB / 441.8 MB, free: 35.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007155/0.3844, allocations: 244.5 kB / 442 MB, free: 35.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3844, allocations: 2.938 kB / 442 MB, free: 35.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002376/0.3846, allocations: 167.4 kB / 442.2 MB, free: 35.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.3847, allocations: 6.812 kB / 442.2 MB, free: 35.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.3847, allocations: 2.969 kB / 442.2 MB, free: 35.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.3847, allocations: 0 / 442.2 MB, free: 35.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.3848, allocations: 23.7 kB / 442.2 MB, free: 35.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.3848, allocations: 3.938 kB / 442.2 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001815/0.385, allocations: 36.44 kB / 442.3 MB, free: 35.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.385, allocations: 7.719 kB / 442.3 MB, free: 35.26 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.0001488/0.3852, allocations: 139.4 kB / 442.4 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.821e-05/0.3852, allocations: 16.34 kB / 442.4 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.698e-05/0.3853, allocations: 16.16 kB / 442.4 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3853, allocations: 2.844 kB / 442.5 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3853, allocations: 3.375 kB / 442.5 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3853, allocations: 3.938 kB / 442.5 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002215/0.3855, allocations: 234.2 kB / 442.7 MB, free: 34.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.3855, allocations: 0 / 442.7 MB, free: 34.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001926/0.3857, allocations: 21.41 kB / 442.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3858, allocations: 4 kB / 442.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.3858, allocations: 3.469 kB / 442.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3858, allocations: 0 / 442.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3858, allocations: 4 kB / 442.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003554/0.3862, allocations: 289.9 kB / 443 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.28e-05/0.3862, allocations: 98.39 kB / 443.1 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.3863, allocations: 3.469 kB / 443.1 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.3865, allocations: 25.67 kB / 443.1 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.495e-05/0.3865, allocations: 13.67 kB / 443.1 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.3865, allocations: 3.125 kB / 443.1 MB, free: 34.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003581/0.3869, allocations: 193.6 kB / 443.3 MB, free: 34.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3869, allocations: 4 kB / 443.3 MB, free: 34.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002473/0.3872, allocations: 21.12 kB / 443.4 MB, free: 34.46 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.0001257/0.3873, allocations: 100.2 kB / 443.5 MB, free: 34.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002769/0.3876, allocations: 114.8 kB / 443.6 MB, free: 34.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3876, allocations: 0 / 443.6 MB, free: 34.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.401e-05/0.3877, allocations: 46 kB / 443.6 MB, free: 34.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003712/0.3881, allocations: 35.72 kB / 443.6 MB, free: 34.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007948/0.3889, allocations: 343.7 kB / 444 MB, free: 34.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.3891, allocations: 0.7263 MB / 444.7 MB, free: 33.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.242e-05/0.3892, allocations: 25.48 kB / 444.7 MB, free: 33.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.567e-05/0.3893, allocations: 20.41 kB / 444.8 MB, free: 33.38 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3893, allocations: 0 / 444.8 MB, free: 33.38 MB / 350.1 MB Notification: Performance of Templates: time 0.003788/0.3931, allocations: 1.29 MB / 446 MB, free: 33.27 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.makefile (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)