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.001423/0.001423, allocations: 84.75 kB / 19.76 MB, free: 2.023 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.001548/0.001548, allocations: 156.7 kB / 23.01 MB, free: 4.961 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.462/1.462, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.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.1005/0.1005, allocations: 17.8 MB / 277.6 MB, free: 15.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.002102/0.002102, allocations: 75.83 kB / 414.6 MB, free: 4.504 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1181, allocations: 59.55 MB / 474.2 MB, free: 8.836 MB / 446.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.003885/0.122, allocations: 1.831 MB / 476 MB, free: 6.988 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.1232, allocations: 0.5185 MB / 476.6 MB, free: 6.469 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.1233, allocations: 4 kB / 476.6 MB, free: 6.465 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003122/0.1236, allocations: 27.78 kB / 476.6 MB, free: 6.438 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002273/0.1238, allocations: 59.62 kB / 476.6 MB, free: 6.379 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002557/0.1241, allocations: 59.89 kB / 476.7 MB, free: 6.32 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004048/0.1245, allocations: 223.4 kB / 476.9 MB, free: 6.102 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.1247, allocations: 33.78 kB / 476.9 MB, free: 6.066 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002931/0.1249, allocations: 95.67 kB / 477 MB, free: 5.973 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002279/0.1252, allocations: 87.59 kB / 477.1 MB, free: 5.887 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.246e-05/0.1252, allocations: 12 kB / 477.1 MB, free: 5.875 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.25e-05/0.1253, allocations: 16 kB / 477.2 MB, free: 5.859 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.391e-05/0.1253, allocations: 43.83 kB / 477.2 MB, free: 5.816 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 7.906e-05/0.1254, allocations: 55.72 kB / 477.3 MB, free: 5.762 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002284/0.1256, allocations: 151.3 kB / 477.4 MB, free: 5.613 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1256, allocations: 0 / 477.4 MB, free: 5.613 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1256, allocations: 0 / 477.4 MB, free: 5.613 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1257, allocations: 0 / 477.4 MB, free: 5.613 MB / 446.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.001047/0.1267, allocations: 433.5 kB / 477.8 MB, free: 5.156 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.1267, allocations: 8.922 kB / 477.8 MB, free: 5.148 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.36e-05/0.1268, allocations: 16.84 kB / 477.8 MB, free: 5.133 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004273/0.1272, allocations: 198.1 kB / 478 MB, free: 4.914 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.1272, allocations: 8.375 kB / 478.1 MB, free: 4.906 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.168e-05/0.1273, allocations: 12.38 kB / 478.1 MB, free: 4.895 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.1275, allocations: 125.5 kB / 478.2 MB, free: 4.766 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.1275, allocations: 0 / 478.2 MB, free: 4.766 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.1275, allocations: 8 kB / 478.2 MB, free: 4.758 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.1275, allocations: 0 / 478.2 MB, free: 4.758 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00021/0.1277, allocations: 79.95 kB / 478.3 MB, free: 4.68 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007635/0.1285, allocations: 384 kB / 478.6 MB, free: 4.273 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003827/0.1289, allocations: 158.7 kB / 478.8 MB, free: 4.109 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.129, allocations: 60.83 kB / 478.9 MB, free: 4.047 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.129, allocations: 4 kB / 478.9 MB, free: 4.043 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.1291, allocations: 38.5 kB / 478.9 MB, free: 3.996 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.1291, allocations: 0 / 478.9 MB, free: 3.996 MB / 446.1 MB Notification: Performance of matching and sorting (n=16): time 0.001055/0.1301, allocations: 476.8 kB / 479.4 MB, free: 3.496 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/0.1302, allocations: 55.41 kB / 479.4 MB, free: 3.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003551/0.1305, allocations: 206.2 kB / 479.6 MB, free: 3.219 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.1305, allocations: 25.7 kB / 479.6 MB, free: 3.188 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.532e-05/0.1306, allocations: 116.3 kB / 479.8 MB, free: 3.066 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.299e-05/0.1307, allocations: 59.5 kB / 479.8 MB, free: 3.008 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.206e-05/0.1308, allocations: 37.7 kB / 479.9 MB, free: 2.965 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.1309, allocations: 322.8 kB / 480.2 MB, free: 2.641 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.131, allocations: 47.97 kB / 480.2 MB, free: 2.594 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.1312, allocations: 73.62 kB / 480.3 MB, free: 2.516 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007758/0.1319, allocations: 270.2 kB / 480.6 MB, free: 2.25 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.1319, allocations: 4 kB / 480.6 MB, free: 2.246 MB / 446.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.0005323/0.1325, allocations: 228 kB / 480.8 MB, free: 2.008 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.1325, allocations: 4 kB / 480.8 MB, free: 2.004 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.1325, allocations: 7.922 kB / 480.8 MB, free: 1.996 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001846/0.1327, allocations: 57.66 kB / 480.8 MB, free: 1.934 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/0.1329, allocations: 35.98 kB / 480.9 MB, free: 1.898 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2488/0.3816, allocations: 4.37 MB / 485.3 MB, free: 49.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.3819, allocations: 21.66 kB / 485.3 MB, free: 49.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.3819, allocations: 3.344 kB / 485.3 MB, free: 49.15 MB / 446.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.0001423/0.382, allocations: 130.9 kB / 485.4 MB, free: 49.04 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.234e-05/0.3821, allocations: 14.12 kB / 485.4 MB, free: 49.04 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.035e-05/0.3821, allocations: 27.58 kB / 485.4 MB, free: 49.03 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3821, allocations: 3.75 kB / 485.5 MB, free: 49.03 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3821, allocations: 0 / 485.5 MB, free: 49.03 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3821, allocations: 6.656 kB / 485.5 MB, free: 49.03 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005507/0.3827, allocations: 424.9 kB / 485.9 MB, free: 48.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.3827, allocations: 2.844 kB / 485.9 MB, free: 48.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001475/0.3828, allocations: 25.89 kB / 485.9 MB, free: 48.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001329/0.383, allocations: 46.11 kB / 485.9 MB, free: 48.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.383, allocations: 0.6875 kB / 485.9 MB, free: 48.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008058/0.3838, allocations: 1.488 MB / 487.4 MB, free: 47.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3838, allocations: 5.188 kB / 487.4 MB, free: 47.46 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003614/0.3842, allocations: 342.3 kB / 487.8 MB, free: 47.32 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.465e-05/0.3842, allocations: 10.7 kB / 487.8 MB, free: 47.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.097e-05/0.3842, allocations: 6.625 kB / 487.8 MB, free: 47.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.3844, allocations: 16.39 kB / 487.8 MB, free: 47.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.149e-05/0.3844, allocations: 13.78 kB / 487.8 MB, free: 47.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.3844, allocations: 10.5 kB / 487.8 MB, free: 47.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002083/0.3847, allocations: 155.7 kB / 488 MB, free: 47.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3847, allocations: 3.594 kB / 488 MB, free: 47.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004011/0.3851, allocations: 38.09 kB / 488 MB, free: 47.23 MB / 446.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.133e-05/0.3851, allocations: 96.09 kB / 488.1 MB, free: 47.14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004188/0.3856, allocations: 346.9 kB / 488.5 MB, free: 46.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3856, allocations: 0 / 488.5 MB, free: 46.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002083/0.3858, allocations: 190.3 kB / 488.6 MB, free: 46.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.3861, allocations: 20.09 kB / 488.7 MB, free: 46.81 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007464/0.3868, allocations: 0.5085 MB / 489.2 MB, free: 46.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.847e-05/0.3869, allocations: 113.1 kB / 489.3 MB, free: 46.47 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.212e-05/0.387, allocations: 22.45 kB / 489.3 MB, free: 46.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.55e-05/0.387, allocations: 17.5 kB / 489.3 MB, free: 46.46 MB / 446.1 MB Notification: Performance of SimCode: time 4.6e-07/0.387, allocations: 7.484 kB / 489.3 MB, free: 46.46 MB / 446.1 MB Notification: Performance of Templates: time 0.005267/0.3923, allocations: 1.954 MB / 491.3 MB, free: 46.33 MB / 446.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 -s ida -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.010580598958768] Failed to read output from testmodel.py, exit status != 0: 0.40068354294635355 0.410227935 0.282175176 Calling exit ...