Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.foo.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.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",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.0009217/0.0009218, allocations: 94.66 kB / 15.06 MB, free: 1.086 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.0008706/0.0008706, allocations: 168.7 kB / 15.95 MB, free: 208 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.414/1.414, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2356/0.2356, allocations: 22.35 MB / 313.4 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003028/0.0003029, allocations: 11.94 kB / 382 MB, free: 10.47 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2909, allocations: 55.98 MB / 438 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.001638/0.2926, allocations: 1.529 MB / 439.5 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006749/0.2933, allocations: 0.4904 MB / 440 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.183e-05/0.2933, allocations: 0 / 440 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000257/0.2936, allocations: 26.77 kB / 440.1 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.2938, allocations: 41.19 kB / 440.1 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001269/0.2939, allocations: 40.25 kB / 440.1 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001874/0.2941, allocations: 182.4 kB / 440.3 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.2942, allocations: 31.89 kB / 440.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.2943, allocations: 85.44 kB / 440.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.2945, allocations: 74.3 kB / 440.5 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.595e-05/0.2945, allocations: 8.906 kB / 440.5 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.234e-05/0.2945, allocations: 6.219 kB / 440.5 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.946e-05/0.2946, allocations: 32.06 kB / 440.6 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.566e-05/0.2946, allocations: 42.17 kB / 440.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001095/0.2947, allocations: 105.3 kB / 440.7 MB, free: 37.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.2948, allocations: 4 kB / 440.7 MB, free: 37.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.2948, allocations: 0 / 440.7 MB, free: 37.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.2948, allocations: 3.938 kB / 440.7 MB, free: 37.29 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0007762/0.2956, allocations: 483.9 kB / 441.2 MB, free: 36.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.2956, allocations: 10.03 kB / 441.2 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.072e-05/0.2956, allocations: 41.28 kB / 441.2 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.55e-05/0.2957, allocations: 16.88 kB / 441.2 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000319/0.296, allocations: 249.1 kB / 441.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.296, allocations: 3 kB / 441.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.199e-05/0.2961, allocations: 24.66 kB / 441.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002134/0.2963, allocations: 114.5 kB / 441.6 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.2963, allocations: 0 / 441.6 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.2963, allocations: 10.72 kB / 441.6 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.2964, allocations: 3.062 kB / 441.6 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001814/0.2965, allocations: 86.81 kB / 441.7 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007021/0.2973, allocations: 465.2 kB / 442.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002851/0.2975, allocations: 162.7 kB / 442.3 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.959e-05/0.2977, allocations: 68.81 kB / 442.4 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.2977, allocations: 0 / 442.4 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.802e-05/0.2977, allocations: 33.53 kB / 442.4 MB, free: 36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 9.42e-07/0.2977, allocations: 0 / 442.4 MB, free: 36 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008807/0.2986, allocations: 0.5331 MB / 443 MB, free: 35.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.83e-05/0.2986, allocations: 58.34 kB / 443 MB, free: 35.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002455/0.2989, allocations: 199.6 kB / 443.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.2989, allocations: 36.42 kB / 443.3 MB, free: 35.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.477e-05/0.299, allocations: 105.5 kB / 443.4 MB, free: 35.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.124e-05/0.299, allocations: 63.72 kB / 443.4 MB, free: 35.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.344e-06/0.299, allocations: 2.719 kB / 443.4 MB, free: 35.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.191e-05/0.2991, allocations: 329.5 kB / 443.8 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.213e-05/0.2992, allocations: 47.03 kB / 443.8 MB, free: 34.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.146e-05/0.2993, allocations: 66.78 kB / 443.9 MB, free: 34.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.88e-05/0.2994, allocations: 61.27 kB / 443.9 MB, free: 34.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-07/0.2994, allocations: 0 / 443.9 MB, free: 34.83 MB / 350.1 MB 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=21) (initialization): time 0.0004677/0.2999, allocations: 388.2 kB / 444.3 MB, free: 34.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.2999, allocations: 2.969 kB / 444.3 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2999, allocations: 0 / 444.3 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001725/0.3001, allocations: 58.28 kB / 444.4 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/0.3003, allocations: 40.52 kB / 444.4 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001797/0.3021, allocations: 4.229 MB / 448.6 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001483/0.3022, allocations: 23.58 kB / 448.7 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.3023, allocations: 6.391 kB / 448.7 MB, free: 30.14 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: Ge1.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: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 15 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.3024, allocations: 132.9 kB / 448.8 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.707e-05/0.3024, allocations: 16.62 kB / 448.8 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.85e-05/0.3025, allocations: 23.69 kB / 448.8 MB, free: 29.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3025, allocations: 2.531 kB / 448.8 MB, free: 29.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.3025, allocations: 0 / 448.8 MB, free: 29.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3025, allocations: 4 kB / 448.8 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005388/0.3031, allocations: 0.4967 MB / 449.3 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.3031, allocations: 0 / 449.3 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001455/0.3032, allocations: 27.52 kB / 449.4 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001133/0.3033, allocations: 50.03 kB / 449.4 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.3034, allocations: 11.03 kB / 449.4 MB, free: 29.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008169/0.3042, allocations: 1.448 MB / 450.9 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3042, allocations: 0 / 450.9 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003849/0.3046, allocations: 336.2 kB / 451.2 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.888e-05/0.3047, allocations: 91.55 kB / 451.3 MB, free: 27.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.236e-05/0.3047, allocations: 4 kB / 451.3 MB, free: 27.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.3049, allocations: 23.69 kB / 451.3 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.39e-05/0.3049, allocations: 13.08 kB / 451.3 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.405e-06/0.3049, allocations: 6.844 kB / 451.3 MB, free: 27.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001906/0.3051, allocations: 161.1 kB / 451.5 MB, free: 27.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3051, allocations: 3.938 kB / 451.5 MB, free: 27.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003705/0.3055, allocations: 35.41 kB / 451.5 MB, free: 27.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Ge1.thetap,Ge1.deltag,Ge1.wg,C.x_scaled[1]) * 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 (13): * Single equations (assignments): 12 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005931/0.3061, allocations: 0.8617 MB / 452.4 MB, free: 26.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004427/0.3066, allocations: 362.3 kB / 452.7 MB, free: 26.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3066, allocations: 0 / 452.7 MB, free: 26.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002117/0.3068, allocations: 178.6 kB / 452.9 MB, free: 26.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.3071, allocations: 14.19 kB / 452.9 MB, free: 26.52 MB / 350.1 MB 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.002055/0.3092, allocations: 1.528 MB / 454.5 MB, free: 25.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001744/0.3093, allocations: 0.7249 MB / 455.2 MB, free: 24.81 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.887e-05/0.3094, allocations: 20.16 kB / 455.2 MB, free: 24.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.379e-05/0.3095, allocations: 44.86 kB / 455.2 MB, free: 24.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3095, allocations: 2.969 kB / 455.2 MB, free: 24.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01666/0.3262, allocations: 3.438 MB / 458.7 MB, free: 24.48 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002172/0.3265, allocations: 195.2 kB / 458.9 MB, free: 24.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.81/2.136, allocations: 0 / 458.9 MB, free: 24.25 MB / 350.1 MB (rm -f AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.foo.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.foo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_case_studies_foo_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_case_studies_foo.fmu > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) Environment - environmentSimulation: