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.001409/0.001409, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 198.4 kB / 16.14 MB, free: 6.648 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.327/1.327, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2022/0.2022, allocations: 22.35 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 75.88 kB / 380.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2743, allocations: 54.94 MB / 435.1 MB, free: 39.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002407/0.2768, allocations: 1.064 MB / 436.1 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.2781, allocations: 1.218 MB / 437.3 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.2782, allocations: 0 / 437.3 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000357/0.2786, allocations: 31.19 kB / 437.4 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001387/0.2787, allocations: 37.66 kB / 437.4 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001767/0.2789, allocations: 82.88 kB / 437.5 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002103/0.2791, allocations: 206.6 kB / 437.7 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.2793, allocations: 31.94 kB / 437.7 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.2794, allocations: 72.34 kB / 437.8 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.2795, allocations: 90.77 kB / 437.9 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.492e-05/0.2796, allocations: 9.031 kB / 437.9 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.116e-05/0.2796, allocations: 5.219 kB / 437.9 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.091e-05/0.2797, allocations: 44.97 kB / 437.9 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.636e-05/0.2797, allocations: 54.22 kB / 438 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.2798, allocations: 113.7 kB / 438.1 MB, free: 37.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2799, allocations: 0 / 438.1 MB, free: 37.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.2799, allocations: 0 / 438.1 MB, free: 37.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.2799, allocations: 2.594 kB / 438.1 MB, free: 37.87 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.0009608/0.2808, allocations: 0.5155 MB / 438.6 MB, free: 37.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.2809, allocations: 8.656 kB / 438.6 MB, free: 37.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.2809, allocations: 16.19 kB / 438.6 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004494/0.2814, allocations: 289.7 kB / 438.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.2814, allocations: 7.75 kB / 438.9 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.514e-05/0.2814, allocations: 14.34 kB / 438.9 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/0.2816, allocations: 120.3 kB / 439.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.2816, allocations: 3.188 kB / 439.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.2817, allocations: 11.09 kB / 439.1 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.2817, allocations: 0 / 439.1 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000174/0.2819, allocations: 87.48 kB / 439.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006507/0.2825, allocations: 0.5902 MB / 439.8 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003378/0.2829, allocations: 130.9 kB / 439.9 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.409e-05/0.283, allocations: 52.09 kB / 439.9 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.283, allocations: 2.375 kB / 439.9 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.636e-05/0.283, allocations: 38.69 kB / 440 MB, free: 36.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.283, allocations: 0 / 440 MB, free: 36.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003462/0.2834, allocations: 167.4 kB / 440.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.593e-05/0.2834, allocations: 54.41 kB / 440.2 MB, free: 36.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003987/0.2838, allocations: 253.2 kB / 440.4 MB, free: 36.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.19e-05/0.2838, allocations: 29.7 kB / 440.5 MB, free: 36.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.076e-05/0.2839, allocations: 113.8 kB / 440.6 MB, free: 36.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.668e-05/0.2839, allocations: 40.69 kB / 440.6 MB, free: 36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.119e-05/0.284, allocations: 29.98 kB / 440.6 MB, free: 35.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.878e-05/0.284, allocations: 324.2 kB / 441 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.614e-05/0.2841, allocations: 37.92 kB / 441 MB, free: 35.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.737e-05/0.2842, allocations: 70.8 kB / 441.1 MB, free: 35.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006945/0.2849, allocations: 249.8 kB / 441.3 MB, free: 35.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2849, allocations: 0 / 441.3 MB, free: 35.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000219/0.2851, allocations: 164.5 kB / 441.5 MB, free: 35.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.2851, allocations: 2.875 kB / 441.5 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.2851, allocations: 3.031 kB / 441.5 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.2852, allocations: 3.328 kB / 441.5 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.2853, allocations: 27.62 kB / 441.5 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.2853, allocations: 0 / 441.5 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.2855, allocations: 48.94 kB / 441.6 MB, free: 35.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.2855, allocations: 384 / 441.6 MB, free: 35.41 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.0001117/0.2856, allocations: 132.6 kB / 441.7 MB, free: 35.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.509e-05/0.2856, allocations: 17.44 kB / 441.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.466e-05/0.2857, allocations: 27.95 kB / 441.7 MB, free: 35.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.2857, allocations: 4 kB / 441.7 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.2857, allocations: 0 / 441.7 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2857, allocations: 3.938 kB / 441.7 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001817/0.2859, allocations: 233.4 kB / 442 MB, free: 35.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2859, allocations: 2.688 kB / 442 MB, free: 35.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.286, allocations: 16.31 kB / 442 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.286, allocations: 0 / 442 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.2861, allocations: 6.875 kB / 442 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.2861, allocations: 3.188 kB / 442 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2861, allocations: 0 / 442 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.2864, allocations: 286.6 kB / 442.3 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.858e-05/0.2864, allocations: 95.86 kB / 442.4 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.539e-05/0.2865, allocations: 3.188 kB / 442.4 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.2867, allocations: 24.81 kB / 442.4 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.2867, allocations: 15 kB / 442.4 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-06/0.2867, allocations: 2.844 kB / 442.4 MB, free: 34.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00032/0.2871, allocations: 203 kB / 442.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2871, allocations: 0 / 442.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002333/0.2873, allocations: 20.88 kB / 442.6 MB, free: 34.61 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 8.766e-05/0.2874, allocations: 100.2 kB / 442.7 MB, free: 34.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002028/0.2876, allocations: 110.8 kB / 442.8 MB, free: 34.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2876, allocations: 3.938 kB / 442.8 MB, free: 34.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.672e-05/0.2877, allocations: 45.06 kB / 442.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.288, allocations: 25.5 kB / 442.9 MB, free: 34.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005385/0.2886, allocations: 382.2 kB / 443.3 MB, free: 34.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001335/0.2887, allocations: 0.7331 MB / 444 MB, free: 33.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.745e-05/0.2888, allocations: 30.02 kB / 444 MB, free: 33.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.347e-05/0.2888, allocations: 16.25 kB / 444.1 MB, free: 33.49 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2889, allocations: 0 / 444.1 MB, free: 33.49 MB / 350.1 MB Notification: Performance of Templates: time 0.003292/0.2922, allocations: 1.216 MB / 445.3 MB, free: 33.39 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)