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.001183/0.001183, allocations: 108 kB / 15.99 MB, free: 6.348 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.001273/0.001273, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.212/1.212, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08546/0.08546, allocations: 22.31 MB / 313.1 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 63.38 kB / 380.9 MB, free: 40.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07442/0.07562, allocations: 54.96 MB / 435.9 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002519/0.07818, allocations: 1.457 MB / 437.3 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.07975, allocations: 1.362 MB / 438.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.07987, allocations: 7.938 kB / 438.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003121/0.08018, allocations: 63.61 kB / 438.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002369/0.08044, allocations: 87.59 kB / 438.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.0807, allocations: 151.8 kB / 439 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000357/0.08107, allocations: 367.7 kB / 439.3 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.08124, allocations: 99.33 kB / 439.4 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000153/0.0814, allocations: 147.4 kB / 439.6 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.0816, allocations: 167.2 kB / 439.8 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.995e-05/0.08164, allocations: 20 kB / 439.8 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.21e-05/0.08168, allocations: 20 kB / 439.8 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.687e-05/0.08177, allocations: 87.67 kB / 439.9 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.515e-05/0.08187, allocations: 115.2 kB / 440 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001771/0.08206, allocations: 183.6 kB / 440.2 MB, free: 9.016 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.08207, allocations: 0 / 440.2 MB, free: 9.016 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.08207, allocations: 0 / 440.2 MB, free: 9.016 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.64e-06/0.08209, allocations: 4 kB / 440.2 MB, free: 9.012 MB / 318.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.001377/0.08347, allocations: 0.6891 MB / 440.9 MB, free: 8.273 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.08352, allocations: 8.031 kB / 440.9 MB, free: 8.266 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.335e-05/0.08358, allocations: 32.56 kB / 440.9 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006839/0.08427, allocations: 379.2 kB / 441.3 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.0843, allocations: 20.38 kB / 441.3 MB, free: 7.809 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.301e-05/0.08434, allocations: 16.38 kB / 441.3 MB, free: 7.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003301/0.08468, allocations: 219.4 kB / 441.5 MB, free: 7.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.0847, allocations: 4 kB / 441.5 MB, free: 7.555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.08472, allocations: 7.984 kB / 441.5 MB, free: 7.547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.08473, allocations: 4 kB / 441.5 MB, free: 7.543 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002582/0.08499, allocations: 152.8 kB / 441.7 MB, free: 7.395 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.08603, allocations: 0.9552 MB / 442.6 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005187/0.08656, allocations: 238.7 kB / 442.9 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.0867, allocations: 88.81 kB / 443 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.08673, allocations: 0 / 443 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.97e-05/0.08676, allocations: 30.56 kB / 443 MB, free: 6.004 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.473e-06/0.08676, allocations: 0 / 443 MB, free: 6.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004653/0.08723, allocations: 254.5 kB / 443.2 MB, free: 5.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.112e-05/0.08727, allocations: 55.34 kB / 443.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006566/0.08793, allocations: 380.4 kB / 443.7 MB, free: 5.297 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.08796, allocations: 25.7 kB / 443.7 MB, free: 5.266 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.587e-05/0.08806, allocations: 176.2 kB / 443.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.569e-05/0.08813, allocations: 74.84 kB / 443.9 MB, free: 5.016 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.526e-05/0.0882, allocations: 49.7 kB / 444 MB, free: 4.961 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.08831, allocations: 342.8 kB / 444.3 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.08845, allocations: 64.19 kB / 444.4 MB, free: 4.551 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.08859, allocations: 100.7 kB / 444.5 MB, free: 4.438 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009909/0.08959, allocations: 375 kB / 444.8 MB, free: 4.059 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.0896, allocations: 0 / 444.8 MB, free: 4.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004046/0.09001, allocations: 255 kB / 445.1 MB, free: 3.805 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.09004, allocations: 7.984 kB / 445.1 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.09005, allocations: 4 kB / 445.1 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.09007, allocations: 4.125 kB / 445.1 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.09025, allocations: 47.92 kB / 445.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.106e-06/0.09026, allocations: 3.938 kB / 445.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002709/0.09054, allocations: 51.73 kB / 445.2 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.089e-05/0.09057, allocations: 4 kB / 445.2 MB, free: 3.684 MB / 318.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.0001679/0.09074, allocations: 161.8 kB / 445.4 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.131e-05/0.0908, allocations: 31.62 kB / 445.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.321e-05/0.09087, allocations: 38.31 kB / 445.4 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.09088, allocations: 0 / 445.4 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.09089, allocations: 3.938 kB / 445.4 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.0909, allocations: 0 / 445.4 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003183/0.09122, allocations: 321.4 kB / 445.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.09123, allocations: 3.984 kB / 445.8 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.09143, allocations: 31.98 kB / 445.8 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.09144, allocations: 7.938 kB / 445.8 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/0.09146, allocations: 4 kB / 445.8 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.09147, allocations: 4 kB / 445.8 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.09147, allocations: 3.938 kB / 445.8 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000482/0.09196, allocations: 381.5 kB / 446.2 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.71e-05/0.09205, allocations: 112.7 kB / 446.3 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.402e-05/0.09209, allocations: 4 kB / 446.3 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002954/0.09239, allocations: 39.95 kB / 446.3 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.977e-05/0.09244, allocations: 11.92 kB / 446.4 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.09246, allocations: 4 kB / 446.4 MB, free: 2.453 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005337/0.09299, allocations: 287 kB / 446.6 MB, free: 2.176 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.093, allocations: 0 / 446.6 MB, free: 2.176 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000267/0.09328, allocations: 51.84 kB / 446.7 MB, free: 2.125 MB / 318.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 0.0001059/0.09339, allocations: 103.2 kB / 446.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003525/0.09375, allocations: 199.6 kB / 447 MB, free: 1.816 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.09376, allocations: 0 / 447 MB, free: 1.816 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.09389, allocations: 83.84 kB / 447.1 MB, free: 1.734 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003906/0.09429, allocations: 46.86 kB / 447.1 MB, free: 1.691 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008871/0.09518, allocations: 0.6609 MB / 447.8 MB, free: 1 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.0955, allocations: 0.7792 MB / 448.6 MB, free: 200 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.314e-05/0.09559, allocations: 23.44 kB / 448.6 MB, free: 176 kB / 318.1 MB Notification: Performance of SimCode: time 4.1e-07/0.09559, allocations: 0 / 448.6 MB, free: 176 kB / 318.1 MB Notification: Performance of Templates: time 0.004536/0.1001, allocations: 3.196 MB / 451.8 MB, free: 12.97 MB / 334.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)