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.001517/0.001517, allocations: 100.1 kB / 15.88 MB, free: 12 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.001864/0.001864, allocations: 196 kB / 16.79 MB, free: 6.809 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.32/1.32, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2108/0.2108, allocations: 22.36 MB / 313 MB, free: 12.74 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 63.89 kB / 380.8 MB, free: 11.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2638, allocations: 54.95 MB / 435.7 MB, free: 39.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002102/0.2659, allocations: 1.45 MB / 437.2 MB, free: 38.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.2672, allocations: 1.367 MB / 438.5 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.2674, allocations: 10.72 kB / 438.5 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003028/0.2677, allocations: 64.75 kB / 438.6 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000191/0.2679, allocations: 78.34 kB / 438.7 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.2682, allocations: 167.1 kB / 438.8 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003065/0.2685, allocations: 347.3 kB / 439.2 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.2687, allocations: 90.88 kB / 439.3 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.2688, allocations: 131.6 kB / 439.4 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.269, allocations: 160.4 kB / 439.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.744e-05/0.269, allocations: 12.75 kB / 439.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.329e-05/0.2691, allocations: 12.56 kB / 439.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.428e-05/0.2691, allocations: 64.64 kB / 439.6 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.407e-05/0.2692, allocations: 107.8 kB / 439.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001343/0.2694, allocations: 188.9 kB / 439.9 MB, free: 36.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2694, allocations: 2.688 kB / 439.9 MB, free: 36.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.51e-07/0.2694, allocations: 0 / 439.9 MB, free: 36.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.2694, allocations: 4 kB / 439.9 MB, free: 36.96 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.001241/0.2706, allocations: 0.6857 MB / 440.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.2707, allocations: 10.84 kB / 440.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.564e-05/0.2707, allocations: 32.47 kB / 440.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006041/0.2713, allocations: 381.6 kB / 441 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.2714, allocations: 13.95 kB / 441.1 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.315e-05/0.2714, allocations: 22.19 kB / 441.1 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002818/0.2717, allocations: 210.4 kB / 441.3 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.2717, allocations: 3.938 kB / 441.3 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.2717, allocations: 6.562 kB / 441.3 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.2717, allocations: 9.094 kB / 441.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002433/0.272, allocations: 158.9 kB / 441.5 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008773/0.2729, allocations: 0.9525 MB / 442.4 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005019/0.2734, allocations: 239.6 kB / 442.6 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.2735, allocations: 82.58 kB / 442.7 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.2735, allocations: 7.312 kB / 442.7 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.198e-05/0.2736, allocations: 34.5 kB / 442.8 MB, free: 35.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.332e-06/0.2736, allocations: 0 / 442.8 MB, free: 35.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004337/0.274, allocations: 258.3 kB / 443 MB, free: 34.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.637e-05/0.274, allocations: 51.41 kB / 443.1 MB, free: 34.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005893/0.2746, allocations: 376 kB / 443.4 MB, free: 34.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.2747, allocations: 25.7 kB / 443.5 MB, free: 34.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.71e-05/0.2748, allocations: 178.4 kB / 443.6 MB, free: 34.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.039e-05/0.2748, allocations: 74.36 kB / 443.7 MB, free: 34.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.912e-05/0.2749, allocations: 46.58 kB / 443.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.893e-05/0.275, allocations: 345.6 kB / 444.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.2751, allocations: 59.53 kB / 444.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.2752, allocations: 106 kB / 444.2 MB, free: 34.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009855/0.2762, allocations: 372.5 kB / 444.6 MB, free: 33.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.2762, allocations: 0 / 444.6 MB, free: 33.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003442/0.2766, allocations: 260.1 kB / 444.9 MB, free: 33.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.2766, allocations: 6 kB / 444.9 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2766, allocations: 4 kB / 444.9 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.2766, allocations: 6.156 kB / 444.9 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.2768, allocations: 36.94 kB / 444.9 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.2768, allocations: 10.84 kB / 444.9 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002658/0.2771, allocations: 45.55 kB / 445 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.2771, allocations: 9.906 kB / 445 MB, free: 33.73 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.0001747/0.2773, allocations: 146.6 kB / 445.1 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.11e-05/0.2773, allocations: 31.69 kB / 445.2 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.586e-05/0.2774, allocations: 39.3 kB / 445.2 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.2774, allocations: 2.938 kB / 445.2 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.2774, allocations: 7.359 kB / 445.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.2774, allocations: 0 / 445.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002779/0.2777, allocations: 318.6 kB / 445.5 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2777, allocations: 0 / 445.5 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.2779, allocations: 29.28 kB / 445.5 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.2779, allocations: 6.938 kB / 445.6 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.2779, allocations: 4 kB / 445.6 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2779, allocations: 6.938 kB / 445.6 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.278, allocations: 3.938 kB / 445.6 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004643/0.2784, allocations: 394.8 kB / 446 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.669e-05/0.2785, allocations: 109.4 kB / 446.1 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.886e-05/0.2785, allocations: 6.047 kB / 446.1 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002824/0.2788, allocations: 35.62 kB / 446.1 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.353e-05/0.2789, allocations: 16.44 kB / 446.1 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.2789, allocations: 6.906 kB / 446.1 MB, free: 32.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005379/0.2794, allocations: 280.2 kB / 446.4 MB, free: 32.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2794, allocations: 0 / 446.4 MB, free: 32.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002881/0.2797, allocations: 46.81 kB / 446.4 MB, free: 32.8 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.145e-05/0.2798, allocations: 104.4 kB / 446.5 MB, free: 32.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003088/0.2802, allocations: 175.9 kB / 446.7 MB, free: 32.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2802, allocations: 4 kB / 446.7 MB, free: 32.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.2803, allocations: 84.75 kB / 446.8 MB, free: 32.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004221/0.2807, allocations: 54.84 kB / 446.9 MB, free: 32.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008672/0.2816, allocations: 0.6488 MB / 447.5 MB, free: 32.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001867/0.2818, allocations: 0.7782 MB / 448.3 MB, free: 31.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.364e-05/0.2819, allocations: 27.27 kB / 448.3 MB, free: 31.45 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2819, allocations: 3.938 kB / 448.3 MB, free: 31.44 MB / 350.1 MB Notification: Performance of Templates: time 0.004533/0.2864, allocations: 3.196 MB / 451.5 MB, free: 31.16 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)