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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 100.3 kB / 19.72 MB, free: 1.785 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001857/0.001857, allocations: 208.9 kB / 23.01 MB, free: 4.621 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.524/1.524, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1073/0.1073, allocations: 24.03 MB / 337.2 MB, free: 11.34 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 63.89 kB / 474.3 MB, free: 5.895 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.356/0.3581, allocations: 59.57 MB / 0.5214 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.003221/0.3613, allocations: 1.822 MB / 0.5232 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.3625, allocations: 0.5318 MB / 0.5237 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.3626, allocations: 2.656 kB / 0.5237 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003922/0.363, allocations: 23.94 kB / 0.5237 GB, free: 8.898 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002014/0.3632, allocations: 51.89 kB / 0.5238 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.3635, allocations: 62.44 kB / 0.5238 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000375/0.3639, allocations: 223.5 kB / 0.524 GB, free: 8.746 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.364, allocations: 31.86 kB / 0.5241 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003112/0.3644, allocations: 100.7 kB / 0.5242 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002436/0.3646, allocations: 89.09 kB / 0.5242 GB, free: 8.652 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.118e-05/0.3646, allocations: 17.06 kB / 0.5243 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.92e-05/0.3647, allocations: 13.62 kB / 0.5243 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.333e-05/0.3648, allocations: 41.59 kB / 0.5243 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.917e-05/0.3649, allocations: 55.88 kB / 0.5244 GB, free: 8.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002849/0.3652, allocations: 150.9 kB / 0.5245 GB, free: 8.539 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.3652, allocations: 0 / 0.5245 GB, free: 8.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.519e-06/0.3652, allocations: 1.188 kB / 0.5245 GB, free: 8.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.3652, allocations: 0 / 0.5245 GB, free: 8.539 MB / 382.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.001059/0.3662, allocations: 432.9 kB / 0.5249 GB, free: 8.199 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/0.3663, allocations: 14.05 kB / 0.5249 GB, free: 8.195 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.688e-05/0.3663, allocations: 17.25 kB / 0.5249 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004177/0.3668, allocations: 188.9 kB / 0.5251 GB, free: 8.031 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.277e-05/0.3668, allocations: 10.7 kB / 0.5251 GB, free: 8.027 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.576e-05/0.3668, allocations: 12 kB / 0.5251 GB, free: 8.023 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002697/0.3671, allocations: 128.5 kB / 0.5253 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3671, allocations: 0 / 0.5253 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.3671, allocations: 0 / 0.5253 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.3671, allocations: 3.625 kB / 0.5253 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002166/0.3674, allocations: 83.84 kB / 0.5254 GB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000719/0.3681, allocations: 381.6 kB / 0.5257 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003521/0.3684, allocations: 153.8 kB / 0.5259 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.3685, allocations: 57.55 kB / 0.5259 GB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.3686, allocations: 2.484 kB / 0.5259 GB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.3686, allocations: 37.42 kB / 0.526 GB, free: 7.512 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.3686, allocations: 0 / 0.526 GB, free: 7.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0011/0.3697, allocations: 480.4 kB / 0.5264 GB, free: 7.207 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/0.3697, allocations: 52.56 kB / 0.5265 GB, free: 7.145 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003398/0.3701, allocations: 196.4 kB / 0.5267 GB, free: 7.023 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.3701, allocations: 31.06 kB / 0.5267 GB, free: 6.988 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.96e-05/0.3701, allocations: 122.8 kB / 0.5268 GB, free: 6.871 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.732e-05/0.3702, allocations: 59.66 kB / 0.5269 GB, free: 6.824 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.994e-05/0.3702, allocations: 32.56 kB / 0.5269 GB, free: 6.801 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.517e-05/0.3703, allocations: 328.4 kB / 0.5272 GB, free: 6.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.3704, allocations: 55.09 kB / 0.5273 GB, free: 6.457 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/0.3705, allocations: 68.91 kB / 0.5273 GB, free: 6.422 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007717/0.3713, allocations: 264.2 kB / 0.5276 GB, free: 6.324 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.3713, allocations: 1.531 kB / 0.5276 GB, free: 6.324 MB / 382.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.0005132/0.3718, allocations: 226.5 kB / 0.5278 GB, free: 6.207 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.3718, allocations: 8.344 kB / 0.5278 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3719, allocations: 9.312 kB / 0.5278 GB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001688/0.372, allocations: 48.11 kB / 0.5279 GB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/0.3722, allocations: 36.95 kB / 0.5279 GB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001629/0.3738, allocations: 4.389 MB / 0.5322 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.374, allocations: 15.62 kB / 0.5322 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.374, allocations: 4.031 kB / 0.5322 GB, free: 1.75 MB / 382.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.000108/0.3741, allocations: 138.8 kB / 0.5323 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.024e-05/0.3741, allocations: 20.84 kB / 0.5323 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.586e-05/0.3742, allocations: 20.69 kB / 0.5324 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.3742, allocations: 1.828 kB / 0.5324 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.3742, allocations: 1.219 kB / 0.5324 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.3742, allocations: 1.078 kB / 0.5324 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005675/0.3747, allocations: 429.6 kB / 0.5328 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.3748, allocations: 1.062 kB / 0.5328 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.3749, allocations: 31.62 kB / 0.5328 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001252/0.375, allocations: 43.97 kB / 0.5328 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.375, allocations: 6.281 kB / 0.5329 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009166/0.376, allocations: 1.484 MB / 0.5343 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.376, allocations: 0 / 0.5343 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005801/0.3765, allocations: 342.3 kB / 0.5346 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-05/0.3766, allocations: 18.02 kB / 0.5346 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.3766, allocations: 2.969 kB / 0.5347 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.3768, allocations: 15.73 kB / 0.5347 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.147e-05/0.3769, allocations: 11.22 kB / 0.5347 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.3769, allocations: 8.078 kB / 0.5347 GB, free: 15.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002901/0.3772, allocations: 162.3 kB / 0.5348 GB, free: 15.47 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3772, allocations: 4 kB / 0.5348 GB, free: 15.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004107/0.3776, allocations: 33.41 kB / 0.5349 GB, free: 15.46 MB / 398.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.0001499/0.3777, allocations: 104.7 kB / 0.535 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006956/0.3784, allocations: 346.1 kB / 0.5353 GB, free: 15.1 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3784, allocations: 0 / 0.5353 GB, free: 15.1 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00033/0.3787, allocations: 185.5 kB / 0.5355 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.3791, allocations: 18.41 kB / 0.5355 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.3802, allocations: 0.5238 MB / 0.536 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001529/0.3803, allocations: 117.4 kB / 0.5361 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.2e-05/0.3804, allocations: 20.47 kB / 0.5361 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.429e-05/0.3805, allocations: 16.16 kB / 0.5362 GB, free: 14.49 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3805, allocations: 0 / 0.5362 GB, free: 14.49 MB / 398.1 MB Notification: Performance of Templates: time 0.006735/0.3872, allocations: 2.07 MB / 0.5382 GB, free: 14.27 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_case_studies.foo.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.16063291952014] Failed to read output from testmodel.py, exit status != 0: 0.3966004550457001 0.411336942 0.042944959000000005 Calling exit ...