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.001382/0.001382, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001659/0.001659, allocations: 190.4 kB / 16.25 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.321/1.321, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2007/0.2007, allocations: 22.37 MB / 312.4 MB, free: 12.64 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 59.91 kB / 380.3 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.271, allocations: 54.95 MB / 435.2 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.00197/0.273, allocations: 1.066 MB / 436.3 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.2741, allocations: 1.214 MB / 437.5 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.814e-05/0.2742, allocations: 2.938 kB / 437.5 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002705/0.2745, allocations: 28.69 kB / 437.6 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001324/0.2746, allocations: 44.09 kB / 437.6 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001594/0.2748, allocations: 74.67 kB / 437.7 MB, free: 38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002104/0.275, allocations: 217.4 kB / 437.9 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.941e-05/0.2751, allocations: 36.41 kB / 437.9 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.907e-05/0.2753, allocations: 87.25 kB / 438 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.2754, allocations: 86.56 kB / 438.1 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.918e-05/0.2754, allocations: 11.59 kB / 438.1 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.324e-05/0.2755, allocations: 9.094 kB / 438.1 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.25e-05/0.2755, allocations: 45.3 kB / 438.2 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.123e-05/0.2756, allocations: 62.27 kB / 438.2 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001388/0.2757, allocations: 122.9 kB / 438.3 MB, free: 37.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2758, allocations: 0 / 438.3 MB, free: 37.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.2758, allocations: 7.844 kB / 438.3 MB, free: 37.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.2758, allocations: 0 / 438.3 MB, free: 37.71 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.0009511/0.2767, allocations: 0.5141 MB / 438.9 MB, free: 37.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2768, allocations: 8.312 kB / 438.9 MB, free: 37.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.338e-05/0.2768, allocations: 17.34 kB / 438.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004665/0.2773, allocations: 281.9 kB / 439.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.2773, allocations: 7.25 kB / 439.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.444e-05/0.2773, allocations: 18.08 kB / 439.2 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.2775, allocations: 127 kB / 439.3 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.2776, allocations: 0 / 439.3 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.2776, allocations: 7 kB / 439.3 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2776, allocations: 0 / 439.3 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001753/0.2778, allocations: 86.91 kB / 439.4 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005828/0.2784, allocations: 0.5801 MB / 440 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003273/0.2787, allocations: 146.8 kB / 440.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.758e-05/0.2788, allocations: 52.41 kB / 440.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.2788, allocations: 0 / 440.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.264e-05/0.2788, allocations: 34.56 kB / 440.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 9.62e-07/0.2788, allocations: 0 / 440.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003253/0.2792, allocations: 169 kB / 440.4 MB, free: 36.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.131e-05/0.2792, allocations: 51.41 kB / 440.4 MB, free: 36.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004071/0.2796, allocations: 256 kB / 440.7 MB, free: 36.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.135e-05/0.2796, allocations: 29.7 kB / 440.7 MB, free: 35.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.905e-05/0.2797, allocations: 120.6 kB / 440.8 MB, free: 35.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.2797, allocations: 41.5 kB / 440.9 MB, free: 35.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.363e-05/0.2798, allocations: 35.38 kB / 440.9 MB, free: 35.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.393e-05/0.2798, allocations: 324.8 kB / 441.2 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.762e-05/0.2799, allocations: 41.02 kB / 441.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.67e-05/0.28, allocations: 63.3 kB / 441.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007181/0.2807, allocations: 247.9 kB / 441.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2807, allocations: 0 / 441.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002277/0.281, allocations: 163.7 kB / 441.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.281, allocations: 9.25 kB / 441.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.281, allocations: 0 / 441.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.281, allocations: 3.375 kB / 441.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.2811, allocations: 20.91 kB / 441.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.952e-06/0.2811, allocations: 0 / 441.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/0.2813, allocations: 41.56 kB / 441.8 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.2814, allocations: 2.875 kB / 441.8 MB, free: 35.25 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.0001183/0.2815, allocations: 141 kB / 441.9 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.708e-05/0.2815, allocations: 13.56 kB / 441.9 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.335e-05/0.2816, allocations: 23.62 kB / 442 MB, free: 35.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.2816, allocations: 2.656 kB / 442 MB, free: 35.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.2816, allocations: 384 / 442 MB, free: 35.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2816, allocations: 3.938 kB / 442 MB, free: 35.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001806/0.2818, allocations: 229.3 kB / 442.2 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2818, allocations: 0 / 442.2 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/0.2819, allocations: 20.66 kB / 442.2 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2819, allocations: 4 kB / 442.2 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.282, allocations: 7.312 kB / 442.2 MB, free: 34.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.282, allocations: 0 / 442.2 MB, free: 34.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.282, allocations: 7.922 kB / 442.2 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003033/0.2823, allocations: 288.4 kB / 442.5 MB, free: 34.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.743e-05/0.2823, allocations: 98.67 kB / 442.6 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.2824, allocations: 4 kB / 442.6 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000219/0.2826, allocations: 27.88 kB / 442.6 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.137e-05/0.2826, allocations: 10.88 kB / 442.7 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/0.2826, allocations: 3.781 kB / 442.7 MB, free: 34.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003368/0.283, allocations: 198.1 kB / 442.9 MB, free: 34.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.283, allocations: 4 kB / 442.9 MB, free: 34.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002448/0.2832, allocations: 17.53 kB / 442.9 MB, free: 34.45 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 6.975e-05/0.2833, allocations: 104 kB / 443 MB, free: 34.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002212/0.2835, allocations: 108.6 kB / 443.1 MB, free: 34.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2835, allocations: 0 / 443.1 MB, free: 34.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.873e-05/0.2836, allocations: 51.39 kB / 443.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/0.284, allocations: 32.3 kB / 443.2 MB, free: 34.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005181/0.2845, allocations: 384.7 kB / 443.5 MB, free: 34.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001436/0.2847, allocations: 0.7217 MB / 444.3 MB, free: 33.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.89e-05/0.2847, allocations: 26.47 kB / 444.3 MB, free: 33.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.324e-05/0.2848, allocations: 24.28 kB / 444.3 MB, free: 33.32 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2848, allocations: 0 / 444.3 MB, free: 33.32 MB / 350.1 MB Notification: Performance of Templates: time 0.003478/0.2883, allocations: 1.276 MB / 445.6 MB, free: 33.22 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)