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.001191/0.001191, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001465/0.001465, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.2 MB / 239.9 MB, free: 5.211 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2192/0.2192, allocations: 22.35 MB / 313.3 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003106/0.0003108, allocations: 8 kB / 381.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2934, allocations: 55.98 MB / 437.8 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.001419/0.2949, allocations: 1.045 MB / 438.9 MB, free: 38.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001522/0.2965, allocations: 1.342 MB / 440.2 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.2966, allocations: 6.906 kB / 440.2 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003235/0.2969, allocations: 60.62 kB / 440.3 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002179/0.2972, allocations: 87.77 kB / 440.3 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002548/0.2974, allocations: 135 kB / 440.5 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002903/0.2977, allocations: 224.1 kB / 440.7 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/0.2979, allocations: 72.75 kB / 440.8 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.2981, allocations: 147.7 kB / 440.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.2982, allocations: 124.7 kB / 441 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.2983, allocations: 8.406 kB / 441 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.769e-05/0.2983, allocations: 8.812 kB / 441.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.767e-05/0.2984, allocations: 53.78 kB / 441.1 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.782e-05/0.2984, allocations: 59.98 kB / 441.2 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001427/0.2986, allocations: 176.7 kB / 441.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.2986, allocations: 0 / 441.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2986, allocations: 2.562 kB / 441.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.2986, allocations: 0 / 441.3 MB, free: 37.02 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.001386/0.3, allocations: 0.6536 MB / 442 MB, free: 36.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.18e-05/0.3001, allocations: 10.38 kB / 442 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.427e-05/0.3002, allocations: 31.69 kB / 442 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007904/0.301, allocations: 372.9 kB / 442.4 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.301, allocations: 13.42 kB / 442.4 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.365e-05/0.301, allocations: 30.42 kB / 442.4 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003546/0.3014, allocations: 204.1 kB / 442.6 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.3014, allocations: 6.484 kB / 442.6 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.147e-05/0.3015, allocations: 8 kB / 442.7 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.3015, allocations: 6.031 kB / 442.7 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003052/0.3018, allocations: 155.4 kB / 442.8 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.303, allocations: 0.9481 MB / 443.8 MB, free: 35.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005696/0.3036, allocations: 253.3 kB / 444 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.3036, allocations: 2.812 kB / 444 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.3037, allocations: 33.41 kB / 444 MB, free: 35.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.884e-06/0.3037, allocations: 0 / 444 MB, free: 35.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005592/0.3042, allocations: 261.1 kB / 444.3 MB, free: 35.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.3043, allocations: 54 kB / 444.3 MB, free: 34.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006516/0.3049, allocations: 375.3 kB / 444.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/0.305, allocations: 25.7 kB / 444.7 MB, free: 34.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.3051, allocations: 172.5 kB / 444.9 MB, free: 34.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.178e-05/0.3052, allocations: 75.16 kB / 445 MB, free: 34.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.232e-05/0.3052, allocations: 7.406 kB / 445 MB, free: 34.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.3053, allocations: 342.8 kB / 445.3 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.3054, allocations: 64.73 kB / 445.4 MB, free: 34.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/0.3055, allocations: 101.5 kB / 445.5 MB, free: 34.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001343/0.3057, allocations: 77.91 kB / 445.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3057, allocations: 3.938 kB / 445.6 MB, free: 34.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000312/0.306, allocations: 251.1 kB / 445.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.306, allocations: 6.031 kB / 445.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.306, allocations: 10.12 kB / 445.8 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.3061, allocations: 3.938 kB / 445.8 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001718/0.3062, allocations: 43.12 kB / 445.9 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.3063, allocations: 7.812 kB / 445.9 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002638/0.3065, allocations: 46.08 kB / 445.9 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.3066, allocations: 5.812 kB / 445.9 MB, free: 33.99 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001613/0.3067, allocations: 149.6 kB / 446.1 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.3068, allocations: 32.67 kB / 446.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.462e-05/0.3068, allocations: 38.39 kB / 446.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.3068, allocations: 2.906 kB / 446.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3069, allocations: 0 / 446.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.3069, allocations: 3.281 kB / 446.2 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002695/0.3071, allocations: 323.3 kB / 446.5 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3071, allocations: 0 / 446.5 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001756/0.3073, allocations: 36.84 kB / 446.5 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3073, allocations: 0 / 446.5 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/0.3074, allocations: 10.72 kB / 446.5 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3074, allocations: 0 / 446.5 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.3074, allocations: 7.719 kB / 446.5 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000421/0.3078, allocations: 386 kB / 446.9 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.314e-05/0.3079, allocations: 105.1 kB / 447 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.693e-05/0.3079, allocations: 10.95 kB / 447 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002953/0.3082, allocations: 37.77 kB / 447 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.161e-05/0.3083, allocations: 17.39 kB / 447.1 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.829e-06/0.3083, allocations: 3.125 kB / 447.1 MB, free: 33.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000535/0.3088, allocations: 287.3 kB / 447.4 MB, free: 33.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3088, allocations: 0 / 447.4 MB, free: 33.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002707/0.3091, allocations: 47.53 kB / 447.4 MB, free: 33.05 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001301/0.3093, allocations: 99.5 kB / 447.5 MB, free: 32.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003264/0.3096, allocations: 174.3 kB / 447.7 MB, free: 32.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3096, allocations: 0 / 447.7 MB, free: 32.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001263/0.3097, allocations: 82.44 kB / 447.7 MB, free: 32.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.3101, allocations: 48.48 kB / 447.8 MB, free: 32.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008272/0.3109, allocations: 0.6115 MB / 448.4 MB, free: 32.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.3112, allocations: 0.787 MB / 449.2 MB, free: 31.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.3113, allocations: 38.77 kB / 449.2 MB, free: 31.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.903e-05/0.3114, allocations: 21.53 kB / 449.2 MB, free: 31.75 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3114, allocations: 0 / 449.2 MB, free: 31.75 MB / 350.1 MB Notification: Performance of Templates: time 0.004787/0.3162, allocations: 1.918 MB / 451.2 MB, free: 31.61 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: