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.001455/0.001455, allocations: 72.95 kB / 20.74 MB, free: 3.754 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.001207/0.001207, allocations: 173 kB / 24.17 MB, free: 336 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 1.083/1.083, allocations: 177.1 MB / 204.6 MB, free: 5.469 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.06592/0.06592, allocations: 18.13 MB / 279.2 MB, free: 11.2 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 2.635e-06/2.635e-06, allocations: 1.344 kB / 304.6 MB, free: 360 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.842e-05/2.105e-05, allocations: 5.875 kB / 304.6 MB, free: 356 kB / 266.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002685/0.002706, allocations: 1.944 MB / 306.5 MB, free: 15.07 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009193/0.003625, allocations: 0.5423 MB / 307 MB, free: 14.71 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.881e-05/0.003714, allocations: 1.156 kB / 307 MB, free: 14.71 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002781/0.003992, allocations: 33.16 kB / 307.1 MB, free: 14.7 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001602/0.004152, allocations: 55.83 kB / 307.1 MB, free: 14.66 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.004379, allocations: 73.11 kB / 307.2 MB, free: 14.63 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002167/0.004596, allocations: 183 kB / 307.4 MB, free: 14.55 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.004704, allocations: 26.47 kB / 307.4 MB, free: 14.54 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001967/0.004901, allocations: 84.23 kB / 307.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.00505, allocations: 78.14 kB / 307.6 MB, free: 14.47 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.792e-05/0.005078, allocations: 12.91 kB / 307.6 MB, free: 14.47 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.632e-05/0.005104, allocations: 13.69 kB / 307.6 MB, free: 14.47 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.104e-05/0.005165, allocations: 37.2 kB / 307.6 MB, free: 14.45 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.342e-05/0.005218, allocations: 50.23 kB / 307.7 MB, free: 14.43 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.005364, allocations: 103 kB / 307.8 MB, free: 14.38 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.005367, allocations: 5.781 kB / 307.8 MB, free: 14.38 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.005368, allocations: 0 / 307.8 MB, free: 14.38 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.005372, allocations: 0 / 307.8 MB, free: 14.38 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.0004698/0.005842, allocations: 373.9 kB / 308.1 MB, free: 14.01 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.005875, allocations: 8.922 kB / 308.2 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.239e-05/0.005918, allocations: 21.16 kB / 308.2 MB, free: 13.99 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002052/0.006123, allocations: 167.9 kB / 308.3 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.006142, allocations: 8.375 kB / 308.4 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.827e-05/0.00617, allocations: 20.89 kB / 308.4 MB, free: 13.77 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001437/0.006314, allocations: 89.84 kB / 308.5 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.006321, allocations: 192 / 308.5 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.006332, allocations: 7.938 kB / 308.5 MB, free: 13.69 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.006336, allocations: 0 / 308.5 MB, free: 13.69 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.791e-05/0.006404, allocations: 37.98 kB / 308.5 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004094/0.006814, allocations: 276.1 kB / 308.8 MB, free: 13.39 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001717/0.006985, allocations: 151.9 kB / 308.9 MB, free: 13.24 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.905e-05/0.007024, allocations: 28.05 kB / 308.9 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.007035, allocations: 4 kB / 309 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.007058, allocations: 39.25 kB / 309 MB, free: 13.16 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.082e-06/0.007059, allocations: 0 / 309 MB, free: 13.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=16): time 0.0005702/0.007629, allocations: 330.9 kB / 309.3 MB, free: 12.84 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/0.00766, allocations: 63.34 kB / 309.4 MB, free: 12.77 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.007761, allocations: 158.9 kB / 309.5 MB, free: 12.61 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.007773, allocations: 25.7 kB / 309.6 MB, free: 12.58 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.066e-05/0.007824, allocations: 108.8 kB / 309.7 MB, free: 12.47 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.967e-05/0.007863, allocations: 64.55 kB / 309.7 MB, free: 12.41 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.284e-05/0.007906, allocations: 36.66 kB / 309.8 MB, free: 12.38 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.616e-05/0.007992, allocations: 327.5 kB / 310.1 MB, free: 12.05 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.648e-05/0.008019, allocations: 16.89 kB / 310.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.922e-05/0.008058, allocations: 37.89 kB / 310.1 MB, free: 12 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.008169, allocations: 97.14 kB / 310.2 MB, free: 11.91 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.008171, allocations: 7.938 kB / 310.2 MB, free: 11.9 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.0002724/0.008443, allocations: 152.6 kB / 310.4 MB, free: 11.74 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.008457, allocations: 8 kB / 310.4 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.008462, allocations: 0 / 310.4 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001992/0.008661, allocations: 53.7 kB / 310.4 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/0.008828, allocations: 60.75 kB / 310.5 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001826/0.01065, allocations: 4.196 MB / 314.7 MB, free: 7.188 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.164e-05/0.01072, allocations: 4 kB / 314.7 MB, free: 7.184 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.01072, allocations: 8 kB / 314.7 MB, free: 7.176 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 0.0001002/0.01082, allocations: 132.7 kB / 314.8 MB, free: 7.035 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.644e-05/0.01085, allocations: 11.98 kB / 314.9 MB, free: 7.023 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.845e-05/0.01088, allocations: 25.06 kB / 314.9 MB, free: 6.996 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.01088, allocations: 0 / 314.9 MB, free: 6.996 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.01088, allocations: 0 / 314.9 MB, free: 6.996 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.01089, allocations: 3.984 kB / 314.9 MB, free: 6.992 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003252/0.01121, allocations: 346 kB / 315.2 MB, free: 6.629 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.01122, allocations: 0 / 315.2 MB, free: 6.629 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.01132, allocations: 35.97 kB / 315.3 MB, free: 6.594 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001533/0.01147, allocations: 40.81 kB / 315.3 MB, free: 6.551 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.01149, allocations: 8 kB / 315.3 MB, free: 6.543 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006539/0.01214, allocations: 1.352 MB / 316.7 MB, free: 5.109 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01214, allocations: 0 / 316.7 MB, free: 5.109 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000216/0.01236, allocations: 290.8 kB / 316.9 MB, free: 4.805 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.557e-05/0.01237, allocations: 11.91 kB / 317 MB, free: 4.793 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.01239, allocations: 4 kB / 317 MB, free: 4.789 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.927e-05/0.01246, allocations: 8 kB / 317 MB, free: 4.781 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.0125, allocations: 15.91 kB / 317 MB, free: 4.766 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.0125, allocations: 4.062 kB / 317 MB, free: 4.762 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.965e-05/0.01255, allocations: 52.73 kB / 317 MB, free: 4.707 MB / 282.7 MB Notification: Performance of sort global known variables: time 2e-08/0.01255, allocations: 0 / 317 MB, free: 4.707 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000228/0.01278, allocations: 32 kB / 317.1 MB, free: 4.676 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 9.486e-05/0.01287, allocations: 88.36 kB / 317.2 MB, free: 4.578 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003031/0.01318, allocations: 298 kB / 317.4 MB, free: 4.258 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.01318, allocations: 8.062 kB / 317.5 MB, free: 4.25 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.01332, allocations: 174.2 kB / 317.6 MB, free: 4.066 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001875/0.01351, allocations: 19.59 kB / 317.6 MB, free: 4.047 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006773/0.01419, allocations: 400 kB / 318 MB, free: 3.625 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.409e-05/0.01424, allocations: 81.47 kB / 318.1 MB, free: 3.527 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.448e-05/0.01429, allocations: 13.48 kB / 318.1 MB, free: 3.516 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.083e-05/0.01437, allocations: 67.31 kB / 318.2 MB, free: 3.449 MB / 282.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01437, allocations: 4 kB / 318.2 MB, free: 3.445 MB / 282.7 MB Notification: Performance of Templates: time 0.004234/0.0186, allocations: 2.269 MB / 320.5 MB, free: 1.211 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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.839231119956821]