Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.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_generator_models.TurbineFollows,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.TurbineFollows") translateModel(AES.Coursework.ElecSys_generator_models.TurbineFollows,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.TurbineFollows") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008869/0.0008869, allocations: 99.42 kB / 16.02 MB, free: 76 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.0009592/0.0009592, allocations: 186.9 kB / 16.92 MB, free: 6.75 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.272/1.272, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1924/0.1924, allocations: 22.35 MB / 314.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000265/0.000265, allocations: 8 kB / 383.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2151, allocations: 55.98 MB / 439.2 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.TurbineFollows): time 0.002137/0.2173, allocations: 2.641 MB / 441.9 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001356/0.2187, allocations: 0.9951 MB / 442.9 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002852/0.219, allocations: 20.72 kB / 442.9 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001858/0.2192, allocations: 62.72 kB / 443 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001966/0.2194, allocations: 64.34 kB / 443 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005245/0.2199, allocations: 292.9 kB / 443.3 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003903/0.2203, allocations: 0.5094 MB / 443.8 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002815/0.2206, allocations: 223.8 kB / 444 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.2207, allocations: 141.8 kB / 444.2 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.2209, allocations: 153 kB / 444.3 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.827e-05/0.2209, allocations: 11.47 kB / 444.3 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.04e-05/0.221, allocations: 11.44 kB / 444.3 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.122e-05/0.221, allocations: 67.05 kB / 444.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.729e-05/0.2211, allocations: 212.8 kB / 444.6 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002189/0.2213, allocations: 371.3 kB / 445 MB, free: 35.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.2213, allocations: 0 / 445 MB, free: 35.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2213, allocations: 0 / 445 MB, free: 35.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.2214, allocations: 4 kB / 445 MB, free: 35.52 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0008191/0.2222, allocations: 0.7402 MB / 445.7 MB, free: 34.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.2222, allocations: 12.25 kB / 445.7 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.775e-05/0.2223, allocations: 60.59 kB / 445.8 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003548/0.2227, allocations: 406.9 kB / 446.2 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.2227, allocations: 28.09 kB / 446.2 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.647e-05/0.2227, allocations: 42.56 kB / 446.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005922/0.2233, allocations: 432.3 kB / 446.7 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.2234, allocations: 4 kB / 446.7 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.247e-05/0.2234, allocations: 17.38 kB / 446.7 MB, free: 34.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.2234, allocations: 11.34 kB / 446.7 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005248/0.224, allocations: 302.7 kB / 447 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.2254, allocations: 1.544 MB / 448.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006613/0.226, allocations: 371.6 kB / 448.9 MB, free: 32.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002404/0.2263, allocations: 149.1 kB / 449.1 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.2263, allocations: 7.578 kB / 449.1 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.227e-05/0.2264, allocations: 37.77 kB / 449.1 MB, free: 32.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.402e-06/0.2264, allocations: 4 kB / 449.1 MB, free: 32.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007824/0.2271, allocations: 431.2 kB / 449.5 MB, free: 32.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.666e-05/0.2272, allocations: 105.8 kB / 449.6 MB, free: 32.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002992/0.2275, allocations: 406.9 kB / 450 MB, free: 32.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.2275, allocations: 36.67 kB / 450.1 MB, free: 32.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.2276, allocations: 263.9 kB / 450.3 MB, free: 32.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.809e-05/0.2277, allocations: 93.25 kB / 450.4 MB, free: 32.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.091e-05/0.2277, allocations: 40.11 kB / 450.5 MB, free: 32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.3e-05/0.2278, allocations: 363.3 kB / 450.8 MB, free: 31.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002296/0.228, allocations: 113.5 kB / 450.9 MB, free: 31.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002526/0.2283, allocations: 198.3 kB / 451.1 MB, free: 31.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.2296, allocations: 0.5536 MB / 451.7 MB, free: 31.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.2296, allocations: 0 / 451.7 MB, free: 31.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005989/0.2302, allocations: 399 kB / 452.1 MB, free: 31.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.558e-05/0.2303, allocations: 146.6 kB / 452.2 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.2303, allocations: 6.688 kB / 452.2 MB, free: 30.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.2303, allocations: 2.594 kB / 452.2 MB, free: 30.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003008/0.2306, allocations: 77.88 kB / 452.3 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.2306, allocations: 2.969 kB / 452.3 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002148/0.2308, allocations: 40.56 kB / 452.3 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.966e-05/0.2309, allocations: 12.75 kB / 452.3 MB, free: 30.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.05e-06/0.2309, allocations: 10.56 kB / 452.4 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003673/0.2312, allocations: 260.6 kB / 452.6 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-06/0.2312, allocations: 6.844 kB / 452.6 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.617e-06/0.2313, allocations: 2.781 kB / 452.6 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002313/0.2315, allocations: 55.09 kB / 452.7 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.2315, allocations: 10.05 kB / 452.7 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.2317, allocations: 35.56 kB / 452.7 MB, free: 30.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.2317, allocations: 14.69 kB / 452.7 MB, free: 30.72 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) "Connector of Real output signal" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (PIe.I.local_reset,PIp.I.local_reset,S.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0002033/0.2319, allocations: 253.9 kB / 453 MB, free: 30.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.961e-05/0.232, allocations: 49.06 kB / 453 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.599e-05/0.2321, allocations: 49.59 kB / 453.1 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.2321, allocations: 5.688 kB / 453.1 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.2321, allocations: 0 / 453.1 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2321, allocations: 0 / 453.1 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003522/0.2325, allocations: 465.4 kB / 453.5 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.2325, allocations: 0 / 453.5 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002991/0.2328, allocations: 59.64 kB / 453.6 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.2328, allocations: 6.688 kB / 453.6 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.2328, allocations: 7.188 kB / 453.6 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.2328, allocations: 6.531 kB / 453.6 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2328, allocations: 0 / 453.6 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007733/0.2336, allocations: 0.5696 MB / 454.2 MB, free: 29.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.381e-05/0.2337, allocations: 149.2 kB / 454.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.561e-05/0.2338, allocations: 6.625 kB / 454.3 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.234, allocations: 20.67 kB / 454.4 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.377e-05/0.234, allocations: 22.62 kB / 454.4 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.2341, allocations: 9.781 kB / 454.4 MB, free: 29.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002054/0.2343, allocations: 282.5 kB / 454.7 MB, free: 29.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.31e-07/0.2343, allocations: 0 / 454.7 MB, free: 29.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004287/0.2347, allocations: 147.5 kB / 454.8 MB, free: 29.46 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (F.y,S.y,T.y,PIp.I.y,PIe.I.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 (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 Backend phase and start with SimCode phase: time 6.822e-05/0.2348, allocations: 101.5 kB / 454.9 MB, free: 29.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000699/0.2355, allocations: 440.2 kB / 455.3 MB, free: 29.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2355, allocations: 128 / 455.3 MB, free: 29.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002319/0.2357, allocations: 146.3 kB / 455.5 MB, free: 29.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006292/0.2364, allocations: 117.3 kB / 455.6 MB, free: 29.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/0.2375, allocations: 1.045 MB / 456.6 MB, free: 28.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001692/0.2377, allocations: 0.8348 MB / 457.5 MB, free: 27.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.2378, allocations: 29.41 kB / 457.5 MB, free: 27.75 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2378, allocations: 0 / 457.5 MB, free: 27.75 MB / 350.1 MB Notification: Performance of Templates: time 0.006398/0.2442, allocations: 5.225 MB / 462.7 MB, free: 27.24 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.makefile (rm -f AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; mkfifo AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe >> ../files/AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.sim & ./AES_AES.Coursework.ElecSys_generator_models.TurbineFollows -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1)