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.001152/0.001152, allocations: 108 kB / 15.61 MB, free: 152 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.001119/0.001119, allocations: 192.4 kB / 16.53 MB, free: 6.664 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.445/1.445, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2289/0.2289, allocations: 22.35 MB / 312.7 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002203/0.002204, allocations: 59.91 kB / 380.8 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3685/0.3707, allocations: 54.95 MB / 435.8 MB, free: 39.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002302/0.373, allocations: 1.404 MB / 437.2 MB, free: 38.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.3743, allocations: 1.375 MB / 438.5 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.3744, allocations: 6.625 kB / 438.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002838/0.3747, allocations: 79.06 kB / 438.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001858/0.3749, allocations: 103 kB / 438.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000233/0.3752, allocations: 166.4 kB / 438.9 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002642/0.3754, allocations: 364.3 kB / 439.2 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.3756, allocations: 89.98 kB / 439.3 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.3757, allocations: 147.3 kB / 439.5 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.3759, allocations: 166.4 kB / 439.6 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.399e-05/0.3759, allocations: 21.84 kB / 439.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.113e-05/0.376, allocations: 21.34 kB / 439.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.045e-05/0.376, allocations: 71.38 kB / 439.7 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.121e-05/0.3761, allocations: 116.9 kB / 439.9 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001707/0.3763, allocations: 249.3 kB / 440.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.3763, allocations: 0 / 440.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3763, allocations: 0 / 440.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.3763, allocations: 0 / 440.1 MB, free: 36.98 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.001246/0.3776, allocations: 0.694 MB / 440.8 MB, free: 36.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.441e-05/0.3776, allocations: 8.656 kB / 440.8 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.265e-05/0.3777, allocations: 33.62 kB / 440.8 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006075/0.3783, allocations: 383.6 kB / 441.2 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.3783, allocations: 17.33 kB / 441.2 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.288e-05/0.3783, allocations: 23.47 kB / 441.3 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002564/0.3786, allocations: 219.9 kB / 441.5 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.3786, allocations: 0 / 441.5 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.3786, allocations: 14.22 kB / 441.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.3786, allocations: 3.062 kB / 441.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.3789, allocations: 152 kB / 441.6 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008248/0.3797, allocations: 0.9514 MB / 442.6 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004666/0.3802, allocations: 245.9 kB / 442.8 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.3803, allocations: 78.3 kB / 442.9 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.3803, allocations: 6.438 kB / 442.9 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.34e-05/0.3803, allocations: 37.47 kB / 442.9 MB, free: 35.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.272e-06/0.3804, allocations: 0 / 442.9 MB, free: 35.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004121/0.3808, allocations: 255.2 kB / 443.2 MB, free: 34.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.883e-05/0.3808, allocations: 54.56 kB / 443.2 MB, free: 34.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005777/0.3814, allocations: 370.2 kB / 443.6 MB, free: 34.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.3814, allocations: 32.7 kB / 443.6 MB, free: 34.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.04e-05/0.3815, allocations: 177.2 kB / 443.8 MB, free: 34.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.695e-05/0.3815, allocations: 73.16 kB / 443.9 MB, free: 34.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.253e-05/0.3816, allocations: 49.45 kB / 443.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.94e-05/0.3816, allocations: 342.5 kB / 444.3 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.3817, allocations: 64.58 kB / 444.3 MB, free: 34.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.3819, allocations: 104 kB / 444.4 MB, free: 34.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008698/0.3827, allocations: 372.5 kB / 444.8 MB, free: 33.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3827, allocations: 0 / 444.8 MB, free: 33.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003127/0.3831, allocations: 253.7 kB / 445 MB, free: 33.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.3831, allocations: 5.406 kB / 445.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.3831, allocations: 3.031 kB / 445.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.3831, allocations: 0 / 445.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.3833, allocations: 45.92 kB / 445.1 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.3833, allocations: 6.875 kB / 445.1 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002634/0.3836, allocations: 53.91 kB / 445.2 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.3836, allocations: 8.875 kB / 445.2 MB, free: 33.72 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.0001273/0.3837, allocations: 150 kB / 445.3 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.764e-05/0.3838, allocations: 29.88 kB / 445.3 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.303e-05/0.3838, allocations: 32.05 kB / 445.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.3838, allocations: 3.594 kB / 445.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3838, allocations: 11.17 kB / 445.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.3839, allocations: 0 / 445.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002449/0.3841, allocations: 320.6 kB / 445.7 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3841, allocations: 0 / 445.7 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.3843, allocations: 41.2 kB / 445.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.3843, allocations: 0 / 445.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.3843, allocations: 2.906 kB / 445.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3843, allocations: 0 / 445.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3843, allocations: 7.406 kB / 445.8 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000421/0.3848, allocations: 395.8 kB / 446.1 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.326e-05/0.3848, allocations: 110.6 kB / 446.2 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/0.3849, allocations: 7.938 kB / 446.3 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002805/0.3852, allocations: 29.72 kB / 446.3 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.829e-05/0.3852, allocations: 20 kB / 446.3 MB, free: 32.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.3852, allocations: 6.688 kB / 446.3 MB, free: 32.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005002/0.3857, allocations: 279.7 kB / 446.6 MB, free: 32.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3857, allocations: 0 / 446.6 MB, free: 32.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002576/0.386, allocations: 50.41 kB / 446.6 MB, free: 32.78 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 7.48e-05/0.3861, allocations: 102.5 kB / 446.7 MB, free: 32.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003074/0.3864, allocations: 190.7 kB / 446.9 MB, free: 32.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3864, allocations: 0 / 446.9 MB, free: 32.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.3865, allocations: 83.45 kB / 447 MB, free: 32.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003895/0.3869, allocations: 47.56 kB / 447 MB, free: 32.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007083/0.3876, allocations: 0.5266 MB / 447.6 MB, free: 32.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001735/0.3878, allocations: 0.7812 MB / 448.4 MB, free: 31.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000103/0.3879, allocations: 46.44 kB / 448.4 MB, free: 31.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.777e-05/0.388, allocations: 21.22 kB / 448.4 MB, free: 31.55 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.388, allocations: 0 / 448.4 MB, free: 31.55 MB / 350.1 MB Notification: Performance of Templates: time 0.004581/0.3926, allocations: 2.126 MB / 450.5 MB, free: 31.4 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)