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.0009612/0.0009614, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007609/0.007609, allocations: 170.8 kB / 16.26 MB, free: 6.676 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.404/1.404, allocations: 223.3 MB / 240.3 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.197/0.197, allocations: 22.35 MB / 313.8 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003173/0.0003174, allocations: 8 kB / 382.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3279, allocations: 55.98 MB / 438.6 MB, free: 39.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002215/0.3302, allocations: 1.564 MB / 440.1 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009302/0.3311, allocations: 0.509 MB / 440.6 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.3313, allocations: 0 / 440.6 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003271/0.3316, allocations: 20.31 kB / 440.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002104/0.3318, allocations: 43.64 kB / 440.7 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001991/0.332, allocations: 54.47 kB / 440.8 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002746/0.3323, allocations: 197.1 kB / 441 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.3325, allocations: 32.64 kB / 441 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.3326, allocations: 75.86 kB / 441.1 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001488/0.3328, allocations: 80.08 kB / 441.1 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.146e-05/0.3328, allocations: 4.844 kB / 441.1 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.285e-05/0.3329, allocations: 8.562 kB / 441.1 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.241e-05/0.3329, allocations: 31.92 kB / 441.2 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.845e-05/0.333, allocations: 92.5 kB / 441.3 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000141/0.3332, allocations: 129.5 kB / 441.4 MB, free: 37.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.3332, allocations: 3.328 kB / 441.4 MB, free: 37.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3332, allocations: 4 kB / 441.4 MB, free: 37.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.3332, allocations: 0 / 441.4 MB, free: 37.42 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.0008639/0.3341, allocations: 476.5 kB / 441.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.3341, allocations: 12.09 kB / 441.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.732e-05/0.3342, allocations: 17.03 kB / 441.9 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003562/0.3345, allocations: 264 kB / 442.2 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.3346, allocations: 10.06 kB / 442.2 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.33e-05/0.3346, allocations: 12.53 kB / 442.2 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.3348, allocations: 114.4 kB / 442.3 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.3349, allocations: 4 kB / 442.3 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.3349, allocations: 4 kB / 442.3 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.3349, allocations: 3.031 kB / 442.3 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00019/0.3351, allocations: 92.08 kB / 442.4 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007401/0.3358, allocations: 467.1 kB / 442.8 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003215/0.3362, allocations: 161.1 kB / 443 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.3363, allocations: 65.97 kB / 443.1 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.662e-05/0.3363, allocations: 3.156 kB / 443.1 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.45e-05/0.3363, allocations: 34.56 kB / 443.1 MB, free: 36.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.3364, allocations: 0 / 443.1 MB, free: 36.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009696/0.3373, allocations: 0.5417 MB / 443.6 MB, free: 35.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/0.3374, allocations: 53.97 kB / 443.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/0.3377, allocations: 200.3 kB / 443.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.3377, allocations: 33.64 kB / 443.9 MB, free: 35.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.944e-05/0.3378, allocations: 111.9 kB / 444 MB, free: 35.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.998e-05/0.3378, allocations: 59.08 kB / 444.1 MB, free: 35.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.954e-05/0.3378, allocations: 22.91 kB / 444.1 MB, free: 35.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.254e-05/0.3379, allocations: 326.5 kB / 444.4 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.917e-05/0.338, allocations: 54.44 kB / 444.5 MB, free: 35.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.832e-05/0.3381, allocations: 67.67 kB / 444.6 MB, free: 35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007098/0.3388, allocations: 268 kB / 444.8 MB, free: 34.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.3388, allocations: 0 / 444.8 MB, free: 34.9 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.0005165/0.3394, allocations: 391.2 kB / 445.2 MB, free: 34.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.3394, allocations: 7.625 kB / 445.2 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.3394, allocations: 0 / 445.2 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001767/0.3396, allocations: 57.7 kB / 445.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.3398, allocations: 36.42 kB / 445.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001913/0.3417, allocations: 4.237 MB / 449.5 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001629/0.3419, allocations: 20.55 kB / 449.6 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.3419, allocations: 5.719 kB / 449.6 MB, free: 30.21 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 0.0001248/0.342, allocations: 142.8 kB / 449.7 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.939e-05/0.3421, allocations: 17.3 kB / 449.7 MB, free: 30.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.822e-05/0.3421, allocations: 20.25 kB / 449.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.3421, allocations: 3.938 kB / 449.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.3421, allocations: 0 / 449.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.3421, allocations: 3.062 kB / 449.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005816/0.3427, allocations: 0.491 MB / 450.2 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.3427, allocations: 0 / 450.2 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.3429, allocations: 28.28 kB / 450.3 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000119/0.343, allocations: 41.59 kB / 450.3 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.343, allocations: 10.62 kB / 450.3 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007948/0.3438, allocations: 1.456 MB / 451.8 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.3438, allocations: 4.094 kB / 451.8 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003894/0.3442, allocations: 335.3 kB / 452.1 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.187e-05/0.3443, allocations: 97.78 kB / 452.2 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/0.3443, allocations: 3.938 kB / 452.2 MB, free: 27.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.3445, allocations: 15.89 kB / 452.2 MB, free: 27.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.169e-05/0.3446, allocations: 20.41 kB / 452.2 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.3446, allocations: 3.062 kB / 452.2 MB, free: 27.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002308/0.3448, allocations: 161.4 kB / 452.4 MB, free: 27.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3448, allocations: 3.031 kB / 452.4 MB, free: 27.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00038/0.3452, allocations: 33.09 kB / 452.4 MB, free: 27.74 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 0.0001072/0.3453, allocations: 98.91 kB / 452.5 MB, free: 27.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004278/0.3457, allocations: 357.9 kB / 452.9 MB, free: 27.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3458, allocations: 0 / 452.9 MB, free: 27.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002128/0.346, allocations: 187 kB / 453.1 MB, free: 27.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/0.3463, allocations: 17.94 kB / 453.1 MB, free: 27.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008237/0.3471, allocations: 0.6139 MB / 453.7 MB, free: 26.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001511/0.3473, allocations: 0.7316 MB / 454.4 MB, free: 26.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.503e-05/0.3474, allocations: 24.94 kB / 454.4 MB, free: 26.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.604e-05/0.3474, allocations: 16.28 kB / 454.5 MB, free: 26.09 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3474, allocations: 0 / 454.5 MB, free: 26.09 MB / 350.1 MB Notification: Performance of Templates: time 0.004164/0.3516, allocations: 1.775 MB / 456.2 MB, free: 25.95 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)