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.001096/0.001096, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001078/0.001078, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.3482/0.3482, allocations: 22.34 MB / 313.3 MB, free: 13.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003382/0.0003384, allocations: 12 kB / 381.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3407, allocations: 55.98 MB / 437.9 MB, free: 39.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.002273/0.343, allocations: 2.069 MB / 440 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.3441, allocations: 0.7614 MB / 440.7 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001317/0.3442, allocations: 2.969 kB / 440.7 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003271/0.3445, allocations: 76.62 kB / 440.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002456/0.3448, allocations: 123.9 kB / 440.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.3451, allocations: 141.8 kB / 441.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003295/0.3454, allocations: 330.6 kB / 441.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.3456, allocations: 100.6 kB / 441.5 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002229/0.3458, allocations: 197.7 kB / 441.7 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000228/0.3461, allocations: 194.3 kB / 441.9 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.969e-05/0.3461, allocations: 16.62 kB / 441.9 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.994e-05/0.3462, allocations: 14.97 kB / 441.9 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.695e-05/0.3462, allocations: 83.44 kB / 442 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.3e-05/0.3463, allocations: 77.61 kB / 442 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001922/0.3465, allocations: 283.5 kB / 442.3 MB, free: 36.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.3465, allocations: 4 kB / 442.3 MB, free: 36.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3465, allocations: 3.938 kB / 442.3 MB, free: 36.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.3465, allocations: 0 / 442.3 MB, free: 36.52 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.001682/0.3482, allocations: 0.7755 MB / 443.1 MB, free: 35.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.3483, allocations: 12.56 kB / 443.1 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.8e-05/0.3483, allocations: 65.73 kB / 443.2 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.189e-05/0.3484, allocations: 45.88 kB / 443.2 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006951/0.3491, allocations: 411.5 kB / 443.6 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.3491, allocations: 19.03 kB / 443.7 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.501e-05/0.3492, allocations: 37.34 kB / 443.7 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005465/0.3498, allocations: 299.8 kB / 444 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.3498, allocations: 3.938 kB / 444 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.56e-05/0.3499, allocations: 11.97 kB / 444 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.3499, allocations: 5.844 kB / 444 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003416/0.3502, allocations: 220.5 kB / 444.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001673/0.3519, allocations: 1.045 MB / 445.3 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009754/0.3529, allocations: 388 kB / 445.6 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.3529, allocations: 3.031 kB / 445.6 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.852e-05/0.353, allocations: 37.38 kB / 445.7 MB, free: 34.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.204e-06/0.353, allocations: 0 / 445.7 MB, free: 34.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.002403/0.3554, allocations: 1.098 MB / 446.8 MB, free: 33.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.3554, allocations: 61.25 kB / 446.8 MB, free: 33.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009576/0.3564, allocations: 434.1 kB / 447.3 MB, free: 33.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.3565, allocations: 32.58 kB / 447.3 MB, free: 33.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.3566, allocations: 199.8 kB / 447.5 MB, free: 33.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.3567, allocations: 147.6 kB / 447.6 MB, free: 33.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.272e-05/0.3567, allocations: 10.59 kB / 447.6 MB, free: 33.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.944e-05/0.3568, allocations: 355.1 kB / 448 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002559/0.3571, allocations: 105 kB / 448.1 MB, free: 32.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002912/0.3574, allocations: 169.8 kB / 448.3 MB, free: 32.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003042/0.3577, allocations: 139 kB / 448.4 MB, free: 32.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.3577, allocations: 2.781 kB / 448.4 MB, free: 32.71 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.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd 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.001017/0.3588, allocations: 0.7913 MB / 449.2 MB, free: 32.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.3588, allocations: 7 kB / 449.2 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3588, allocations: 0 / 449.2 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003463/0.3591, allocations: 105 kB / 449.3 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004096/0.3596, allocations: 87.81 kB / 449.4 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002676/0.3623, allocations: 7.302 MB / 456.7 MB, free: 24.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003708/0.3626, allocations: 53.39 kB / 456.7 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.04e-05/0.3627, allocations: 12.28 kB / 456.7 MB, free: 24.65 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001662/0.3629, allocations: 164 kB / 456.9 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.246e-05/0.3629, allocations: 38.95 kB / 456.9 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.569e-05/0.363, allocations: 57.67 kB / 457 MB, free: 24.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.363, allocations: 2.844 kB / 457 MB, free: 24.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.363, allocations: 5.969 kB / 457 MB, free: 24.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.363, allocations: 0 / 457 MB, free: 24.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009619/0.364, allocations: 0.8654 MB / 457.9 MB, free: 23.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.364, allocations: 4 kB / 457.9 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002643/0.3643, allocations: 66.67 kB / 457.9 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001943/0.3645, allocations: 79.25 kB / 458 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.3645, allocations: 13.59 kB / 458 MB, free: 23.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001042/0.3656, allocations: 1.732 MB / 459.8 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3656, allocations: 3.984 kB / 459.8 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000693/0.3663, allocations: 0.6069 MB / 460.4 MB, free: 21.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.292e-05/0.3664, allocations: 115.6 kB / 460.5 MB, free: 21.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.398e-05/0.3664, allocations: 17.34 kB / 460.5 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003364/0.3668, allocations: 37.92 kB / 460.5 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.3e-05/0.3668, allocations: 28.47 kB / 460.6 MB, free: 21.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.3668, allocations: 7.875 kB / 460.6 MB, free: 21.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005104/0.3674, allocations: 329.8 kB / 460.9 MB, free: 21.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3674, allocations: 0 / 460.9 MB, free: 21.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000479/0.3679, allocations: 82.22 kB / 461 MB, free: 21.68 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008368/0.3687, allocations: 1.162 MB / 462.1 MB, free: 20.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006426/0.3693, allocations: 0.6315 MB / 462.8 MB, free: 20.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3694, allocations: 0 / 462.8 MB, free: 20.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002901/0.3697, allocations: 295.8 kB / 463.1 MB, free: 20.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.37, allocations: 48.27 kB / 463.1 MB, free: 20.17 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.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd 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.006043/0.376, allocations: 4.033 MB / 467.1 MB, free: 17.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.3764, allocations: 0.8392 MB / 468 MB, free: 16.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002658/0.3767, allocations: 46.45 kB / 468 MB, free: 16.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002499/0.3769, allocations: 140.4 kB / 468.2 MB, free: 16.65 MB / 350.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3769, allocations: 0 / 468.2 MB, free: 16.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02508/0.402, allocations: 7.584 MB / 475.8 MB, free: 16.14 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/0.4023, allocations: 220 kB / 476 MB, free: 15.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.127, allocations: 3.625 kB / 476 MB, free: 15.9 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/linux/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) Environment - environmentSimulation: