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.001208/0.001208, allocations: 102.9 kB / 15.98 MB, free: 5.891 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.001178/0.001178, allocations: 193.4 kB / 16.91 MB, free: 5.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.237/1.237, allocations: 222.9 MB / 240.6 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1776/0.1776, allocations: 22.36 MB / 313.1 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 59.91 kB / 380.9 MB, free: 10.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2221/0.2234, allocations: 54.94 MB / 435.9 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002245/0.2256, allocations: 1.903 MB / 437.8 MB, free: 38.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005916/0.2262, allocations: 0.5213 MB / 438.3 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.512e-05/0.2263, allocations: 0 / 438.3 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002208/0.2265, allocations: 20.45 kB / 438.3 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001221/0.2267, allocations: 49.09 kB / 438.4 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001124/0.2268, allocations: 40.52 kB / 438.4 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.227, allocations: 208.7 kB / 438.6 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.2271, allocations: 39.05 kB / 438.7 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.2272, allocations: 90.36 kB / 438.8 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.2273, allocations: 94.98 kB / 438.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.362e-05/0.2273, allocations: 15.41 kB / 438.9 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.985e-05/0.2274, allocations: 11.38 kB / 438.9 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.828e-05/0.2274, allocations: 39.78 kB / 438.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.013e-05/0.2275, allocations: 66.61 kB / 439 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.186e-05/0.2276, allocations: 111.7 kB / 439.1 MB, free: 37.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2276, allocations: 2.75 kB / 439.1 MB, free: 37.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2276, allocations: 0 / 439.1 MB, free: 37.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.2276, allocations: 0 / 439.1 MB, free: 37.67 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.0007406/0.2283, allocations: 0.4915 MB / 439.6 MB, free: 37.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.823e-05/0.2284, allocations: 9.906 kB / 439.6 MB, free: 37.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.089e-05/0.2284, allocations: 17.69 kB / 439.6 MB, free: 37.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.2287, allocations: 258.9 kB / 439.9 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.2288, allocations: 7.438 kB / 439.9 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.535e-05/0.2288, allocations: 14.25 kB / 439.9 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000177/0.229, allocations: 116.1 kB / 440 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.229, allocations: 3.938 kB / 440 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.229, allocations: 3.031 kB / 440 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.229, allocations: 3.031 kB / 440 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001618/0.2292, allocations: 86.62 kB / 440.1 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005557/0.2297, allocations: 472.2 kB / 440.6 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002617/0.23, allocations: 161.3 kB / 440.7 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.984e-05/0.2301, allocations: 63.28 kB / 440.8 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.2301, allocations: 0 / 440.8 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.103e-05/0.2301, allocations: 37.25 kB / 440.8 MB, free: 36.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 9.82e-07/0.2302, allocations: 0 / 440.8 MB, free: 36.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007639/0.2309, allocations: 0.5457 MB / 441.4 MB, free: 36.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.623e-05/0.2309, allocations: 53.97 kB / 441.4 MB, free: 35.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002379/0.2312, allocations: 194.4 kB / 441.6 MB, free: 35.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.2312, allocations: 28.55 kB / 441.6 MB, free: 35.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.97e-05/0.2313, allocations: 113.4 kB / 441.7 MB, free: 35.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.999e-05/0.2313, allocations: 63.45 kB / 441.8 MB, free: 35.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.333e-05/0.2313, allocations: 38.44 kB / 441.8 MB, free: 35.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.799e-05/0.2314, allocations: 321.1 kB / 442.1 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.947e-05/0.2315, allocations: 52.2 kB / 442.2 MB, free: 35.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.075e-05/0.2316, allocations: 73.31 kB / 442.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006113/0.2322, allocations: 268.3 kB / 442.5 MB, free: 35.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-06/0.2322, allocations: 0 / 442.5 MB, free: 35.13 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.000404/0.2326, allocations: 382.9 kB / 442.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.2326, allocations: 7.125 kB / 442.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2326, allocations: 10.39 kB / 442.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001368/0.2328, allocations: 45.08 kB / 443 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.2329, allocations: 35.61 kB / 443 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001448/0.2344, allocations: 4.635 MB / 447.6 MB, free: 30.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001546/0.2345, allocations: 23.66 kB / 447.7 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.2346, allocations: 9.828 kB / 447.7 MB, free: 30.04 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 7.961e-05/0.2347, allocations: 135.8 kB / 447.8 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.335e-05/0.2347, allocations: 15.38 kB / 447.8 MB, free: 29.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.454e-05/0.2347, allocations: 23.25 kB / 447.8 MB, free: 29.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2347, allocations: 7.125 kB / 447.8 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.2347, allocations: 3.938 kB / 447.8 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.2348, allocations: 4 kB / 447.9 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004599/0.2352, allocations: 0.5009 MB / 448.4 MB, free: 29.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.2352, allocations: 0 / 448.4 MB, free: 29.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.2354, allocations: 23.73 kB / 448.4 MB, free: 29.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001056/0.2355, allocations: 40.39 kB / 448.4 MB, free: 29.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.2355, allocations: 6.844 kB / 448.4 MB, free: 29.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006808/0.2362, allocations: 1.614 MB / 450 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2362, allocations: 2.938 kB / 450 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003356/0.2365, allocations: 338.1 kB / 450.4 MB, free: 27.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.004e-05/0.2366, allocations: 97.77 kB / 450.5 MB, free: 27.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.944e-05/0.2366, allocations: 6.656 kB / 450.5 MB, free: 27.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/0.2368, allocations: 12.02 kB / 450.5 MB, free: 27.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.278e-05/0.2368, allocations: 16.7 kB / 450.5 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.2369, allocations: 6.969 kB / 450.5 MB, free: 27.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001877/0.237, allocations: 158 kB / 450.7 MB, free: 27.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2371, allocations: 4 kB / 450.7 MB, free: 27.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003534/0.2374, allocations: 34.53 kB / 450.7 MB, free: 27.41 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 6.28e-05/0.2375, allocations: 101.5 kB / 450.8 MB, free: 27.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003711/0.2379, allocations: 370.4 kB / 451.2 MB, free: 27.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2379, allocations: 0 / 451.2 MB, free: 27.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000191/0.2381, allocations: 193 kB / 451.3 MB, free: 26.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002581/0.2383, allocations: 15.45 kB / 451.4 MB, free: 26.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006676/0.239, allocations: 0.5859 MB / 451.9 MB, free: 26.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001139/0.2391, allocations: 0.7296 MB / 452.7 MB, free: 25.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.3e-05/0.2392, allocations: 17.19 kB / 452.7 MB, free: 25.75 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2392, allocations: 0 / 452.7 MB, free: 25.75 MB / 350.1 MB Notification: Performance of Templates: time 0.003204/0.2424, allocations: 2.766 MB / 455.5 MB, free: 25.56 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)