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.001443/0.001443, allocations: 101.6 kB / 16.37 MB, free: 6.43 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.001583/0.001584, allocations: 195.8 kB / 17.31 MB, free: 5.781 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.344/1.344, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09085/0.09085, allocations: 22.33 MB / 313.5 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 66.06 kB / 382.2 MB, free: 41.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1036, allocations: 54.96 MB / 437.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.003163/0.1068, allocations: 1.397 MB / 438.6 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002261/0.1091, allocations: 1.369 MB / 440 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003442/0.1094, allocations: 4 kB / 440 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005087/0.11, allocations: 87.34 kB / 440.1 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003371/0.1103, allocations: 95.47 kB / 440.2 MB, free: 9.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004098/0.1108, allocations: 171.7 kB / 440.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005254/0.1113, allocations: 359.7 kB / 440.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.1115, allocations: 99.31 kB / 440.8 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002741/0.1118, allocations: 147.4 kB / 440.9 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002622/0.1121, allocations: 159.3 kB / 441.1 MB, free: 8.371 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.362e-05/0.1121, allocations: 20 kB / 441.1 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.088e-05/0.1122, allocations: 24 kB / 441.1 MB, free: 8.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001145/0.1123, allocations: 75.69 kB / 441.2 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.1124, allocations: 127.1 kB / 441.3 MB, free: 8.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003051/0.1127, allocations: 254.9 kB / 441.6 MB, free: 7.879 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.1128, allocations: 0 / 441.6 MB, free: 7.879 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1128, allocations: 0 / 441.6 MB, free: 7.879 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.1128, allocations: 0 / 441.6 MB, free: 7.879 MB / 318.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.001519/0.1143, allocations: 0.693 MB / 442.3 MB, free: 7.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.1143, allocations: 8.031 kB / 442.3 MB, free: 7.129 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.044e-05/0.1144, allocations: 32.56 kB / 442.3 MB, free: 7.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007525/0.1152, allocations: 383.3 kB / 442.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.1152, allocations: 16.38 kB / 442.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.393e-05/0.1153, allocations: 20.38 kB / 442.7 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003223/0.1156, allocations: 227.4 kB / 442.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.1156, allocations: 0 / 442.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.1156, allocations: 7.938 kB / 442.9 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.1156, allocations: 4 kB / 442.9 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002643/0.1159, allocations: 152.8 kB / 443.1 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/0.117, allocations: 0.9552 MB / 444 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005215/0.1175, allocations: 241 kB / 444.3 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001287/0.1176, allocations: 92.77 kB / 444.4 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.1177, allocations: 4 kB / 444.4 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.1177, allocations: 30.56 kB / 444.4 MB, free: 4.848 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/0.1177, allocations: 0 / 444.4 MB, free: 4.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004549/0.1182, allocations: 251.7 kB / 444.6 MB, free: 4.598 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.1182, allocations: 59.34 kB / 444.7 MB, free: 4.527 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006429/0.1189, allocations: 372.4 kB / 445.1 MB, free: 4.145 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.1189, allocations: 33.7 kB / 445.1 MB, free: 4.105 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.119, allocations: 176.2 kB / 445.3 MB, free: 3.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.269e-05/0.1191, allocations: 70.91 kB / 445.3 MB, free: 3.859 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.573e-05/0.1191, allocations: 49.7 kB / 445.4 MB, free: 3.805 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.1193, allocations: 346.7 kB / 445.7 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.1194, allocations: 60.2 kB / 445.8 MB, free: 3.395 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.1195, allocations: 100.7 kB / 445.9 MB, free: 3.281 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009559/0.1205, allocations: 376.5 kB / 446.3 MB, free: 2.902 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1205, allocations: 4 kB / 446.3 MB, free: 2.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003599/0.1209, allocations: 251 kB / 446.5 MB, free: 2.648 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.1209, allocations: 4 kB / 446.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1209, allocations: 0 / 446.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.1209, allocations: 8.125 kB / 446.5 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.1211, allocations: 43.92 kB / 446.6 MB, free: 2.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.1211, allocations: 11.92 kB / 446.6 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002628/0.1214, allocations: 43.8 kB / 446.6 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.1214, allocations: 8 kB / 446.6 MB, free: 2.531 MB / 318.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.0001579/0.1216, allocations: 165.8 kB / 446.8 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.971e-05/0.1216, allocations: 27.62 kB / 446.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.428e-05/0.1217, allocations: 38.31 kB / 446.8 MB, free: 2.297 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-06/0.1217, allocations: 4 kB / 446.9 MB, free: 2.293 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.1217, allocations: 3.938 kB / 446.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.1217, allocations: 3.984 kB / 446.9 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003071/0.122, allocations: 317.4 kB / 447.2 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.122, allocations: 0 / 447.2 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001816/0.1222, allocations: 27.98 kB / 447.2 MB, free: 1.898 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.1222, allocations: 8 kB / 447.2 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.1223, allocations: 7.938 kB / 447.2 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1223, allocations: 7.875 kB / 447.2 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1223, allocations: 3.938 kB / 447.2 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004942/0.1228, allocations: 385.7 kB / 447.6 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.382e-05/0.1229, allocations: 108.7 kB / 447.7 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.242e-05/0.1229, allocations: 8 kB / 447.7 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000291/0.1232, allocations: 35.95 kB / 447.7 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.943e-05/0.1233, allocations: 15.92 kB / 447.8 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.1233, allocations: 8 kB / 447.8 MB, free: 1.289 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005355/0.1238, allocations: 283 kB / 448 MB, free: 1.016 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1238, allocations: 4 kB / 448.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002719/0.1241, allocations: 47.84 kB / 448.1 MB, free: 0.9648 MB / 318.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 0.0001059/0.1242, allocations: 107.2 kB / 448.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003008/0.1245, allocations: 179.7 kB / 448.4 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1245, allocations: 0 / 448.4 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001736/0.1247, allocations: 79.91 kB / 448.5 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003684/0.1251, allocations: 51.38 kB / 448.5 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007908/0.1259, allocations: 0.5184 MB / 449 MB, free: 4 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.1262, allocations: 0.7755 MB / 449.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.1263, allocations: 42.27 kB / 449.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.336e-05/0.1264, allocations: 19.44 kB / 449.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1264, allocations: 0 / 449.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of Templates: time 0.004907/0.1313, allocations: 2.129 MB / 452 MB, free: 13.02 MB / 334.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe 2>&1)