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.0009936/0.0009941, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001473/0.001473, allocations: 172.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.573/1.573, allocations: 223.3 MB / 240 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.2547/0.2547, allocations: 22.33 MB / 313.4 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003726, allocations: 8 kB / 381.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4069/0.4073, allocations: 55.98 MB / 437.9 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.001778/0.4091, allocations: 1.529 MB / 439.4 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001124/0.4103, allocations: 497.8 kB / 439.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.4104, allocations: 0 / 439.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003869/0.4108, allocations: 28.14 kB / 439.9 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002021/0.411, allocations: 42.7 kB / 440 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001946/0.4112, allocations: 41.42 kB / 440 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002998/0.4115, allocations: 178.9 kB / 440.2 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.4117, allocations: 34.62 kB / 440.2 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001531/0.4119, allocations: 82.55 kB / 440.3 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/0.412, allocations: 88.03 kB / 440.4 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.4121, allocations: 5.906 kB / 440.4 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.462e-05/0.4121, allocations: 6.812 kB / 440.4 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.568e-05/0.4122, allocations: 29.23 kB / 440.4 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.656e-05/0.4122, allocations: 48.14 kB / 440.5 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001354/0.4124, allocations: 101.4 kB / 440.6 MB, free: 37.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.4124, allocations: 3.188 kB / 440.6 MB, free: 37.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4124, allocations: 0 / 440.6 MB, free: 37.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.4124, allocations: 0 / 440.6 MB, free: 37.58 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.0009167/0.4133, allocations: 478.6 kB / 441.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.4134, allocations: 8.25 kB / 441.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.921e-05/0.4134, allocations: 26.69 kB / 441.1 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003566/0.4138, allocations: 250.1 kB / 441.3 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.4138, allocations: 8.906 kB / 441.3 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.514e-05/0.4139, allocations: 12.56 kB / 441.4 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/0.4141, allocations: 112.6 kB / 441.5 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.4141, allocations: 4 kB / 441.5 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.4141, allocations: 4 kB / 441.5 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.4141, allocations: 6.719 kB / 441.5 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.4143, allocations: 91.72 kB / 441.6 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007933/0.4151, allocations: 473.5 kB / 442 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002987/0.4154, allocations: 154.4 kB / 442.2 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.4155, allocations: 61.92 kB / 442.2 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.4156, allocations: 2.812 kB / 442.3 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.4156, allocations: 38.56 kB / 442.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.472e-06/0.4156, allocations: 2.938 kB / 442.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008996/0.4165, allocations: 0.5357 MB / 442.8 MB, free: 35.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.257e-05/0.4165, allocations: 53.94 kB / 442.9 MB, free: 35.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002606/0.4168, allocations: 202.1 kB / 443.1 MB, free: 35.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.439e-05/0.4168, allocations: 25.7 kB / 443.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.537e-05/0.4169, allocations: 114.9 kB / 443.2 MB, free: 35.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.842e-05/0.4169, allocations: 55.58 kB / 443.3 MB, free: 35.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.174e-06/0.417, allocations: 2.656 kB / 443.3 MB, free: 35.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.682e-05/0.417, allocations: 328.1 kB / 443.6 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.502e-05/0.4171, allocations: 44.03 kB / 443.6 MB, free: 35.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.4172, allocations: 72.86 kB / 443.7 MB, free: 35.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001663/0.4174, allocations: 61.97 kB / 443.8 MB, free: 35.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.41e-07/0.4174, allocations: 0 / 443.8 MB, free: 35.16 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.0005061/0.4179, allocations: 389.4 kB / 444.1 MB, free: 34.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.418, allocations: 4.75 kB / 444.2 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.418, allocations: 2.625 kB / 444.2 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001859/0.4182, allocations: 44.05 kB / 444.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.4183, allocations: 34.78 kB / 444.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001782/0.4201, allocations: 4.247 MB / 448.5 MB, free: 30.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001497/0.4203, allocations: 20.38 kB / 448.5 MB, free: 30.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.4203, allocations: 7.281 kB / 448.5 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.000112/0.4204, allocations: 138.2 kB / 448.6 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.569e-05/0.4205, allocations: 13.84 kB / 448.7 MB, free: 30.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.61e-05/0.4205, allocations: 21.03 kB / 448.7 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.4205, allocations: 3.688 kB / 448.7 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.4205, allocations: 0 / 448.7 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.4205, allocations: 7.266 kB / 448.7 MB, free: 30.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005251/0.4211, allocations: 0.5044 MB / 449.2 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.4211, allocations: 0 / 449.2 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.4212, allocations: 21.02 kB / 449.2 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001093/0.4213, allocations: 52.03 kB / 449.3 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.4214, allocations: 2.781 kB / 449.3 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007433/0.4221, allocations: 1.45 MB / 450.7 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.4221, allocations: 0 / 450.7 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004492/0.4226, allocations: 334.1 kB / 451 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.684e-05/0.4226, allocations: 98.77 kB / 451.1 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.6e-05/0.4227, allocations: 3 kB / 451.1 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.4228, allocations: 16.59 kB / 451.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.674e-05/0.4229, allocations: 13.5 kB / 451.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.4229, allocations: 6.438 kB / 451.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000189/0.4231, allocations: 163.2 kB / 451.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4231, allocations: 0 / 451.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003672/0.4235, allocations: 31.72 kB / 451.4 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 9.901e-05/0.4236, allocations: 106.5 kB / 451.5 MB, free: 27.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004184/0.424, allocations: 348.9 kB / 451.8 MB, free: 27.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.424, allocations: 0 / 451.8 MB, free: 27.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002157/0.4242, allocations: 192.3 kB / 452 MB, free: 27.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.4245, allocations: 17 kB / 452 MB, free: 27.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008569/0.4254, allocations: 0.5986 MB / 452.6 MB, free: 27.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001879/0.4256, allocations: 0.7332 MB / 453.3 MB, free: 26.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.872e-05/0.4257, allocations: 17.72 kB / 453.4 MB, free: 26.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.393e-05/0.4257, allocations: 18.39 kB / 453.4 MB, free: 26.37 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4257, allocations: 0 / 453.4 MB, free: 26.37 MB / 350.1 MB Notification: Performance of Templates: time 0.004616/0.4304, allocations: 1.727 MB / 455.1 MB, free: 26.23 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_case_studies.foo.makefile (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)