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.005977/0.005977, allocations: 100.7 kB / 15.87 MB, free: 6.305 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.001567/0.001567, allocations: 190.7 kB / 16.79 MB, free: 6.238 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.354/1.354, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2013/0.2013, allocations: 22.34 MB / 313 MB, free: 12.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 59.91 kB / 380.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2506, allocations: 54.94 MB / 435.7 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001997/0.2526, allocations: 1.064 MB / 436.8 MB, free: 38.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.2537, allocations: 1.211 MB / 438 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.254e-05/0.2538, allocations: 2.938 kB / 438 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002927/0.254, allocations: 29.52 kB / 438 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001188/0.2542, allocations: 46.39 kB / 438.1 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001401/0.2543, allocations: 75.23 kB / 438.1 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001859/0.2545, allocations: 207.2 kB / 438.3 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.857e-05/0.2546, allocations: 31.72 kB / 438.4 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.376e-05/0.2547, allocations: 82.67 kB / 438.4 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.2548, allocations: 86.33 kB / 438.5 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.386e-05/0.2549, allocations: 5.938 kB / 438.5 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.034e-05/0.2549, allocations: 5.812 kB / 438.5 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.918e-05/0.255, allocations: 41.39 kB / 438.6 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.875e-05/0.255, allocations: 55.73 kB / 438.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.585e-05/0.2551, allocations: 87.22 kB / 438.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2551, allocations: 2.5 kB / 438.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.2551, allocations: 0 / 438.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.2551, allocations: 4 kB / 438.7 MB, free: 37.66 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.0009588/0.2561, allocations: 0.5212 MB / 439.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.2561, allocations: 8.219 kB / 439.3 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.016e-05/0.2562, allocations: 20.88 kB / 439.3 MB, free: 37.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004407/0.2566, allocations: 278.7 kB / 439.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.2567, allocations: 3.406 kB / 439.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.153e-05/0.2567, allocations: 10.31 kB / 439.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.2569, allocations: 137.7 kB / 439.7 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.2569, allocations: 0 / 439.7 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.2569, allocations: 0 / 439.7 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.2569, allocations: 2.5 kB / 439.7 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000201/0.2571, allocations: 90.42 kB / 439.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005864/0.2577, allocations: 0.5755 MB / 440.4 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003133/0.2581, allocations: 144.2 kB / 440.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.187e-05/0.2582, allocations: 46.98 kB / 440.5 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.2582, allocations: 10.98 kB / 440.6 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.168e-05/0.2582, allocations: 30.56 kB / 440.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.162e-06/0.2582, allocations: 0 / 440.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003422/0.2585, allocations: 162.7 kB / 440.7 MB, free: 36.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.623e-05/0.2586, allocations: 54.19 kB / 440.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000425/0.259, allocations: 257.1 kB / 441 MB, free: 35.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.259, allocations: 25.7 kB / 441.1 MB, free: 35.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.568e-05/0.2591, allocations: 126.8 kB / 441.2 MB, free: 35.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.2591, allocations: 33.12 kB / 441.2 MB, free: 35.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.122e-05/0.2591, allocations: 28.97 kB / 441.3 MB, free: 35.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.328e-05/0.2592, allocations: 336.3 kB / 441.6 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.728e-05/0.2593, allocations: 49.14 kB / 441.6 MB, free: 35.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.389e-05/0.2594, allocations: 60.58 kB / 441.7 MB, free: 35.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007299/0.2601, allocations: 246.8 kB / 441.9 MB, free: 35.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2601, allocations: 0 / 441.9 MB, free: 35.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002562/0.2604, allocations: 166.2 kB / 442.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.2604, allocations: 5.062 kB / 442.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.2604, allocations: 6.688 kB / 442.1 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.2604, allocations: 0 / 442.1 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.2605, allocations: 27.09 kB / 442.1 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.2605, allocations: 0 / 442.1 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000187/0.2607, allocations: 37.56 kB / 442.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.2608, allocations: 2.594 kB / 442.2 MB, free: 35.21 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 0.0001047/0.2609, allocations: 141.7 kB / 442.3 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.68e-05/0.2609, allocations: 18.22 kB / 442.3 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.153e-05/0.2609, allocations: 20.47 kB / 442.3 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.261, allocations: 0 / 442.3 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.261, allocations: 0 / 442.3 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.261, allocations: 7.172 kB / 442.4 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.2612, allocations: 226.9 kB / 442.6 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2612, allocations: 0 / 442.6 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001317/0.2613, allocations: 22.02 kB / 442.6 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2613, allocations: 4 kB / 442.6 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.2613, allocations: 0 / 442.6 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.2613, allocations: 7.125 kB / 442.6 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.2613, allocations: 0 / 442.6 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.2617, allocations: 283.2 kB / 442.9 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.652e-05/0.2617, allocations: 102.2 kB / 443 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.584e-05/0.2617, allocations: 5.891 kB / 443 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002323/0.262, allocations: 25.12 kB / 443 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.687e-05/0.262, allocations: 17.94 kB / 443 MB, free: 34.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.833e-06/0.262, allocations: 2.844 kB / 443 MB, free: 34.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003293/0.2624, allocations: 197.3 kB / 443.2 MB, free: 34.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2624, allocations: 96 / 443.2 MB, free: 34.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002383/0.2626, allocations: 29.16 kB / 443.3 MB, free: 34.4 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.928e-05/0.2627, allocations: 98.38 kB / 443.4 MB, free: 34.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002/0.2629, allocations: 103.7 kB / 443.5 MB, free: 34.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.2629, allocations: 0 / 443.5 MB, free: 34.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.639e-05/0.263, allocations: 51.06 kB / 443.5 MB, free: 34.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.2633, allocations: 26.03 kB / 443.5 MB, free: 34.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006085/0.2639, allocations: 408.4 kB / 443.9 MB, free: 33.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001216/0.2641, allocations: 0.7336 MB / 444.7 MB, free: 33.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.268e-05/0.2642, allocations: 15.91 kB / 444.7 MB, free: 33.26 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2642, allocations: 0 / 444.7 MB, free: 33.26 MB / 350.1 MB Notification: Performance of Templates: time 0.002813/0.267, allocations: 1.889 MB / 446.6 MB, free: 33.12 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)