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.0009462/0.0009462, allocations: 72.95 kB / 20.74 MB, free: 3.75 MB / 18.57 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.001008/0.001008, allocations: 173.3 kB / 24.17 MB, free: 332 kB / 18.57 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 0.9983/0.9983, allocations: 177.1 MB / 204.6 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] 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.06666/0.06666, allocations: 18.13 MB / 279.2 MB, free: 11.21 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.042e-06/1.042e-06, allocations: 0 / 304.5 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.208e-05/1.313e-05, allocations: 2.312 kB / 304.5 MB, free: 0.625 MB / 266.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002157/0.00217, allocations: 1.904 MB / 306.4 MB, free: 15.36 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007865/0.002957, allocations: 0.5414 MB / 307 MB, free: 15.01 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.458e-05/0.003021, allocations: 1.344 kB / 307 MB, free: 15.01 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002191/0.00324, allocations: 32.47 kB / 307 MB, free: 14.99 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001262/0.003367, allocations: 56.48 kB / 307 MB, free: 14.95 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000167/0.003534, allocations: 73.67 kB / 307.1 MB, free: 14.92 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000172/0.003706, allocations: 174.1 kB / 307.3 MB, free: 14.84 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.579e-05/0.003801, allocations: 34.53 kB / 307.3 MB, free: 14.83 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.003989, allocations: 83.5 kB / 307.4 MB, free: 14.79 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.004118, allocations: 75.12 kB / 307.5 MB, free: 14.77 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.478e-05/0.004143, allocations: 12.94 kB / 307.5 MB, free: 14.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.96e-05/0.004163, allocations: 16.66 kB / 307.5 MB, free: 14.77 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.025e-05/0.004213, allocations: 42.2 kB / 307.5 MB, free: 14.74 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.683e-05/0.00426, allocations: 45.5 kB / 307.6 MB, free: 14.72 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001183/0.004378, allocations: 104 kB / 307.7 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.393e-06/0.004379, allocations: 0.8125 kB / 307.7 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.41e-07/0.00438, allocations: 0 / 307.7 MB, free: 14.67 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.406e-06/0.004383, allocations: 0.625 kB / 307.7 MB, free: 14.67 MB / 282.7 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.0004331/0.004816, allocations: 367.9 kB / 308 MB, free: 14.32 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.615e-05/0.004842, allocations: 12.86 kB / 308.1 MB, free: 14.3 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.513e-05/0.004878, allocations: 21.06 kB / 308.1 MB, free: 14.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000172/0.00505, allocations: 168 kB / 308.2 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.005064, allocations: 12.38 kB / 308.3 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.246e-05/0.005086, allocations: 17.08 kB / 308.3 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001167/0.005203, allocations: 93.56 kB / 308.4 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.43e-06/0.005208, allocations: 192 / 308.4 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.005218, allocations: 11.88 kB / 308.4 MB, free: 13.98 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.005224, allocations: 4.703 kB / 308.4 MB, free: 13.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.045e-05/0.005285, allocations: 33.56 kB / 308.4 MB, free: 13.95 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003565/0.005641, allocations: 280 kB / 308.7 MB, free: 13.68 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.005806, allocations: 148.3 kB / 308.8 MB, free: 13.54 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.774e-05/0.005844, allocations: 27.62 kB / 308.9 MB, free: 13.51 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.358e-06/0.005853, allocations: 4.75 kB / 308.9 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.005875, allocations: 34.56 kB / 308.9 MB, free: 13.46 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.005876, allocations: 0 / 308.9 MB, free: 13.46 MB / 282.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004953/0.006372, allocations: 338.5 kB / 309.2 MB, free: 13.13 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.404e-05/0.006396, allocations: 55.34 kB / 309.3 MB, free: 13.06 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003436/0.006739, allocations: 158.9 kB / 309.4 MB, free: 12.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.006752, allocations: 29.7 kB / 309.5 MB, free: 12.87 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.219e-05/0.006795, allocations: 96.72 kB / 309.6 MB, free: 12.77 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.006829, allocations: 68.31 kB / 309.6 MB, free: 12.71 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.909e-05/0.006868, allocations: 37.08 kB / 309.7 MB, free: 12.67 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.161e-05/0.006939, allocations: 327.7 kB / 310 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.768e-05/0.006967, allocations: 16.14 kB / 310 MB, free: 12.33 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.016e-05/0.007007, allocations: 43.88 kB / 310 MB, free: 12.29 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.379e-05/0.007101, allocations: 94.05 kB / 310.1 MB, free: 12.19 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.007102, allocations: 4 kB / 310.1 MB, free: 12.19 MB / 282.7 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.0002157/0.007318, allocations: 147.6 kB / 310.3 MB, free: 12.03 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.137e-06/0.007327, allocations: 4 kB / 310.3 MB, free: 12.03 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.007332, allocations: 11.86 kB / 310.3 MB, free: 12.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001687/0.0075, allocations: 57.69 kB / 310.4 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.955e-05/0.00759, allocations: 35.98 kB / 310.4 MB, free: 11.92 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/0.009056, allocations: 4.195 MB / 314.6 MB, free: 7.488 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.873e-05/0.009115, allocations: 4 kB / 314.6 MB, free: 7.484 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.714e-06/0.009122, allocations: 8 kB / 314.6 MB, free: 7.477 MB / 282.7 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 8.177e-05/0.009204, allocations: 128.7 kB / 314.7 MB, free: 7.34 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.441e-05/0.009228, allocations: 11.98 kB / 314.7 MB, free: 7.328 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.283e-05/0.009251, allocations: 25.11 kB / 314.8 MB, free: 7.301 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.009253, allocations: 3.938 kB / 314.8 MB, free: 7.297 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-06/0.009255, allocations: 0 / 314.8 MB, free: 7.297 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.009258, allocations: 0 / 314.8 MB, free: 7.297 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002667/0.009525, allocations: 341.9 kB / 315.1 MB, free: 6.938 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.009526, allocations: 0 / 315.1 MB, free: 6.938 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.488e-05/0.009601, allocations: 23.98 kB / 315.1 MB, free: 6.914 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001345/0.009736, allocations: 52.73 kB / 315.2 MB, free: 6.859 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.009746, allocations: 8 kB / 315.2 MB, free: 6.852 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005428/0.01029, allocations: 1.356 MB / 316.5 MB, free: 5.414 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.01029, allocations: 4.062 kB / 316.5 MB, free: 5.41 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004259/0.01072, allocations: 286.8 kB / 316.8 MB, free: 5.109 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.468e-05/0.01073, allocations: 15.89 kB / 316.8 MB, free: 5.094 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/0.01074, allocations: 4 kB / 316.8 MB, free: 5.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.998e-05/0.0108, allocations: 8 kB / 316.8 MB, free: 5.082 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.611e-05/0.01083, allocations: 11.97 kB / 316.9 MB, free: 5.07 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.01083, allocations: 0 / 316.9 MB, free: 5.07 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.16e-05/0.01088, allocations: 45.64 kB / 316.9 MB, free: 5.023 MB / 282.7 MB Notification: Performance of sort global known variables: time 2e-08/0.01088, allocations: 4 kB / 316.9 MB, free: 5.02 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002152/0.01109, allocations: 32 kB / 316.9 MB, free: 4.988 MB / 282.7 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 7.289e-05/0.01116, allocations: 88.41 kB / 317 MB, free: 4.891 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002272/0.01139, allocations: 298 kB / 317.3 MB, free: 4.57 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.0114, allocations: 4 kB / 317.3 MB, free: 4.566 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001131/0.01151, allocations: 174.4 kB / 317.5 MB, free: 4.383 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001377/0.01165, allocations: 26.75 kB / 317.5 MB, free: 4.355 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005513/0.0122, allocations: 396.9 kB / 317.9 MB, free: 3.938 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.198e-05/0.01224, allocations: 81.45 kB / 318 MB, free: 3.84 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.016e-05/0.01228, allocations: 21.48 kB / 318 MB, free: 3.82 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.803e-05/0.01234, allocations: 59.38 kB / 318.1 MB, free: 3.762 MB / 282.7 MB Notification: Performance of SimCode: time 5.82e-07/0.01234, allocations: 0 / 318.1 MB, free: 3.762 MB / 282.7 MB Notification: Performance of Templates: time 0.003362/0.0157, allocations: 2.1 MB / 320.2 MB, free: 1.691 MB / 282.7 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=240 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.8622658508829772]