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.000724/0.000724, allocations: 91.22 kB / 15.06 MB, free: 1.094 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.0007683/0.0007685, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.24/1.24, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1845/0.1845, allocations: 22.35 MB / 313.4 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002906/0.0002907, allocations: 15.98 kB / 381.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2282, allocations: 55.97 MB / 437.9 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.00106/0.2293, allocations: 1.034 MB / 439 MB, free: 38.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.2304, allocations: 1.33 MB / 440.3 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.865e-05/0.2305, allocations: 6.938 kB / 440.3 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002663/0.2308, allocations: 74.61 kB / 440.4 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001727/0.2309, allocations: 70.97 kB / 440.4 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.2312, allocations: 146.9 kB / 440.6 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003558/0.2316, allocations: 309.6 kB / 440.9 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/0.2318, allocations: 71.45 kB / 440.9 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001659/0.232, allocations: 141.4 kB / 441.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002018/0.2322, allocations: 137.4 kB / 441.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.91e-05/0.2322, allocations: 8.406 kB / 441.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.301e-05/0.2323, allocations: 8.031 kB / 441.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.477e-05/0.2323, allocations: 56.47 kB / 441.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.658e-05/0.2324, allocations: 58.27 kB / 441.3 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.2326, allocations: 171.7 kB / 441.5 MB, free: 37.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2326, allocations: 8 kB / 441.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2326, allocations: 3.938 kB / 441.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.2326, allocations: 6.625 kB / 441.5 MB, free: 37.01 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.001091/0.2337, allocations: 0.6494 MB / 442.2 MB, free: 36.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.791e-05/0.2337, allocations: 11.06 kB / 442.2 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.934e-05/0.2338, allocations: 30.81 kB / 442.2 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000572/0.2344, allocations: 362.5 kB / 442.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.2344, allocations: 19.83 kB / 442.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.201e-05/0.2344, allocations: 25.78 kB / 442.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00027/0.2347, allocations: 214.4 kB / 442.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.2347, allocations: 7.938 kB / 442.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.2348, allocations: 6.688 kB / 442.8 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.2348, allocations: 5.031 kB / 442.8 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000232/0.235, allocations: 150.7 kB / 443 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008214/0.2358, allocations: 0.9515 MB / 443.9 MB, free: 35.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004617/0.2363, allocations: 243.9 kB / 444.2 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.2364, allocations: 81.72 kB / 444.3 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.2365, allocations: 3.812 kB / 444.3 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.244e-05/0.2365, allocations: 34.56 kB / 444.3 MB, free: 35.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.352e-06/0.2365, allocations: 4 kB / 444.3 MB, free: 35.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.000396/0.2369, allocations: 261.2 kB / 444.6 MB, free: 35.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.786e-05/0.2369, allocations: 54.28 kB / 444.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000525/0.2374, allocations: 378.1 kB / 445 MB, free: 34.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.2375, allocations: 25.7 kB / 445 MB, free: 34.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.215e-05/0.2375, allocations: 176.8 kB / 445.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.56e-05/0.2376, allocations: 71.14 kB / 445.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.002e-05/0.2376, allocations: 4 kB / 445.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.949e-05/0.2377, allocations: 346 kB / 445.6 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.2378, allocations: 66.06 kB / 445.7 MB, free: 34.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001081/0.2379, allocations: 100.6 kB / 445.8 MB, free: 34.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.238, allocations: 82.17 kB / 445.8 MB, free: 34.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.238, allocations: 0 / 445.8 MB, free: 34.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003128/0.2383, allocations: 249.4 kB / 446.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.2384, allocations: 3 kB / 446.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.738e-06/0.2384, allocations: 7 kB / 446.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.2384, allocations: 2.844 kB / 446.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.2386, allocations: 39.45 kB / 446.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.944e-06/0.2386, allocations: 6.156 kB / 446.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.2388, allocations: 53.72 kB / 446.2 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.2388, allocations: 5.875 kB / 446.2 MB, free: 33.96 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.2389, allocations: 153.7 kB / 446.3 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.324e-05/0.239, allocations: 27.66 kB / 446.4 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.436e-05/0.2391, allocations: 41.67 kB / 446.4 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2391, allocations: 7.938 kB / 446.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2391, allocations: 3.125 kB / 446.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.2391, allocations: 0 / 446.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002408/0.2393, allocations: 327.1 kB / 446.7 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2393, allocations: 3.938 kB / 446.7 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.2395, allocations: 29.62 kB / 446.8 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2395, allocations: 0 / 446.8 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.2396, allocations: 6.938 kB / 446.8 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.2396, allocations: 3.328 kB / 446.8 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2396, allocations: 0 / 446.8 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004/0.24, allocations: 391.5 kB / 447.2 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.814e-05/0.24, allocations: 112.2 kB / 447.3 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.352e-05/0.2401, allocations: 6.906 kB / 447.3 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002503/0.2403, allocations: 32.44 kB / 447.3 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.579e-05/0.2404, allocations: 16.17 kB / 447.3 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.878e-06/0.2404, allocations: 5.562 kB / 447.3 MB, free: 33.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004378/0.2408, allocations: 285 kB / 447.6 MB, free: 33.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2408, allocations: 3.938 kB / 447.6 MB, free: 33.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002622/0.2411, allocations: 45.81 kB / 447.7 MB, free: 33.02 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.564e-05/0.2412, allocations: 99.34 kB / 447.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002613/0.2414, allocations: 175.2 kB / 447.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.2415, allocations: 0 / 447.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.2416, allocations: 85.16 kB / 448 MB, free: 32.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.2419, allocations: 49.48 kB / 448.1 MB, free: 32.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006775/0.2426, allocations: 0.6053 MB / 448.7 MB, free: 32.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001507/0.2428, allocations: 0.7765 MB / 449.4 MB, free: 31.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.2429, allocations: 37.86 kB / 449.5 MB, free: 31.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.735e-05/0.243, allocations: 22.69 kB / 449.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.243, allocations: 0 / 449.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of Templates: time 0.003849/0.2468, allocations: 1.924 MB / 451.4 MB, free: 31.58 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)