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.000863/0.000863, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006311/0.006311, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.359/1.359, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2058/0.2058, allocations: 22.34 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004361/0.0004362, allocations: 8 kB / 382.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3118, allocations: 55.97 MB / 438.6 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.00151/0.3134, allocations: 1.099 MB / 439.7 MB, free: 38.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.3147, allocations: 1.352 MB / 441 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.3148, allocations: 6.344 kB / 441 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000331/0.3152, allocations: 63.64 kB / 441.1 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.3154, allocations: 86.73 kB / 441.2 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002588/0.3157, allocations: 157.4 kB / 441.3 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003103/0.316, allocations: 352.5 kB / 441.7 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.3161, allocations: 87.62 kB / 441.8 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001248/0.3163, allocations: 121 kB / 441.9 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.3165, allocations: 151.1 kB / 442 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.837e-05/0.3165, allocations: 8.062 kB / 442 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.516e-05/0.3165, allocations: 8.25 kB / 442 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.194e-05/0.3166, allocations: 57.25 kB / 442.1 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.212e-05/0.3167, allocations: 122.1 kB / 442.2 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001877/0.3169, allocations: 244.6 kB / 442.4 MB, free: 37.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3169, allocations: 0 / 442.4 MB, free: 37.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3169, allocations: 0 / 442.4 MB, free: 37.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.3169, allocations: 0 / 442.4 MB, free: 37.03 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.001262/0.3182, allocations: 0.6445 MB / 443.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.3183, allocations: 13.53 kB / 443.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.11e-05/0.3183, allocations: 29.84 kB / 443.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006306/0.319, allocations: 387 kB / 443.5 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.319, allocations: 16.86 kB / 443.5 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.284e-05/0.319, allocations: 19.53 kB / 443.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002952/0.3193, allocations: 213 kB / 443.8 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.3193, allocations: 3.938 kB / 443.8 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.3194, allocations: 8 kB / 443.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.3194, allocations: 11.25 kB / 443.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000257/0.3196, allocations: 150.2 kB / 443.9 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008939/0.3206, allocations: 0.9553 MB / 444.9 MB, free: 35.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004798/0.321, allocations: 245.8 kB / 445.1 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000122/0.3212, allocations: 81.11 kB / 445.2 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.3212, allocations: 2.969 kB / 445.2 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.3212, allocations: 41.09 kB / 445.2 MB, free: 35.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.443e-06/0.3212, allocations: 0 / 445.2 MB, free: 35.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004351/0.3217, allocations: 255.6 kB / 445.5 MB, free: 35.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.621e-05/0.3217, allocations: 54.41 kB / 445.5 MB, free: 34.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005912/0.3223, allocations: 376.2 kB / 445.9 MB, free: 34.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.3223, allocations: 29.7 kB / 445.9 MB, free: 34.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.893e-05/0.3224, allocations: 174.1 kB / 446.1 MB, free: 34.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.301e-05/0.3225, allocations: 76.05 kB / 446.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.221e-05/0.3225, allocations: 26.2 kB / 446.2 MB, free: 34.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.635e-05/0.3226, allocations: 345 kB / 446.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.3227, allocations: 64.19 kB / 446.6 MB, free: 34.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001202/0.3228, allocations: 107.3 kB / 446.7 MB, free: 34.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009422/0.3238, allocations: 379.3 kB / 447.1 MB, free: 33.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.3238, allocations: 0 / 447.1 MB, free: 33.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003191/0.3241, allocations: 248 kB / 447.3 MB, free: 33.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.3241, allocations: 14.19 kB / 447.3 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.3241, allocations: 3 kB / 447.3 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.3242, allocations: 0 / 447.3 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.3243, allocations: 42.84 kB / 447.4 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.3243, allocations: 11 kB / 447.4 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.3246, allocations: 48.47 kB / 447.4 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.3246, allocations: 10.06 kB / 447.5 MB, free: 33.82 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.0001476/0.3248, allocations: 144.8 kB / 447.6 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.663e-05/0.3248, allocations: 29.12 kB / 447.6 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.64e-05/0.3249, allocations: 45.88 kB / 447.7 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.3249, allocations: 2.688 kB / 447.7 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.3249, allocations: 3.938 kB / 447.7 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.3249, allocations: 3.094 kB / 447.7 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002638/0.3252, allocations: 319.9 kB / 448 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3252, allocations: 3.25 kB / 448 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.3254, allocations: 31.33 kB / 448 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.3254, allocations: 3.938 kB / 448 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.3254, allocations: 10.08 kB / 448 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3254, allocations: 0 / 448 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3254, allocations: 6.625 kB / 448 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004143/0.3259, allocations: 385.3 kB / 448.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.289e-05/0.3259, allocations: 112.1 kB / 448.5 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.446e-05/0.326, allocations: 10.06 kB / 448.5 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002739/0.3262, allocations: 34.45 kB / 448.6 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.134e-05/0.3263, allocations: 13.08 kB / 448.6 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.3263, allocations: 6.344 kB / 448.6 MB, free: 33.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004966/0.3268, allocations: 287.6 kB / 448.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3268, allocations: 2.906 kB / 448.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002693/0.3271, allocations: 50.03 kB / 448.9 MB, free: 32.88 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 8.178e-05/0.3272, allocations: 99.06 kB / 449 MB, free: 32.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002842/0.3275, allocations: 179.2 kB / 449.2 MB, free: 32.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3275, allocations: 0 / 449.2 MB, free: 32.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001203/0.3276, allocations: 82.08 kB / 449.3 MB, free: 32.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.328, allocations: 44.69 kB / 449.3 MB, free: 32.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008347/0.3288, allocations: 0.6448 MB / 450 MB, free: 32.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002373/0.3291, allocations: 0.7786 MB / 450.7 MB, free: 31.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001187/0.3292, allocations: 50.33 kB / 450.8 MB, free: 31.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.535e-05/0.3293, allocations: 19.69 kB / 450.8 MB, free: 31.55 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3293, allocations: 0 / 450.8 MB, free: 31.55 MB / 350.1 MB Notification: Performance of Templates: time 0.004706/0.334, allocations: 1.975 MB / 452.8 MB, free: 31.41 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)