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.0009672/0.0009674, allocations: 99.03 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.001041/0.001041, allocations: 180.7 kB / 16.92 MB, free: 6.918 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.305/1.305, allocations: 223.3 MB / 241 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2038/0.2038, allocations: 22.34 MB / 314.4 MB, free: 13.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002826/0.0002826, allocations: 8 kB / 383.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2562, allocations: 55.98 MB / 439.2 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.001232/0.2575, allocations: 1.09 MB / 440.3 MB, free: 38.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.2587, allocations: 1.351 MB / 441.7 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.2588, allocations: 6.625 kB / 441.7 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002896/0.2591, allocations: 69.66 kB / 441.8 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001991/0.2593, allocations: 80.3 kB / 441.8 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002394/0.2595, allocations: 159.7 kB / 442 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002904/0.2598, allocations: 351.4 kB / 442.3 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.26, allocations: 83.75 kB / 442.4 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.2601, allocations: 122.7 kB / 442.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.2603, allocations: 141.2 kB / 442.7 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.791e-05/0.2603, allocations: 11.69 kB / 442.7 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.551e-05/0.2604, allocations: 7.906 kB / 442.7 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.221e-05/0.2604, allocations: 63 kB / 442.8 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.42e-05/0.2605, allocations: 128.8 kB / 442.9 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001301/0.2607, allocations: 177.2 kB / 443.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2607, allocations: 0 / 443.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2607, allocations: 0 / 443.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.2607, allocations: 0 / 443.1 MB, free: 36.98 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.001211/0.2619, allocations: 0.6469 MB / 443.7 MB, free: 36.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.026e-05/0.2619, allocations: 13.09 kB / 443.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.983e-05/0.262, allocations: 32.22 kB / 443.7 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006357/0.2626, allocations: 387.5 kB / 444.1 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.2627, allocations: 18.02 kB / 444.1 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.297e-05/0.2627, allocations: 16.44 kB / 444.2 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002828/0.263, allocations: 217.1 kB / 444.4 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.263, allocations: 7.875 kB / 444.4 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.263, allocations: 6.844 kB / 444.4 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.263, allocations: 2.906 kB / 444.4 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002398/0.2633, allocations: 155.4 kB / 444.5 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008462/0.2641, allocations: 0.959 MB / 445.5 MB, free: 35.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004671/0.2646, allocations: 241.8 kB / 445.7 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.2647, allocations: 80.86 kB / 445.8 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.62e-05/0.2648, allocations: 3.938 kB / 445.8 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.35e-05/0.2648, allocations: 48.67 kB / 445.9 MB, free: 35.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.342e-06/0.2648, allocations: 0 / 445.9 MB, free: 35.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.000409/0.2652, allocations: 252.4 kB / 446.1 MB, free: 34.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.94e-05/0.2652, allocations: 55.28 kB / 446.2 MB, free: 34.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005856/0.2658, allocations: 375.1 kB / 446.5 MB, free: 34.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.2659, allocations: 29.7 kB / 446.6 MB, free: 34.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.274e-05/0.2659, allocations: 178.1 kB / 446.7 MB, free: 34.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.81e-05/0.266, allocations: 69.53 kB / 446.8 MB, free: 34.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.011e-05/0.266, allocations: 28.73 kB / 446.8 MB, free: 34.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.142e-05/0.2661, allocations: 344.6 kB / 447.2 MB, free: 34.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.2662, allocations: 69.78 kB / 447.2 MB, free: 34.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.2663, allocations: 98.8 kB / 447.3 MB, free: 34.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009157/0.2672, allocations: 382.2 kB / 447.7 MB, free: 33.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2673, allocations: 0 / 447.7 MB, free: 33.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000315/0.2676, allocations: 250.9 kB / 447.9 MB, free: 33.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.2676, allocations: 5.906 kB / 448 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2676, allocations: 7.094 kB / 448 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.2676, allocations: 2.969 kB / 448 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.2678, allocations: 43.05 kB / 448 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.2678, allocations: 6.406 kB / 448 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002611/0.2681, allocations: 45.39 kB / 448.1 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.2681, allocations: 9.906 kB / 448.1 MB, free: 33.77 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001314/0.2682, allocations: 152 kB / 448.2 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.596e-05/0.2683, allocations: 33.42 kB / 448.2 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.363e-05/0.2684, allocations: 37.61 kB / 448.3 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.2684, allocations: 3.062 kB / 448.3 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.2684, allocations: 3.938 kB / 448.3 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.2684, allocations: 0 / 448.3 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002501/0.2686, allocations: 329.1 kB / 448.6 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.2686, allocations: 0 / 448.6 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001751/0.2688, allocations: 30.56 kB / 448.6 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2688, allocations: 0 / 448.6 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.2689, allocations: 10.75 kB / 448.7 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.2689, allocations: 0 / 448.7 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.2689, allocations: 10.88 kB / 448.7 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004023/0.2693, allocations: 388.2 kB / 449 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.046e-05/0.2693, allocations: 111.9 kB / 449.1 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.319e-05/0.2694, allocations: 10.14 kB / 449.2 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00028/0.2697, allocations: 32.42 kB / 449.2 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.62e-05/0.2697, allocations: 15.08 kB / 449.2 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.2697, allocations: 3.281 kB / 449.2 MB, free: 32.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005051/0.2702, allocations: 290 kB / 449.5 MB, free: 32.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2702, allocations: 0 / 449.5 MB, free: 32.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002667/0.2705, allocations: 47.28 kB / 449.5 MB, free: 32.83 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.653e-05/0.2706, allocations: 109.2 kB / 449.6 MB, free: 32.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002735/0.2709, allocations: 174.6 kB / 449.8 MB, free: 32.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2709, allocations: 0 / 449.8 MB, free: 32.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.271, allocations: 83.25 kB / 449.9 MB, free: 32.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000392/0.2714, allocations: 52.03 kB / 449.9 MB, free: 32.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007281/0.2721, allocations: 0.6664 MB / 450.6 MB, free: 32.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001687/0.2723, allocations: 0.7794 MB / 451.4 MB, free: 31.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.695e-05/0.2724, allocations: 25.78 kB / 451.4 MB, free: 31.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2724, allocations: 7.938 kB / 451.4 MB, free: 31.47 MB / 350.1 MB Notification: Performance of Templates: time 0.003914/0.2763, allocations: 3.162 MB / 454.6 MB, free: 31.21 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)