Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.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_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, 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.00134/0.00134, allocations: 198 kB / 16.14 MB, free: 6.645 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.38/1.38, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2028/0.2028, allocations: 22.35 MB / 312.3 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 59.89 kB / 380.1 MB, free: 11.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2867, allocations: 54.94 MB / 435 MB, free: 39.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002393/0.2892, allocations: 1.449 MB / 436.5 MB, free: 38.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.2906, allocations: 1.37 MB / 437.9 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.2907, allocations: 5.781 kB / 437.9 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003571/0.2911, allocations: 61.31 kB / 437.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002056/0.2913, allocations: 93.98 kB / 438 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002511/0.2916, allocations: 155 kB / 438.2 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003011/0.2919, allocations: 354.1 kB / 438.5 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.2921, allocations: 82.33 kB / 438.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.2922, allocations: 132.8 kB / 438.7 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001681/0.2924, allocations: 158.8 kB / 438.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.77e-05/0.2924, allocations: 11.91 kB / 438.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.204e-05/0.2924, allocations: 13.62 kB / 438.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.223e-05/0.2925, allocations: 68.8 kB / 439 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.174e-05/0.2926, allocations: 113 kB / 439.1 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001725/0.2928, allocations: 244.7 kB / 439.3 MB, free: 36.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2928, allocations: 0 / 439.3 MB, free: 36.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2928, allocations: 3.938 kB / 439.3 MB, free: 36.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.2928, allocations: 0 / 439.3 MB, free: 36.8 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001333/0.2942, allocations: 0.6939 MB / 440 MB, free: 36.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.2942, allocations: 8.406 kB / 440 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.682e-05/0.2943, allocations: 34.12 kB / 440.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006335/0.2949, allocations: 371.4 kB / 440.4 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.2949, allocations: 20.36 kB / 440.4 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.217e-05/0.295, allocations: 17.47 kB / 440.5 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002867/0.2953, allocations: 216.6 kB / 440.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.2953, allocations: 6.875 kB / 440.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.2953, allocations: 4 kB / 440.7 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.2953, allocations: 5.594 kB / 440.7 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002493/0.2956, allocations: 152.1 kB / 440.8 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009668/0.2966, allocations: 0.9613 MB / 441.8 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005179/0.2971, allocations: 244.2 kB / 442 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001268/0.2972, allocations: 80.66 kB / 442.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.2973, allocations: 2.875 kB / 442.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.744e-05/0.2973, allocations: 30.56 kB / 442.2 MB, free: 34.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.413e-06/0.2973, allocations: 0 / 442.2 MB, free: 34.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004716/0.2978, allocations: 256.5 kB / 442.4 MB, free: 34.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.783e-05/0.2978, allocations: 58.41 kB / 442.5 MB, free: 34.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006194/0.2984, allocations: 368 kB / 442.8 MB, free: 34.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.2985, allocations: 32.73 kB / 442.8 MB, free: 34.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.366e-05/0.2985, allocations: 180 kB / 443 MB, free: 34.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.504e-05/0.2986, allocations: 70.91 kB / 443.1 MB, free: 34.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.498e-05/0.2987, allocations: 48.97 kB / 443.1 MB, free: 34.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.681e-05/0.2987, allocations: 342.8 kB / 443.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.2988, allocations: 66.48 kB / 443.5 MB, free: 33.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.299, allocations: 100.2 kB / 443.6 MB, free: 33.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009785/0.3, allocations: 377.6 kB / 444 MB, free: 33.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3, allocations: 2.844 kB / 444 MB, free: 33.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003308/0.3003, allocations: 245.8 kB / 444.3 MB, free: 33.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.3003, allocations: 9.938 kB / 444.3 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3003, allocations: 6.312 kB / 444.3 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.3004, allocations: 0 / 444.3 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.3005, allocations: 47.03 kB / 444.3 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.3006, allocations: 6.781 kB / 444.3 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002637/0.3008, allocations: 42.33 kB / 444.4 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.3008, allocations: 9.844 kB / 444.4 MB, free: 33.57 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: g2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] g1.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: 5 * Number of states: 0 () * Number of discrete variables: 2 (Cs.local_reset,N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001486/0.301, allocations: 149.8 kB / 444.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.63e-05/0.301, allocations: 32.12 kB / 444.5 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.842e-05/0.3011, allocations: 36.58 kB / 444.6 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.3011, allocations: 2.969 kB / 444.6 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3011, allocations: 3.938 kB / 444.6 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3011, allocations: 3.984 kB / 444.6 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00026/0.3014, allocations: 323.4 kB / 444.9 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3014, allocations: 3.938 kB / 444.9 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001815/0.3016, allocations: 32.92 kB / 444.9 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.3016, allocations: 6.125 kB / 445 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.3016, allocations: 6.906 kB / 445 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.3016, allocations: 0 / 445 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3016, allocations: 3.938 kB / 445 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004412/0.3021, allocations: 387.9 kB / 445.3 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.485e-05/0.3022, allocations: 116.5 kB / 445.5 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.557e-05/0.3022, allocations: 7.344 kB / 445.5 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002796/0.3025, allocations: 33.2 kB / 445.5 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.449e-05/0.3025, allocations: 15.38 kB / 445.5 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.3026, allocations: 2.844 kB / 445.5 MB, free: 32.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004997/0.3031, allocations: 284 kB / 445.8 MB, free: 32.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3031, allocations: 0 / 445.8 MB, free: 32.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002685/0.3033, allocations: 46.31 kB / 445.8 MB, free: 32.62 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (N.y,g1.x_scaled[1],g2.x_scaled[1],Cs.y) * 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 (20): * Single equations (assignments): 20 * 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 9.871e-05/0.3034, allocations: 107.2 kB / 445.9 MB, free: 32.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003044/0.3038, allocations: 179.7 kB / 446.1 MB, free: 32.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3038, allocations: 0 / 446.1 MB, free: 32.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.3039, allocations: 82.67 kB / 446.2 MB, free: 32.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004044/0.3043, allocations: 53.81 kB / 446.2 MB, free: 32.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007552/0.3051, allocations: 0.6185 MB / 446.9 MB, free: 32.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001707/0.3052, allocations: 0.7791 MB / 447.6 MB, free: 31.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001084/0.3054, allocations: 40.62 kB / 447.7 MB, free: 31.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.327e-05/0.3054, allocations: 19.38 kB / 447.7 MB, free: 31.3 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3054, allocations: 0 / 447.7 MB, free: 31.3 MB / 350.1 MB Notification: Performance of Templates: time 0.00456/0.31, allocations: 2.01 MB / 449.7 MB, free: 31.15 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe 2>&1)