Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.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_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007277/0.0007278, allocations: 90.91 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.004188/0.004188, allocations: 171.7 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.255/1.255, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2006/0.2006, allocations: 22.35 MB / 313.8 MB, free: 13.05 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002659/0.0002659, allocations: 8 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2166/0.2168, allocations: 55.98 MB / 438.6 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.0008668/0.2177, allocations: 0.7247 MB / 439.3 MB, free: 38.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.2188, allocations: 1.206 MB / 440.5 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.855e-05/0.2189, allocations: 3.938 kB / 440.5 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002305/0.2192, allocations: 34.16 kB / 440.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.2193, allocations: 42.8 kB / 440.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001502/0.2195, allocations: 68.62 kB / 440.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000203/0.2197, allocations: 211.3 kB / 440.9 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.809e-05/0.2198, allocations: 33.31 kB / 440.9 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.535e-05/0.2199, allocations: 72.81 kB / 441 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/0.22, allocations: 84.72 kB / 441 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.491e-05/0.22, allocations: 3.844 kB / 441.1 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.735e-05/0.2201, allocations: 3.875 kB / 441.1 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.947e-05/0.2201, allocations: 36.56 kB / 441.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.966e-05/0.2202, allocations: 72.83 kB / 441.2 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.2203, allocations: 118.8 kB / 441.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.2203, allocations: 0 / 441.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2203, allocations: 4 kB / 441.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.2203, allocations: 0 / 441.3 MB, free: 37.64 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0008395/0.2212, allocations: 0.5041 MB / 441.8 MB, free: 37.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.003e-05/0.2212, allocations: 10.72 kB / 441.8 MB, free: 37.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.949e-05/0.2212, allocations: 17.25 kB / 441.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004302/0.2217, allocations: 276.7 kB / 442.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.2217, allocations: 11.34 kB / 442.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.469e-05/0.2217, allocations: 9.266 kB / 442.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000181/0.2219, allocations: 127 kB / 442.2 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.2219, allocations: 0 / 442.2 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.222, allocations: 4 kB / 442.2 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.222, allocations: 2.562 kB / 442.2 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/0.2221, allocations: 83.09 kB / 442.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000564/0.2227, allocations: 0.5891 MB / 442.9 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.223, allocations: 143.7 kB / 443 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.334e-05/0.2231, allocations: 51.27 kB / 443.1 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.2231, allocations: 3 kB / 443.1 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.021e-05/0.2232, allocations: 30.56 kB / 443.1 MB, free: 36.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.163e-06/0.2232, allocations: 0 / 443.1 MB, free: 36.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003074/0.2235, allocations: 162.1 kB / 443.3 MB, free: 36.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.664e-05/0.2235, allocations: 55.5 kB / 443.3 MB, free: 36.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004013/0.2239, allocations: 258.8 kB / 443.6 MB, free: 35.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.2239, allocations: 28.42 kB / 443.6 MB, free: 35.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.411e-05/0.224, allocations: 125.5 kB / 443.7 MB, free: 35.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.224, allocations: 37.73 kB / 443.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.649e-05/0.224, allocations: 19.5 kB / 443.8 MB, free: 35.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.04e-05/0.2241, allocations: 332 kB / 444.1 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.965e-05/0.2242, allocations: 41.47 kB / 444.2 MB, free: 35.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.488e-05/0.2243, allocations: 56.58 kB / 444.2 MB, free: 35.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006973/0.225, allocations: 253.5 kB / 444.5 MB, free: 35.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.225, allocations: 0 / 444.5 MB, free: 35.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002304/0.2252, allocations: 169 kB / 444.6 MB, free: 35.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.2252, allocations: 6.25 kB / 444.6 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.2252, allocations: 0 / 444.6 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.2253, allocations: 2.438 kB / 444.6 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.2254, allocations: 20.66 kB / 444.7 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.2254, allocations: 7.078 kB / 444.7 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001882/0.2256, allocations: 35.17 kB / 444.7 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.2256, allocations: 11.03 kB / 444.7 MB, free: 35.2 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: g.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cps.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: 3 * Number of states: 0 () * Number of discrete variables: 1 (N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 9.969e-05/0.2257, allocations: 143.6 kB / 444.9 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.563e-05/0.2257, allocations: 10.09 kB / 444.9 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.1e-05/0.2258, allocations: 16.22 kB / 444.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.2258, allocations: 2.562 kB / 444.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2258, allocations: 0 / 444.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2258, allocations: 6.797 kB / 444.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.226, allocations: 244.5 kB / 445.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.226, allocations: 4 kB / 445.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.2261, allocations: 14.94 kB / 445.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.2261, allocations: 0 / 445.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.2261, allocations: 6.547 kB / 445.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2262, allocations: 0 / 445.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2262, allocations: 0 / 445.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002923/0.2265, allocations: 287 kB / 445.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.474e-05/0.2265, allocations: 104.1 kB / 445.5 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.269e-05/0.2265, allocations: 7.875 kB / 445.5 MB, free: 34.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.2267, allocations: 29.39 kB / 445.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.561e-05/0.2268, allocations: 10.09 kB / 445.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.742e-06/0.2268, allocations: 2.719 kB / 445.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003345/0.2271, allocations: 206.8 kB / 445.8 MB, free: 34.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2272, allocations: 0 / 445.8 MB, free: 34.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002464/0.2274, allocations: 21.75 kB / 445.8 MB, free: 34.39 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (N.y,Cps.x_scaled[1],g.x_scaled[1]) * 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 (10): * Single equations (assignments): 10 * 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.155e-05/0.2275, allocations: 95.41 kB / 445.9 MB, free: 34.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000192/0.2277, allocations: 105.3 kB / 446 MB, free: 34.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2277, allocations: 4.125 kB / 446 MB, free: 34.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.703e-05/0.2278, allocations: 52.34 kB / 446.1 MB, free: 34.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.2281, allocations: 25.12 kB / 446.1 MB, free: 34.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004682/0.2286, allocations: 378.9 kB / 446.4 MB, free: 34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001137/0.2287, allocations: 0.7203 MB / 447.2 MB, free: 33.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.584e-05/0.2288, allocations: 32.34 kB / 447.2 MB, free: 33.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.073e-05/0.2288, allocations: 17.41 kB / 447.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2288, allocations: 0 / 447.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of Templates: time 0.003004/0.2318, allocations: 1.204 MB / 448.4 MB, free: 33.18 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1)