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.001539/0.001539, allocations: 99.86 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.001898/0.001898, allocations: 177.3 kB / 15.94 MB, free: 228 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.566/1.566, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2369/0.2369, allocations: 22.35 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000303/0.000303, allocations: 8 kB / 381.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3289, allocations: 55.98 MB / 437.9 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.001597/0.3306, allocations: 1.503 MB / 439.4 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006582/0.3312, allocations: 0.4919 MB / 439.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.009e-05/0.3313, allocations: 0 / 439.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002511/0.3316, allocations: 31.14 kB / 439.9 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001171/0.3317, allocations: 38.97 kB / 440 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001239/0.3319, allocations: 45.95 kB / 440 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001371/0.332, allocations: 123.6 kB / 440.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.3321, allocations: 27.72 kB / 440.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.3322, allocations: 85.36 kB / 440.2 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.3324, allocations: 77.78 kB / 440.3 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.3324, allocations: 10.12 kB / 440.3 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.154e-05/0.3324, allocations: 5.875 kB / 440.3 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.66e-05/0.3325, allocations: 30.61 kB / 440.4 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.862e-05/0.3325, allocations: 45.7 kB / 440.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001108/0.3326, allocations: 104.3 kB / 440.5 MB, free: 37.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.3326, allocations: 2.781 kB / 440.5 MB, free: 37.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3327, allocations: 3.938 kB / 440.5 MB, free: 37.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.3327, allocations: 0 / 440.5 MB, free: 37.59 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.0007875/0.3335, allocations: 481 kB / 441 MB, free: 37.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3335, allocations: 8.812 kB / 441 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.764e-05/0.3336, allocations: 44.17 kB / 441 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.349e-05/0.3336, allocations: 13.94 kB / 441 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.3339, allocations: 253.5 kB / 441.3 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.334, allocations: 5.938 kB / 441.3 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.936e-05/0.334, allocations: 21 kB / 441.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001881/0.3342, allocations: 109.4 kB / 441.4 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.3342, allocations: 0 / 441.4 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.3342, allocations: 7.812 kB / 441.4 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.3342, allocations: 0 / 441.4 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000166/0.3344, allocations: 91.75 kB / 441.5 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006986/0.3351, allocations: 470.8 kB / 442 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002803/0.3354, allocations: 161.9 kB / 442.1 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.294e-05/0.3354, allocations: 0 / 442.1 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.694e-05/0.3354, allocations: 42.44 kB / 442.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 9.92e-07/0.3355, allocations: 0 / 442.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008787/0.3363, allocations: 0.5345 MB / 442.7 MB, free: 35.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.752e-05/0.3364, allocations: 53.91 kB / 442.8 MB, free: 35.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002808/0.3367, allocations: 197.6 kB / 443 MB, free: 35.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.3367, allocations: 32.48 kB / 443 MB, free: 35.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.725e-05/0.3368, allocations: 118.4 kB / 443.1 MB, free: 35.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.868e-05/0.3368, allocations: 63.84 kB / 443.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.493e-06/0.3368, allocations: 0 / 443.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.417e-05/0.3369, allocations: 324.4 kB / 443.5 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.337, allocations: 50.67 kB / 443.5 MB, free: 35.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.3371, allocations: 63.52 kB / 443.6 MB, free: 35.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001057/0.3373, allocations: 59.84 kB / 443.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.3373, allocations: 7.531 kB / 443.7 MB, free: 35.15 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.0005249/0.3378, allocations: 382.1 kB / 444 MB, free: 34.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.3378, allocations: 5.594 kB / 444 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.3378, allocations: 0 / 444 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001832/0.338, allocations: 54.81 kB / 444.1 MB, free: 34.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002032/0.3382, allocations: 30.95 kB / 444.1 MB, free: 34.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001963/0.3402, allocations: 4.244 MB / 448.4 MB, free: 30.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.3404, allocations: 20.84 kB / 448.4 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.3404, allocations: 3.625 kB / 448.4 MB, free: 30.46 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.0001617/0.3406, allocations: 125 kB / 448.5 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.956e-05/0.3406, allocations: 23.41 kB / 448.5 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.258e-05/0.3407, allocations: 20.19 kB / 448.6 MB, free: 30.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3407, allocations: 4 kB / 448.6 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.3407, allocations: 2.5 kB / 448.6 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.3407, allocations: 4.031 kB / 448.6 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006861/0.3414, allocations: 0.4981 MB / 449.1 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3414, allocations: 0 / 449.1 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.3416, allocations: 32.84 kB / 449.1 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00013/0.3418, allocations: 48.05 kB / 449.1 MB, free: 29.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.3418, allocations: 4 kB / 449.1 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008391/0.3426, allocations: 1.451 MB / 450.6 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3427, allocations: 3.938 kB / 450.6 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005037/0.3432, allocations: 335.3 kB / 450.9 MB, free: 28.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.457e-05/0.3432, allocations: 98.48 kB / 451 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.602e-05/0.3433, allocations: 6.344 kB / 451 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.3435, allocations: 13.91 kB / 451 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/0.3436, allocations: 13.83 kB / 451.1 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.3436, allocations: 11.06 kB / 451.1 MB, free: 28.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002555/0.3439, allocations: 157.1 kB / 451.2 MB, free: 28 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3439, allocations: 4 kB / 451.2 MB, free: 28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004036/0.3443, allocations: 35.81 kB / 451.3 MB, free: 28 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.0006356/0.3449, allocations: 0.8617 MB / 452.1 MB, free: 27.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005096/0.3454, allocations: 354.1 kB / 452.5 MB, free: 26.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3455, allocations: 0 / 452.5 MB, free: 26.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002556/0.3457, allocations: 184.2 kB / 452.7 MB, free: 26.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002064/0.3459, allocations: 14.8 kB / 452.7 MB, free: 26.84 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.002123/0.3481, allocations: 1.668 MB / 454.3 MB, free: 25.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001492/0.3482, allocations: 0.7362 MB / 455.1 MB, free: 24.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.526e-05/0.3483, allocations: 16.62 kB / 455.1 MB, free: 24.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.228e-05/0.3484, allocations: 44.09 kB / 455.1 MB, free: 24.95 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3484, allocations: 0 / 455.1 MB, free: 24.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01449/0.3629, allocations: 3.446 MB / 458.6 MB, free: 24.64 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/0.3631, allocations: 185.8 kB / 458.8 MB, free: 24.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/2.071, allocations: 0 / 458.8 MB, free: 24.41 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: