Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.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_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") translateModel(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 113.9 kB / 16.42 MB, free: 6.449 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.001654/0.001654, allocations: 192.3 kB / 17.35 MB, free: 5.738 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09317/0.09317, allocations: 22.32 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 63.91 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09085/0.09214, allocations: 54.95 MB / 492.7 MB, free: 4.785 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.003512/0.09568, allocations: 2.534 MB / 495.2 MB, free: 2.23 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001389/0.09709, allocations: 0.764 MB / 496 MB, free: 1.465 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002359/0.09734, allocations: 7.938 kB / 496 MB, free: 1.457 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003551/0.09773, allocations: 87.28 kB / 496.1 MB, free: 1.371 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003736/0.09812, allocations: 143.1 kB / 496.2 MB, free: 1.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003985/0.09853, allocations: 191.7 kB / 496.4 MB, free: 1.043 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005796/0.09912, allocations: 0.5187 MB / 496.9 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002184/0.09935, allocations: 132.5 kB / 497 MB, free: 400 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003238/0.09969, allocations: 223.2 kB / 497.3 MB, free: 176 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003607/0.1001, allocations: 242.9 kB / 497.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.39e-05/0.1002, allocations: 36 kB / 497.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.228e-05/0.1002, allocations: 32 kB / 497.6 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001214/0.1004, allocations: 111.6 kB / 497.7 MB, free: 15.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000173/0.1005, allocations: 186.9 kB / 497.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000377/0.1009, allocations: 398.4 kB / 498.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1009, allocations: 0 / 498.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1009, allocations: 0 / 498.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.101, allocations: 0 / 498.2 MB, free: 15.18 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001898/0.1029, allocations: 0.8337 MB / 499.1 MB, free: 14.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.1029, allocations: 8.031 kB / 499.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.903e-05/0.103, allocations: 52.31 kB / 499.1 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008847/0.1039, allocations: 427.6 kB / 499.5 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/0.1039, allocations: 32.78 kB / 499.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.367e-05/0.104, allocations: 32 kB / 499.6 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000506/0.1045, allocations: 301.7 kB / 499.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.1045, allocations: 4 kB / 499.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.843e-05/0.1046, allocations: 12 kB / 499.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1046, allocations: 4 kB / 499.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004277/0.105, allocations: 222.1 kB / 0.4884 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001571/0.1066, allocations: 1.026 MB / 0.4894 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007641/0.1074, allocations: 382.5 kB / 0.4898 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002347/0.1076, allocations: 148.8 kB / 0.4899 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.1076, allocations: 7.938 kB / 0.4899 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.861e-05/0.1077, allocations: 38.94 kB / 0.49 GB, free: 11.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 1.683e-06/0.1077, allocations: 4 kB / 0.49 GB, free: 11.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001996/0.1097, allocations: 1.107 MB / 0.4911 GB, free: 10.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.865e-05/0.1097, allocations: 55.41 kB / 0.4911 GB, free: 10.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009263/0.1107, allocations: 425.6 kB / 0.4915 GB, free: 9.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.587e-05/0.1107, allocations: 33.7 kB / 0.4915 GB, free: 9.781 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/0.1109, allocations: 204.3 kB / 0.4917 GB, free: 9.574 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.111, allocations: 149.9 kB / 0.4919 GB, free: 9.426 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.1111, allocations: 66.14 kB / 0.492 GB, free: 9.355 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.1113, allocations: 350.8 kB / 0.4923 GB, free: 9.004 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002272/0.1115, allocations: 112.8 kB / 0.4924 GB, free: 8.895 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.1118, allocations: 177.8 kB / 0.4926 GB, free: 8.695 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/0.1135, allocations: 0.6141 MB / 0.4932 GB, free: 8.066 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1135, allocations: 0 / 0.4932 GB, free: 8.066 MB / 382.1 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pm = Ge2.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge2.Pm ; Ge2.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge1.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=52) (initialization): time 0.001067/0.1146, allocations: 0.807 MB / 0.494 GB, free: 7.168 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1146, allocations: 4 kB / 0.494 GB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.1146, allocations: 4 kB / 0.494 GB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002887/0.1149, allocations: 98.61 kB / 0.4941 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003686/0.1153, allocations: 83.91 kB / 0.4941 GB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2057/0.321, allocations: 7.93 MB / 0.5019 GB, free: 21.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004826/0.3215, allocations: 46.36 kB / 0.5019 GB, free: 21.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.772e-05/0.3215, allocations: 13.66 kB / 0.5019 GB, free: 21.08 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: Ge2.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (Cs.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001871/0.3217, allocations: 164.4 kB / 0.5021 GB, free: 20.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-05/0.3218, allocations: 39.17 kB / 0.5021 GB, free: 20.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.536e-05/0.3219, allocations: 54.83 kB / 0.5022 GB, free: 20.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.3219, allocations: 1.828 kB / 0.5022 GB, free: 20.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3219, allocations: 3.75 kB / 0.5022 GB, free: 20.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.145e-05/0.322, allocations: 119 kB / 0.5023 GB, free: 20.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.272e-05/0.3221, allocations: 7.031 kB / 0.5023 GB, free: 20.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003956/0.3225, allocations: 39.41 kB / 0.5023 GB, free: 20.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.677e-05/0.3225, allocations: 32.41 kB / 0.5024 GB, free: 20.87 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001095/0.3236, allocations: 0.5004 MB / 0.5029 GB, free: 20.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000698/0.3244, allocations: 0.6631 MB / 0.5035 GB, free: 20.54 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000195/0.3246, allocations: 141.8 kB / 0.5036 GB, free: 20.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005909/0.3252, allocations: 322.3 kB / 0.504 GB, free: 20.45 MB / 382.1 MB Notification: Performance of Backend: time 5.31e-07/0.3252, allocations: 3.75 kB / 0.504 GB, free: 20.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008662/0.326, allocations: 0.6278 MB / 0.5046 GB, free: 20.05 MB / 382.1 MB Notification: Performance of SimCode: time 0.001293/0.3274, allocations: 1.451 MB / 0.506 GB, free: 19.11 MB / 382.1 MB Notification: Performance of Templates: time 0.009426/0.3368, allocations: 4.665 MB / 0.5105 GB, free: 18.86 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.makefile (rm -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.sim & ./AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1)