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.001107/0.001108, allocations: 115 kB / 16.42 MB, free: 6.461 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.001097/0.001097, allocations: 186.5 kB / 17.35 MB, free: 5.734 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.325/1.325, allocations: 222.9 MB / 241.1 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09541/0.09541, allocations: 22.33 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 63.89 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09239/0.09381, allocations: 54.96 MB / 492.7 MB, free: 4.742 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002443/0.09628, allocations: 1.391 MB / 494.1 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001771/0.09807, allocations: 1.373 MB / 495.5 MB, free: 1.957 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001575/0.09825, allocations: 4 kB / 495.5 MB, free: 1.953 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003635/0.09862, allocations: 79.42 kB / 495.5 MB, free: 1.875 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002634/0.09892, allocations: 95.41 kB / 495.6 MB, free: 1.781 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003439/0.09927, allocations: 171.7 kB / 495.8 MB, free: 1.613 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000432/0.09972, allocations: 371.7 kB / 496.2 MB, free: 1.246 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/0.0999, allocations: 91.34 kB / 496.2 MB, free: 1.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002001/0.1001, allocations: 147.4 kB / 496.4 MB, free: 1.016 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002405/0.1004, allocations: 163.2 kB / 496.6 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.396e-05/0.1004, allocations: 20 kB / 496.6 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.11e-05/0.1005, allocations: 23.94 kB / 496.6 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.1006, allocations: 79.72 kB / 496.7 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.1007, allocations: 123.1 kB / 496.8 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002942/0.101, allocations: 258.7 kB / 497 MB, free: 368 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.101, allocations: 0 / 497 MB, free: 368 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.101, allocations: 0 / 497 MB, free: 368 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.101, allocations: 4 kB / 497.1 MB, free: 364 kB / 366.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.001498/0.1025, allocations: 0.6968 MB / 497.7 MB, free: 15.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.1026, allocations: 8.031 kB / 497.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.622e-05/0.1027, allocations: 36.7 kB / 497.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007516/0.1034, allocations: 387.5 kB / 498.2 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.1034, allocations: 12.38 kB / 498.2 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.841e-05/0.1035, allocations: 20.38 kB / 498.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003397/0.1038, allocations: 219.5 kB / 498.4 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.1039, allocations: 3.938 kB / 498.4 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.1039, allocations: 12 kB / 498.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.1039, allocations: 4 kB / 498.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002899/0.1042, allocations: 152.8 kB / 498.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.1053, allocations: 0.9514 MB / 499.5 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005578/0.1059, allocations: 246.7 kB / 499.8 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.106, allocations: 76.83 kB / 499.9 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.1061, allocations: 0 / 499.9 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.1061, allocations: 42.5 kB / 499.9 MB, free: 13.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.433e-06/0.1061, allocations: 4 kB / 499.9 MB, free: 13.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.000507/0.1066, allocations: 253.7 kB / 0.4884 GB, free: 13.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/0.1067, allocations: 51.41 kB / 0.4885 GB, free: 13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006811/0.1073, allocations: 376.4 kB / 0.4888 GB, free: 12.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.1074, allocations: 29.7 kB / 0.4889 GB, free: 12.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.1075, allocations: 168.4 kB / 0.489 GB, free: 12.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.664e-05/0.1076, allocations: 79.31 kB / 0.4891 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.919e-05/0.1076, allocations: 45.64 kB / 0.4891 GB, free: 12.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.1078, allocations: 342.8 kB / 0.4895 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.1079, allocations: 56.2 kB / 0.4895 GB, free: 11.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.1081, allocations: 120.6 kB / 0.4896 GB, free: 11.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.1091, allocations: 377.2 kB / 0.49 GB, free: 11.37 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1092, allocations: 0 / 0.49 GB, free: 11.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004053/0.1096, allocations: 256 kB / 0.4902 GB, free: 11.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.1096, allocations: 10.5 kB / 0.4902 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1096, allocations: 0 / 0.4902 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.1096, allocations: 0 / 0.4902 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.1098, allocations: 39.98 kB / 0.4903 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.1098, allocations: 15.8 kB / 0.4903 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000401/0.1102, allocations: 51.97 kB / 0.4904 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.1103, allocations: 8 kB / 0.4904 GB, free: 11 MB / 382.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.0002343/0.1105, allocations: 149.8 kB / 0.4905 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.993e-05/0.1106, allocations: 31.81 kB / 0.4905 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.351e-05/0.1107, allocations: 38.25 kB / 0.4906 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.1107, allocations: 7.984 kB / 0.4906 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1108, allocations: 0 / 0.4906 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.1109, allocations: 120.8 kB / 0.4907 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.346e-05/0.111, allocations: 0 / 0.4907 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004636/0.1114, allocations: 35.95 kB / 0.4907 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.875e-05/0.1115, allocations: 7.984 kB / 0.4907 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008771/0.1124, allocations: 307 kB / 0.491 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008645/0.1133, allocations: 495.8 kB / 0.4915 GB, free: 9.781 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002115/0.1135, allocations: 80 kB / 0.4916 GB, free: 9.703 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008994/0.1144, allocations: 287 kB / 0.4918 GB, free: 9.422 MB / 382.1 MB Notification: Performance of Backend: time 7.22e-07/0.1144, allocations: 0 / 0.4918 GB, free: 9.422 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008064/0.1152, allocations: 190.3 kB / 0.492 GB, free: 9.227 MB / 382.1 MB Notification: Performance of SimCode: time 0.001441/0.1167, allocations: 0.9781 MB / 0.493 GB, free: 8.199 MB / 382.1 MB Notification: Performance of Templates: time 0.009267/0.126, allocations: 2.748 MB / 0.4957 GB, free: 5.457 MB / 382.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)