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: "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_Primary_secondary_tertiary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_Primary_secondary_tertiary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 108 kB / 15.61 MB, free: 152 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.001626/0.001626, allocations: 197 kB / 16.53 MB, free: 6.664 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.369/1.369, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1907/0.1907, allocations: 22.35 MB / 312.7 MB, free: 12.6 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.89 kB / 380.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2563, allocations: 54.95 MB / 435.9 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.003011/0.2594, allocations: 2.52 MB / 438.4 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.2605, allocations: 0.7777 MB / 439.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.2606, allocations: 9.281 kB / 439.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003469/0.261, allocations: 92.75 kB / 439.3 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00026/0.2613, allocations: 132.7 kB / 439.4 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002967/0.2616, allocations: 199.9 kB / 439.6 MB, free: 37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003763/0.262, allocations: 0.5193 MB / 440.1 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001954/0.2622, allocations: 116.6 kB / 440.2 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002103/0.2624, allocations: 227.2 kB / 440.5 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002361/0.2626, allocations: 234 kB / 440.7 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.75e-05/0.2627, allocations: 36.41 kB / 440.7 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.493e-05/0.2628, allocations: 39.81 kB / 440.8 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.2629, allocations: 109.8 kB / 440.9 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.263, allocations: 189.1 kB / 441.1 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002554/0.2633, allocations: 389.4 kB / 441.4 MB, free: 36.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2633, allocations: 0 / 441.4 MB, free: 36.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2633, allocations: 0 / 441.4 MB, free: 36.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.2633, allocations: 3.062 kB / 441.4 MB, free: 36.15 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001629/0.2649, allocations: 0.8245 MB / 442.3 MB, free: 35.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.265, allocations: 18.66 kB / 442.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.876e-05/0.265, allocations: 61.08 kB / 442.3 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.998e-05/0.2651, allocations: 46.78 kB / 442.4 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007024/0.2658, allocations: 421.5 kB / 442.8 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.2658, allocations: 27.19 kB / 442.8 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.728e-05/0.2659, allocations: 39.55 kB / 442.9 MB, free: 35.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003822/0.2663, allocations: 296.8 kB / 443.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.2663, allocations: 3.938 kB / 443.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.2663, allocations: 15 kB / 443.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.2663, allocations: 5.906 kB / 443.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003443/0.2667, allocations: 224.6 kB / 443.4 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/0.2679, allocations: 1.033 MB / 444.4 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006684/0.2686, allocations: 393.9 kB / 444.8 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001972/0.2688, allocations: 154.8 kB / 445 MB, free: 34.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.2688, allocations: 2.5 kB / 445 MB, free: 34.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.339e-05/0.2688, allocations: 33.06 kB / 445 MB, free: 34.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.573e-06/0.2689, allocations: 0 / 445 MB, free: 34.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.001649/0.2705, allocations: 1.107 MB / 446.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.662e-05/0.2705, allocations: 60.41 kB / 446.2 MB, free: 33.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006659/0.2712, allocations: 430.5 kB / 446.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.2712, allocations: 33.7 kB / 446.6 MB, free: 33.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.136e-05/0.2713, allocations: 209.8 kB / 446.8 MB, free: 32.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.011e-05/0.2714, allocations: 136.9 kB / 447 MB, free: 32.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.794e-05/0.2715, allocations: 72.83 kB / 447 MB, free: 32.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.72e-05/0.2716, allocations: 348 kB / 447.4 MB, free: 32.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.2718, allocations: 110.2 kB / 447.5 MB, free: 32.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.272, allocations: 170.1 kB / 447.6 MB, free: 32.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.2734, allocations: 0.6098 MB / 448.3 MB, free: 32.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2734, allocations: 3.422 kB / 448.3 MB, free: 32.01 MB / 350.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.0008487/0.2742, allocations: 0.8053 MB / 449.1 MB, free: 31.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.2743, allocations: 7.031 kB / 449.1 MB, free: 31.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.2743, allocations: 0 / 449.1 MB, free: 31.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000242/0.2745, allocations: 105.8 kB / 449.2 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003204/0.2748, allocations: 78.61 kB / 449.2 MB, free: 31.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002636/0.2775, allocations: 7.935 MB / 457.2 MB, free: 23.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003604/0.2779, allocations: 43.42 kB / 457.2 MB, free: 23.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.025e-05/0.2779, allocations: 11.19 kB / 457.2 MB, free: 23.32 MB / 350.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.000146/0.278, allocations: 173.2 kB / 457.4 MB, free: 23.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.158e-05/0.2781, allocations: 40.94 kB / 457.4 MB, free: 23.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.097e-05/0.2782, allocations: 52.42 kB / 457.5 MB, free: 23.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.2782, allocations: 4.875 kB / 457.5 MB, free: 23.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.2782, allocations: 3.938 kB / 457.5 MB, free: 23.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.2782, allocations: 3.516 kB / 457.5 MB, free: 23.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009474/0.2792, allocations: 0.8854 MB / 458.4 MB, free: 22.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.2792, allocations: 4 kB / 458.4 MB, free: 22.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/0.2795, allocations: 59.86 kB / 458.5 MB, free: 22.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001933/0.2797, allocations: 74.08 kB / 458.5 MB, free: 22.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.71e-05/0.2797, allocations: 16.78 kB / 458.5 MB, free: 22.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.2809, allocations: 1.891 MB / 460.4 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2809, allocations: 0 / 460.4 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007781/0.2817, allocations: 0.6194 MB / 461.1 MB, free: 20.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.882e-05/0.2818, allocations: 116.7 kB / 461.2 MB, free: 20.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.824e-05/0.2818, allocations: 10.58 kB / 461.2 MB, free: 20.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003617/0.2822, allocations: 32.72 kB / 461.2 MB, free: 20.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.932e-05/0.2823, allocations: 30.94 kB / 461.2 MB, free: 20.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.2823, allocations: 17.42 kB / 461.3 MB, free: 20.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005874/0.2829, allocations: 321.5 kB / 461.6 MB, free: 20.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2829, allocations: 0 / 461.6 MB, free: 20.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005029/0.2834, allocations: 89.94 kB / 461.7 MB, free: 20.16 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (g1.x_scaled[1],g2.x_scaled[1],Cs.y,Ge1.deltag,Ge1.wg,Ge2.thetap,Ge2.deltag,Ge2.wg) * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009445/0.2844, allocations: 1.166 MB / 462.8 MB, free: 19.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007835/0.2852, allocations: 0.6553 MB / 463.5 MB, free: 18.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2852, allocations: 0 / 463.5 MB, free: 18.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003453/0.2855, allocations: 290.7 kB / 463.8 MB, free: 18.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/0.286, allocations: 70.3 kB / 463.8 MB, free: 18.62 MB / 350.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.Pcmd ; Ge2.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pm 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. 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 simCode: created linear, non-linear and system jacobian parts: time 0.005598/0.2916, allocations: 4.797 MB / 468.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/0.2918, allocations: 0.8334 MB / 469.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001623/0.292, allocations: 49.94 kB / 469.5 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.2922, allocations: 131.2 kB / 469.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2922, allocations: 0 / 469.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03262/0.3248, allocations: 8.012 MB / 477.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.85/17.18, allocations: 5.266 kB / 477.7 MB, free: 13.75 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_case_studies_Primary_secondary_tertiary_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_case_studies_Primary_secondary_tertiary.fmu > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1)