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: translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 99.55 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.002334/0.002334, 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.467/1.467, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.287/0.287, allocations: 22.34 MB / 313.3 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.0003362, allocations: 4 kB / 381.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3312, allocations: 55.97 MB / 437.8 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.001573/0.3328, allocations: 1.517 MB / 439.3 MB, free: 38.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006705/0.3335, allocations: 497.2 kB / 439.8 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.048e-05/0.3336, allocations: 2.969 kB / 439.8 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002832/0.3339, allocations: 28.7 kB / 439.8 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001277/0.3341, allocations: 42.47 kB / 439.9 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001283/0.3342, allocations: 41.84 kB / 439.9 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.3344, allocations: 121.7 kB / 440 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.3345, allocations: 33.47 kB / 440.1 MB, free: 38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.3346, allocations: 79.56 kB / 440.1 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.3348, allocations: 76.59 kB / 440.2 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.207e-05/0.3348, allocations: 8.938 kB / 440.2 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.185e-05/0.3348, allocations: 3.75 kB / 440.2 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.761e-05/0.3349, allocations: 30.55 kB / 440.3 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.438e-05/0.3349, allocations: 46.58 kB / 440.3 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001103/0.3351, allocations: 106.1 kB / 440.4 MB, free: 37.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.3351, allocations: 4 kB / 440.4 MB, free: 37.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3351, allocations: 0 / 440.4 MB, free: 37.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.3351, allocations: 0 / 440.4 MB, free: 37.86 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.0008486/0.3359, allocations: 486 kB / 440.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.336, allocations: 11.09 kB / 440.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.762e-05/0.336, allocations: 13.53 kB / 440.9 MB, free: 37.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003471/0.3364, allocations: 251.4 kB / 441.2 MB, free: 37.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.3364, allocations: 5.469 kB / 441.2 MB, free: 37.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.802e-05/0.3365, allocations: 11.91 kB / 441.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002023/0.3367, allocations: 123.4 kB / 441.3 MB, free: 37.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3367, allocations: 0 / 441.3 MB, free: 37.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.3367, allocations: 7 kB / 441.3 MB, free: 37.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.3367, allocations: 7.188 kB / 441.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001758/0.3369, allocations: 86.92 kB / 441.4 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000657/0.3376, allocations: 476.3 kB / 441.9 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002696/0.3378, allocations: 155.1 kB / 442 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.096e-05/0.3379, allocations: 2.875 kB / 442 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.597e-05/0.3379, allocations: 38.56 kB / 442.1 MB, free: 36.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.3379, allocations: 0 / 442.1 MB, free: 36.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008158/0.3387, allocations: 0.5266 MB / 442.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.146e-05/0.3387, allocations: 58.28 kB / 442.6 MB, free: 36.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002472/0.339, allocations: 200.7 kB / 442.8 MB, free: 36.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.339, allocations: 32.45 kB / 442.9 MB, free: 36.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.789e-05/0.3391, allocations: 114.5 kB / 443 MB, free: 35.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.204e-05/0.3391, allocations: 58.75 kB / 443 MB, free: 35.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-06/0.3391, allocations: 0 / 443 MB, free: 35.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.34e-05/0.3392, allocations: 331.6 kB / 443.4 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.984e-05/0.3393, allocations: 51.73 kB / 443.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.495e-05/0.3394, allocations: 64 kB / 443.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.595e-05/0.3395, allocations: 60.17 kB / 443.5 MB, free: 35.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.3395, allocations: 0 / 443.5 MB, free: 35.46 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.0004536/0.3399, allocations: 385.1 kB / 443.9 MB, free: 35.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.34, allocations: 6.312 kB / 443.9 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.34, allocations: 0 / 443.9 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001768/0.3401, allocations: 55.81 kB / 444 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.3403, allocations: 30.05 kB / 444 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001576/0.3419, allocations: 4.246 MB / 448.2 MB, free: 30.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.3421, allocations: 17.33 kB / 448.3 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.3421, allocations: 10.34 kB / 448.3 MB, free: 30.77 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 9.756e-05/0.3422, allocations: 139.5 kB / 448.4 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.224e-05/0.3422, allocations: 13.62 kB / 448.4 MB, free: 30.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.911e-05/0.3423, allocations: 19.94 kB / 448.4 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3423, allocations: 2.938 kB / 448.4 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.3423, allocations: 0 / 448.4 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3423, allocations: 3.469 kB / 448.4 MB, free: 30.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004908/0.3428, allocations: 0.5028 MB / 448.9 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.3428, allocations: 0 / 448.9 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001301/0.3429, allocations: 28.11 kB / 449 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001077/0.343, allocations: 40.62 kB / 449 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.3431, allocations: 7.953 kB / 449 MB, free: 30.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007065/0.3438, allocations: 1.465 MB / 450.5 MB, free: 28.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3438, allocations: 0 / 450.5 MB, free: 28.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003442/0.3441, allocations: 335.7 kB / 450.8 MB, free: 28.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.567e-05/0.3442, allocations: 95.22 kB / 450.9 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.3442, allocations: 3 kB / 450.9 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.3444, allocations: 16.66 kB / 450.9 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.983e-05/0.3444, allocations: 17.31 kB / 450.9 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-06/0.3444, allocations: 6.688 kB / 451 MB, free: 28.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001925/0.3446, allocations: 161.6 kB / 451.1 MB, free: 28.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3447, allocations: 3 kB / 451.1 MB, free: 28.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003592/0.345, allocations: 32.41 kB / 451.1 MB, free: 28.3 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 8.213e-05/0.3451, allocations: 99.03 kB / 451.2 MB, free: 28.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003828/0.3455, allocations: 357.8 kB / 451.6 MB, free: 27.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3455, allocations: 0 / 451.6 MB, free: 27.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001969/0.3457, allocations: 182.2 kB / 451.8 MB, free: 27.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000195/0.3459, allocations: 14.36 kB / 451.8 MB, free: 27.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007362/0.3467, allocations: 0.6049 MB / 452.4 MB, free: 27.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001517/0.3468, allocations: 0.7368 MB / 453.1 MB, free: 26.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.012e-05/0.3469, allocations: 18.47 kB / 453.1 MB, free: 26.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.104e-05/0.347, allocations: 19.75 kB / 453.2 MB, free: 26.67 MB / 350.1 MB Notification: Performance of SimCode: time 1.342e-06/0.347, allocations: 0 / 453.2 MB, free: 26.67 MB / 350.1 MB Notification: Performance of Templates: time 0.003887/0.3508, allocations: 1.717 MB / 454.9 MB, free: 26.54 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_case_studies.foo.makefile Environment - environmentSimulation: (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 & ./AES_AES.Coursework.ElecSys_case_studies.foo -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) Environment - environmentSimulation: