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.001239/0.001239, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001418/0.001418, allocations: 191.6 kB / 16.25 MB, free: 6.621 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.314/1.314, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1977/0.1977, allocations: 22.36 MB / 312.4 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 59.91 kB / 380.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2667, allocations: 54.94 MB / 435.2 MB, free: 39.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002532/0.2693, allocations: 1.454 MB / 436.7 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.2707, allocations: 1.359 MB / 438 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.2708, allocations: 3.062 kB / 438 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003213/0.2712, allocations: 75.81 kB / 438.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001991/0.2714, allocations: 81.42 kB / 438.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000269/0.2717, allocations: 157.8 kB / 438.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002888/0.272, allocations: 363.7 kB / 438.7 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.2721, allocations: 92.39 kB / 438.8 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.2723, allocations: 155.5 kB / 439 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.2724, allocations: 165.5 kB / 439.1 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.696e-05/0.2725, allocations: 20.59 kB / 439.1 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.054e-05/0.2725, allocations: 21.22 kB / 439.2 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.597e-05/0.2726, allocations: 77.34 kB / 439.2 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.914e-05/0.2727, allocations: 116.2 kB / 439.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001793/0.2729, allocations: 252.3 kB / 439.6 MB, free: 37.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2729, allocations: 2.906 kB / 439.6 MB, free: 37.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2729, allocations: 0 / 439.6 MB, free: 37.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.2729, allocations: 0 / 439.6 MB, free: 37.04 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.0013/0.2742, allocations: 0.6891 MB / 440.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.2743, allocations: 8.688 kB / 440.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.75e-05/0.2743, allocations: 32.44 kB / 440.3 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006461/0.275, allocations: 387.6 kB / 440.7 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.275, allocations: 15.58 kB / 440.7 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.507e-05/0.275, allocations: 19.5 kB / 440.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002852/0.2753, allocations: 222 kB / 441 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.2753, allocations: 0 / 441 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.805e-05/0.2754, allocations: 8 kB / 441 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.2754, allocations: 5.531 kB / 441 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002647/0.2756, allocations: 153.4 kB / 441.1 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009148/0.2766, allocations: 0.9497 MB / 442.1 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004982/0.2771, allocations: 245.3 kB / 442.3 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.2772, allocations: 77.95 kB / 442.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.2772, allocations: 3.094 kB / 442.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.397e-05/0.2772, allocations: 41.47 kB / 442.4 MB, free: 35.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.323e-06/0.2773, allocations: 0 / 442.4 MB, free: 35.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004139/0.2777, allocations: 256.4 kB / 442.7 MB, free: 35.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.07e-05/0.2777, allocations: 51.41 kB / 442.7 MB, free: 34.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005908/0.2783, allocations: 373.2 kB / 443.1 MB, free: 34.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.2783, allocations: 29.7 kB / 443.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.445e-05/0.2784, allocations: 172.8 kB / 443.3 MB, free: 34.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.004e-05/0.2785, allocations: 78.08 kB / 443.4 MB, free: 34.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.565e-05/0.2785, allocations: 45.45 kB / 443.4 MB, free: 34.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.673e-05/0.2786, allocations: 349.2 kB / 443.7 MB, free: 34.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.2787, allocations: 62.03 kB / 443.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.2788, allocations: 100.1 kB / 443.9 MB, free: 34.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009506/0.2798, allocations: 381.9 kB / 444.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2798, allocations: 0 / 444.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003292/0.2801, allocations: 252.4 kB / 444.5 MB, free: 33.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.2802, allocations: 5.438 kB / 444.5 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2802, allocations: 2.875 kB / 444.5 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.2802, allocations: 2.812 kB / 444.5 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.2804, allocations: 44.92 kB / 444.6 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.2804, allocations: 3.938 kB / 444.6 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002735/0.2807, allocations: 55.56 kB / 444.6 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.2807, allocations: 13.5 kB / 444.7 MB, free: 33.8 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.0001296/0.2808, allocations: 151.3 kB / 444.8 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.671e-05/0.2809, allocations: 29.28 kB / 444.8 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.034e-05/0.2809, allocations: 38.48 kB / 444.9 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2809, allocations: 0 / 444.9 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.281, allocations: 3.938 kB / 444.9 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.281, allocations: 6.203 kB / 444.9 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002525/0.2812, allocations: 318.9 kB / 445.2 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.2812, allocations: 0 / 445.2 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000183/0.2814, allocations: 35.72 kB / 445.2 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.2814, allocations: 2.625 kB / 445.2 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.2814, allocations: 0 / 445.2 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2815, allocations: 2.594 kB / 445.2 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2815, allocations: 7.938 kB / 445.2 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004071/0.2819, allocations: 386 kB / 445.6 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.11e-05/0.2819, allocations: 115.9 kB / 445.7 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.597e-05/0.282, allocations: 4 kB / 445.7 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002932/0.2823, allocations: 35.56 kB / 445.8 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.083e-05/0.2823, allocations: 17.34 kB / 445.8 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.327e-06/0.2823, allocations: 2.938 kB / 445.8 MB, free: 33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005122/0.2829, allocations: 285.5 kB / 446.1 MB, free: 32.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2829, allocations: 0 / 446.1 MB, free: 32.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002716/0.2831, allocations: 45.16 kB / 446.1 MB, free: 32.87 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.519e-05/0.2832, allocations: 103 kB / 446.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000314/0.2835, allocations: 194.1 kB / 446.4 MB, free: 32.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2836, allocations: 0 / 446.4 MB, free: 32.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.2837, allocations: 91.69 kB / 446.5 MB, free: 32.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004076/0.2841, allocations: 54.67 kB / 446.5 MB, free: 32.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007461/0.2848, allocations: 0.6175 MB / 447.2 MB, free: 32.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001673/0.285, allocations: 0.778 MB / 447.9 MB, free: 31.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.2851, allocations: 35.47 kB / 448 MB, free: 31.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.368e-05/0.2852, allocations: 24.56 kB / 448 MB, free: 31.54 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2852, allocations: 0 / 448 MB, free: 31.54 MB / 350.1 MB Notification: Performance of Templates: time 0.004568/0.2898, allocations: 2.109 MB / 450.1 MB, free: 31.38 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)