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.001415/0.001415, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001695/0.001695, allocations: 194.1 kB / 16.14 MB, free: 6.691 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.373/1.373, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2038/0.2038, allocations: 22.35 MB / 312.3 MB, free: 12.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 59.91 kB / 380.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3351, allocations: 54.94 MB / 435 MB, free: 39.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002945/0.3381, allocations: 1.907 MB / 437 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008356/0.339, allocations: 0.5163 MB / 437.5 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.3391, allocations: 2.938 kB / 437.5 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002806/0.3394, allocations: 20.39 kB / 437.5 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001961/0.3396, allocations: 43.44 kB / 437.5 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001602/0.3398, allocations: 50.03 kB / 437.6 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002138/0.34, allocations: 196.2 kB / 437.8 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.3402, allocations: 31.05 kB / 437.8 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.3404, allocations: 82.41 kB / 437.9 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001697/0.3405, allocations: 91.64 kB / 438 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.566e-05/0.3406, allocations: 9.375 kB / 438 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.099e-05/0.3406, allocations: 8.688 kB / 438 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.361e-05/0.3407, allocations: 32.06 kB / 438 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.898e-05/0.3408, allocations: 69.36 kB / 438.1 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.3409, allocations: 142.3 kB / 438.2 MB, free: 37.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.3409, allocations: 0 / 438.2 MB, free: 37.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.3409, allocations: 0 / 438.2 MB, free: 37.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.3409, allocations: 0 / 438.2 MB, free: 37.47 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.0009514/0.3419, allocations: 497.3 kB / 438.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.3419, allocations: 13.41 kB / 438.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.582e-05/0.342, allocations: 20.44 kB / 438.8 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003577/0.3424, allocations: 255.4 kB / 439 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.3424, allocations: 10.66 kB / 439 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.848e-05/0.3424, allocations: 15.94 kB / 439 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.3426, allocations: 114.5 kB / 439.1 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.3427, allocations: 0 / 439.1 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.3427, allocations: 4 kB / 439.1 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.3427, allocations: 2.938 kB / 439.1 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.3429, allocations: 92.77 kB / 439.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000708/0.3436, allocations: 465 kB / 439.7 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.3439, allocations: 165.6 kB / 439.9 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.344, allocations: 69.86 kB / 439.9 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.329e-05/0.3441, allocations: 3.906 kB / 439.9 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.536e-05/0.3441, allocations: 33.98 kB / 440 MB, free: 36.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.3441, allocations: 0 / 440 MB, free: 36.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009256/0.345, allocations: 0.5449 MB / 440.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.458e-05/0.345, allocations: 57.06 kB / 440.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002722/0.3453, allocations: 192.4 kB / 440.7 MB, free: 35.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.3454, allocations: 29.7 kB / 440.8 MB, free: 35.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.307e-05/0.3454, allocations: 111.9 kB / 440.9 MB, free: 35.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.3455, allocations: 61.3 kB / 440.9 MB, free: 35.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.033e-05/0.3455, allocations: 36.3 kB / 441 MB, free: 35.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.886e-05/0.3456, allocations: 328.4 kB / 441.3 MB, free: 35.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.305e-05/0.3457, allocations: 43.94 kB / 441.3 MB, free: 35.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.699e-05/0.3458, allocations: 71.12 kB / 441.4 MB, free: 35.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000693/0.3465, allocations: 268.8 kB / 441.7 MB, free: 34.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.81e-07/0.3465, allocations: 0 / 441.7 MB, free: 34.93 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.0004674/0.3469, allocations: 380.2 kB / 442 MB, free: 34.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.347, allocations: 13.97 kB / 442.1 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.347, allocations: 0 / 442.1 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001661/0.3472, allocations: 53.58 kB / 442.1 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.3473, allocations: 35.73 kB / 442.1 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001699/0.349, allocations: 4.234 MB / 446.4 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.3492, allocations: 23.81 kB / 446.4 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.3493, allocations: 6.875 kB / 446.4 MB, free: 30.25 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.0001246/0.3494, allocations: 141.6 kB / 446.5 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.011e-05/0.3494, allocations: 14.06 kB / 446.6 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.716e-05/0.3495, allocations: 20.09 kB / 446.6 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.3495, allocations: 10.64 kB / 446.6 MB, free: 30.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3495, allocations: 0 / 446.6 MB, free: 30.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.3495, allocations: 6.281 kB / 446.6 MB, free: 30.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005647/0.3501, allocations: 499 kB / 447.1 MB, free: 29.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3501, allocations: 3.422 kB / 447.1 MB, free: 29.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001453/0.3502, allocations: 29.05 kB / 447.1 MB, free: 29.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001275/0.3504, allocations: 47.58 kB / 447.2 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.3504, allocations: 3.938 kB / 447.2 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007657/0.3512, allocations: 1.449 MB / 448.6 MB, free: 28.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3512, allocations: 0 / 448.6 MB, free: 28.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004013/0.3516, allocations: 341 kB / 449 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.812e-05/0.3516, allocations: 97.75 kB / 449 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.413e-05/0.3517, allocations: 8.031 kB / 449.1 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001844/0.3519, allocations: 19.05 kB / 449.1 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.752e-05/0.3519, allocations: 9.047 kB / 449.1 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.787e-06/0.3519, allocations: 2.969 kB / 449.1 MB, free: 27.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002075/0.3522, allocations: 161.7 kB / 449.2 MB, free: 27.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.3522, allocations: 0 / 449.2 MB, free: 27.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003869/0.3526, allocations: 33.72 kB / 449.3 MB, free: 27.79 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 9.612e-05/0.3527, allocations: 105.2 kB / 449.4 MB, free: 27.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000414/0.3531, allocations: 349.4 kB / 449.7 MB, free: 27.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3531, allocations: 0 / 449.7 MB, free: 27.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002146/0.3533, allocations: 193.7 kB / 449.9 MB, free: 27.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.3536, allocations: 26.03 kB / 449.9 MB, free: 27.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000799/0.3544, allocations: 0.5552 MB / 450.5 MB, free: 26.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001436/0.3546, allocations: 0.7315 MB / 451.2 MB, free: 26.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.059e-05/0.3547, allocations: 15.81 kB / 451.2 MB, free: 26.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.583e-05/0.3547, allocations: 19.97 kB / 451.3 MB, free: 26.15 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3547, allocations: 0 / 451.3 MB, free: 26.15 MB / 350.1 MB Notification: Performance of Templates: time 0.004515/0.3593, allocations: 1.802 MB / 453.1 MB, free: 26.01 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)